cvs commit: src/sys/net bpf.c

Robert Watson rwatson at FreeBSD.org
Wed Aug 4 19:37:37 PDT 2004


rwatson     2004-08-05 02:37:36 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bpf.c 
  Log:
  Do a lockless read of the BPF interface structure descriptor list head
  before grabbing BPF locks to see if there are any entries in order to
  avoid the cost of locking if there aren't any.  Avoids a mutex lock/
  unlock for each packet received if there are no BPF listeners.
  
  Revision  Changes    Path
  1.132     +21 -0     src/sys/net/bpf.c


More information about the cvs-src mailing list