vhost_net: disable zerocopy by default
authorJason Wang <jasowang@redhat.com>
Mon, 17 Jun 2019 09:20:54 +0000 (05:20 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:26 +0000 (07:28 +0200)
commitddd38aa7b44c7faba7f6e37bcf382abeca695da3
tree481b64c7c6044a1c74a2d383d4b2d309a5b43838
parentb5b7d3a8d33af2e98159c78f81e9330395b58c9f
vhost_net: disable zerocopy by default

[ Upstream commit 098eadce3c622c07b328d0a43dda379b38cf7c5e ]

Vhost_net was known to suffer from HOL[1] issues which is not easy to
fix. Several downstream disable the feature by default. What's more,
the datapath was split and datacopy path got the support of batching
and XDP support recently which makes it faster than zerocopy part for
small packets transmission.

It looks to me that disable zerocopy by default is more
appropriate. It cold be enabled by default again in the future if we
fix the above issues.

[1] https://patchwork.kernel.org/patch/3787671/

Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vhost/net.c