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>
Fri, 26 Jul 2019 07:14:08 +0000 (09:14 +0200)
commit0e2af9b06c00a30bc396cf455f50320a7c5b71da
tree31a9be048442ee5e919197f7ba0437f852e5f97f
parent4c57957ed6c8055cf13c1a8a7e29d1a6bed273ef
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