Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2003 14:07:05 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        Sam Leffler <sam@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: 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 i
Message-ID:  <20031228140636.S9675@root.org>
In-Reply-To: <20031228035615.89C5316A4ED@hub.freebsd.org>
References:  <20031228035615.89C5316A4ED@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 27 Dec 2003, Sam Leffler wrote:
>   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

FYI, we're preferring the C99 uint32_t to u_int32_t.

-Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031228140636.S9675>