This function doesn't return whether listeners should be woken up, it
calls bpf_wakeup as needed.  ok?


Index: bpf.c
===================================================================
RCS file: /d/cvs/src/sys/net/bpf.c,v
retrieving revision 1.149
diff -u -p -p -u -r1.149 bpf.c
--- bpf.c       12 Sep 2016 16:24:37 -0000      1.149
+++ bpf.c       12 Oct 2016 13:52:39 -0000
@@ -1343,8 +1343,8 @@ bpf_mtap_ether(caddr_t arg, const struct
 
 /*
  * Move the packet data from interface memory (pkt) into the
- * store buffer.  Return 1 if it's time to wakeup a listener (buffer full),
- * otherwise 0.  "copy" is the routine called to do the actual data
+ * store buffer.  Wake up listeners if needed.
+ * "copy" is the routine called to do the actual data
  * transfer.  bcopy is passed in to copy contiguous chunks, while
  * bpf_mcopy is passed in to copy mbuf chains.  In the latter case,
  * pkt is really an mbuf.


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to