cvs commit: src/sys/net bpf.c

Robert Watson rwatson at FreeBSD.org
Tue Mar 25 00:41:34 PDT 2008


rwatson     2008-03-25 07:41:33 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bpf.c 
  Log:
  Check for a NULL free buffer pointer in BPF before invoking
  bpf_canfreebuf() in order to avoid potentially calling a non-inlinable
  but trivial function in zero-copy buffer mode for every packet
  received when we couldn't free the buffer anyway.
  
  MFC after:      4 months
  
  Revision  Changes    Path
  1.189     +1 -1      src/sys/net/bpf.c


More information about the cvs-src mailing list