]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: udp: Optimise multicast reception
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 8 Nov 2009 10:18:44 +0000 (10:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Nov 2009 04:53:08 +0000 (20:53 -0800)
commitf68e25b5d77d78b32a4fd16b4ef3570716c8df84
tree5bb5b7f72be25210a899e60f9137a4dad899bf05
parent30a44cf8b4fed4817bd64c6063d7edc9b3042168
ipv4: udp: Optimise multicast reception

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.

It's also a base for a future RCU conversion of multicast recption.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Lucian Adrian Grijincu <lgrijincu@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c