cvs commit: src/sys/dev/ath if_ath.c src/sys/dev/iicbus if_ic.c
src/sys/dev/ppbus if_plip.c src/sys/dev/wi if_wi.c src/sys/net
bpf.c bpf.h if_disc.c if_ef.c if_faith.c if_gif.c if_gre.c
if_loop.c if_stf.c if_tun.c src/sys/netinet ip_gre.c ...
Sam Leffler
sam at FreeBSD.org
Sat Dec 27 19:56:02 PST 2003
sam 2003/12/27 19:56:00 PST
FreeBSD src repository
Modified files:
sys/dev/ath if_ath.c
sys/dev/iicbus if_ic.c
sys/dev/ppbus if_plip.c
sys/dev/wi if_wi.c
sys/net bpf.c bpf.h if_disc.c if_ef.c if_faith.c
if_gif.c if_gre.c if_loop.c if_stf.c
if_tun.c
sys/netinet ip_gre.c
sys/netgraph ng_iface.c
Log:
o eliminate widespread on-stack mbuf use for bpf by introducing
a new bpf_mtap2 routine that does the right thing for an mbuf
and a variable-length chunk of data that should be prepended.
o while we're sweeping the drivers, use u_int32_t uniformly when
when prepending the address family (several places were assuming
sizeof(int) was 4)
o return M_ASSERTVALID to BPF_MTAP* now that all stack-allocated
mbufs have been eliminated; this may better be moved to the bpf
routines
Reviewed by: arch@ and several others
Revision Changes Path
1.37 +11 -34 src/sys/dev/ath/if_ath.c
1.20 +3 -19 src/sys/dev/iicbus/if_ic.c
1.32 +1 -12 src/sys/dev/ppbus/if_plip.c
1.160 +12 -34 src/sys/dev/wi/if_wi.c
1.119 +53 -0 src/sys/net/bpf.c
1.31 +10 -1 src/sys/net/bpf.h
1.38 +1 -14 src/sys/net/if_disc.c
1.28 +1 -7 src/sys/net/if_ef.c
1.25 +1 -14 src/sys/net/if_faith.c
1.41 +2 -28 src/sys/net/if_gif.c
1.16 +1 -8 src/sys/net/if_gre.c
1.93 +5 -13 src/sys/net/if_loop.c
1.35 +6 -6 src/sys/net/if_stf.c
1.131 +3 -47 src/sys/net/if_tun.c
1.28 +2 -8 src/sys/netgraph/ng_iface.c
1.11 +3 -15 src/sys/netinet/ip_gre.c
More information about the cvs-src
mailing list