Deleted Added
full compact
if_hatm_tx.c (147721) if_hatm_tx.c (148887)
1/*-
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 18 unchanged lines hidden (view full) ---

27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * ForeHE driver.
30 *
31 * Transmission.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 18 unchanged lines hidden (view full) ---

27 * Author: Hartmut Brandt <harti@freebsd.org>
28 *
29 * ForeHE driver.
30 *
31 * Transmission.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/hatm/if_hatm_tx.c 147721 2005-07-01 10:45:02Z harti $");
35__FBSDID("$FreeBSD: head/sys/dev/hatm/if_hatm_tx.c 148887 2005-08-09 10:20:02Z rwatson $");
36
37#include "opt_inet.h"
38#include "opt_natm.h"
39
40#include <sys/types.h>
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>

--- 311 unchanged lines hidden (view full) ---

355 struct mbuf *m;
356 struct atm_pseudohdr *aph;
357 u_int cid;
358 struct tpd *tpd;
359 struct load_txbuf_arg arg;
360 u_int len;
361 int error;
362
36
37#include "opt_inet.h"
38#include "opt_natm.h"
39
40#include <sys/types.h>
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>

--- 311 unchanged lines hidden (view full) ---

355 struct mbuf *m;
356 struct atm_pseudohdr *aph;
357 u_int cid;
358 struct tpd *tpd;
359 struct load_txbuf_arg arg;
360 u_int len;
361 int error;
362
363 if (!(ifp->if_flags & IFF_RUNNING))
363 if (!(ifp->if_drv_flags & IFF_DRV_RUNNING))
364 return;
365 mtx_lock(&sc->mtx);
366 arg.sc = sc;
367
368 while (1) {
369 IF_DEQUEUE(&ifp->if_snd, m);
370 if (m == NULL)
371 break;

--- 455 unchanged lines hidden ---
364 return;
365 mtx_lock(&sc->mtx);
366 arg.sc = sc;
367
368 while (1) {
369 IF_DEQUEUE(&ifp->if_snd, m);
370 if (m == NULL)
371 break;

--- 455 unchanged lines hidden ---