loos 21e0cf5c4b MFC r286140:
Remove the sleep from the buffer allocation routine.

  The buffer must be allocated (or even changed) before the interface is set
  and thus, there is no need to verify if the buffer is in use.

MFC r286142:
  Remove two unnecessary sleeps from the hot path in bpf(4).

  The first one never triggers because bpf_canfreebuf() can only be true for
  zero-copy buffers and zero-copy buffers are not read with read(2).

  The second also never triggers, because we check the free buffer before
  calling ROTATE_BUFFERS().  If the hold buffer is in use the free buffer
  will be NULL and there is nothing else to do besides drop the packet.  If
  the free buffer isn't NULL the hold buffer _is_ free and it is safe to
  rotate the buffers.

  Update the comment in ROTATE_BUFFERS macro to match the logic described
  here.

  While here fix a few typos in comments.

MFC r286243:
  Add a KASSERT() to make sure we wont rotate the buffers twice (rotate the
  buffers while the hold buffer is in use).

  Sponsored by: Rubicon Communications (Netgate)
2015-08-17 18:43:39 +00:00
..
2015-08-17 18:33:16 +00:00
2015-07-30 00:24:21 +00:00
2015-08-17 12:51:46 +00:00
2015-06-02 14:54:53 +00:00
2015-06-16 20:00:53 +00:00
2014-12-31 23:25:37 +00:00
2014-10-18 19:22:59 +00:00
2015-08-01 22:56:42 +00:00
2015-08-14 12:23:20 +00:00
2015-06-06 18:03:36 +00:00
2015-08-17 18:33:16 +00:00
2015-06-02 14:54:53 +00:00
2015-08-17 12:51:46 +00:00
2015-02-02 08:05:11 +00:00
2015-07-16 14:41:58 +00:00
2015-08-17 18:43:39 +00:00
2015-05-31 23:29:04 +00:00
2015-07-31 03:40:09 +00:00
2015-08-05 11:24:40 +00:00
2015-07-15 21:09:38 +00:00
2015-07-31 12:02:44 +00:00
2015-01-01 10:44:20 +00:00
2015-08-17 10:03:23 +00:00
2015-06-21 06:28:26 +00:00
2015-06-21 06:28:26 +00:00
2015-07-30 02:06:29 +00:00
2015-08-17 12:51:46 +00:00
2015-07-11 19:11:40 +00:00
2015-08-06 08:51:15 +00:00
2015-08-17 18:36:16 +00:00
2015-07-21 07:22:18 +00:00