net: batch skb dequeueing from softnet input_pkt_queue
authorChangli Gao <xiaosuo@gmail.com>
Tue, 27 Apr 2010 22:07:33 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2010 22:11:49 +0000 (15:11 -0700)
commit6e7676c1a76aed6e957611d8d7a9e5592e23aeba
tree0cd14260745f755c885466c59182452f637e92e3
parentc58dc01babfd58ec9e71a6ce080150dc27755d88
net: batch skb dequeueing from softnet input_pkt_queue

batch skb dequeueing from softnet input_pkt_queue to reduce potential lock
contention when RPS is enabled.

Note: in the worst case, the number of packets in a softnet_data may
be double of netdev_max_backlog.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c