Date: Wed, 14 Jun 2006 02:23:28 +0000 (UTC) From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net bpf.c bpf.h Message-ID: <200606140223.k5E2NSJh025424@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
csjp        2006-06-14 02:23:28 UTC
  FreeBSD src repository
  Modified files:
    sys/net              bpf.c bpf.h 
  Log:
  If bpf(4) has not been compiled into the kernel, initialize the bpf interface
  pointer to a zeroed, statically allocated bpf_if structure. This way the
  LIST_EMPTY() macro will always return true. This allows us to remove the
  additional unconditional memory reference for each packet in the fast path.
  
  Discussed with: sam
  
  Revision  Changes    Path
  1.167     +5 -0      src/sys/net/bpf.c
  1.45      +1 -1      src/sys/net/bpf.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606140223.k5E2NSJh025424>
