vhost_net: batch update used ring for datacopy TX
authorJason Wang <jasowang@redhat.com>
Fri, 20 Jul 2018 00:15:21 +0000 (08:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jul 2018 16:43:31 +0000 (09:43 -0700)
commit4afb52c2af44ac761e829d4cd511a20b577959fa
tree7cc7288ea2250650a0ded03559ac9711c1abeed7
parentd0d869718754da534719be32f2c28b1210c3955d
vhost_net: batch update used ring for datacopy TX

Like commit e2b3b35eb989 ("vhost_net: batch used ring update in rx"),
this patches implements batch used ring update for datacopy TX
(zerocopy has already done some kind of batching).

Testpmd transmission from guest to host (XDP_DROP on tap) shows 25.8%
improvement (from ~3.1Mpps to ~3.9Mpps) on Broadwell i7-5600U CPU @
2.60GHz machine. Netperf TCP tests does not show obvious differences.

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