]> git.baikalelectronics.ru Git - kernel.git/commit
udp: Only allow busy read/poll on connected sockets
authorShawn Bohrer <sbohrer@rgmadvisors.com>
Mon, 7 Oct 2013 16:01:38 +0000 (11:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 20:27:33 +0000 (16:27 -0400)
commitba084ca2682b7c2fe06a9044a1517eccae242d53
tree2d551f452fbb3cd1aa0ffb3443abf217dee22549
parent55d5bad91a930d28ad4a3c3b3279ab3cb2c0e6e9
udp: Only allow busy read/poll on connected sockets

UDP sockets can receive packets from multiple endpoints and thus may be
received on multiple receive queues.  Since packets packets can arrive
on multiple receive queues we should not mark the napi_id for all
packets.  This makes busy read/poll only work for connected UDP sockets.

This additionally enables busy read/poll for UDP multicast packets as
long as the socket is connected by moving the check into
__udp_queue_rcv_skb().

Signed-off-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv6/udp.c