From owner-cvs-all@FreeBSD.ORG Sat Dec 27 19:56:01 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C145B16A4CE; Sat, 27 Dec 2003 19:56:01 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93EE143D1F; Sat, 27 Dec 2003 19:56:00 -0800 (PST) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBS3u00B094030; Sat, 27 Dec 2003 19:56:00 -0800 (PST) (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBS3u06I094029; Sat, 27 Dec 2003 19:56:00 -0800 (PST) (envelope-from sam) Message-Id: <200312280356.hBS3u06I094029@repoman.freebsd.org> From: Sam Leffler Date: Sat, 27 Dec 2003 19:56:00 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: 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 ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2003 03:56:01 -0000 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