When I created UDP socket splicing, I added the goto nextpkt loop
authorbluhm <bluhm@openbsd.org>
Sat, 11 Jan 2014 14:33:48 +0000 (14:33 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 11 Jan 2014 14:33:48 +0000 (14:33 +0000)
commitd980d716fa9abc4c8aead2b490f8adae654ac1b3
tree4cab975a05f161f3e3f473787cf1db5692106237
parentba98b1c1cb0943783c97e65d8ba5e3efebb8759b
When I created UDP socket splicing, I added the goto nextpkt loop
to splice multiple UDP packets in the m_nextpkt list.  Some profiling
with TCP splicing showed that checking so_rcv.sb_mb is wrong.  It
causes several useless runs through the loop.  Better check for
nextrecord which contains the original m_nextpkt value of the mbuf.
OK mikeb@
sys/kern/uipc_socket.c