net: Add MSG_WAITFORONE flag to recvmmsg
authorBrandon L Black <blblack@gmail.com>
Fri, 26 Mar 2010 16:18:03 +0000 (16:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Mar 2010 15:29:01 +0000 (08:29 -0700)
Add new flag MSG_WAITFORONE for the recvmmsg() syscall.
When this flag is specified for a blocking socket, recvmmsg()
will only block until at least 1 packet is available.  The
default behavior is to block until all vlen packets are
available.  This flag has no effect on non-blocking sockets
or when used in combination with MSG_DONTWAIT.

Signed-off-by: Brandon L Black <blblack@gmail.com>
Acked-by: Ulrich Drepper <drepper@redhat.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found