macvtap: switch to use skb array
authorJason Wang <jasowang@redhat.com>
Fri, 15 Jul 2016 07:46:31 +0000 (03:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 21:40:39 +0000 (14:40 -0700)
commit362899b8725b35e32802882c67f99cbf42bce2af
tree3b7ca9c6bbd449af799a6cd569c14e1666239519
parent1b16bf42d154c8fbbab2cccc419e2ba47d700849
macvtap: switch to use skb array

This patch switch to use skb array instead of sk_receive_queue to
avoid spinlock contentions. Tests shows about 21% improvements for
guest rx pps:

Before: 1472731 pkts/s
After:  1786289 pkts/s

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c