ipv6: udp: Optimise multicast reception
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 8 Nov 2009 10:18:52 +0000 (10:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Nov 2009 04:53:09 +0000 (20:53 -0800)
commita1ab77f97ed03f5dae66ae4c64375beffab83772
tree04ad6bf5def42fc415b85f3e0fe1638e64b26eea
parent1240d1373cd7f874dd0f3057c3e9643e71ef75c6
ipv6: udp: Optimise multicast reception

IPV6 UDP multicast rx path is a bit complex and can hold a spinlock
for a long time.

Using a small (32 or 64 entries) stack of socket pointers can help
to perform expensive operations (skb_clone(), udp_queue_rcv_skb())
outside of the lock, in most cases.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c