diff options
author | Jason Wang <jasowang@redhat.com> | 2019-06-17 12:20:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-17 23:58:02 +0300 |
commit | 098eadce3c622c07b328d0a43dda379b38cf7c5e (patch) | |
tree | 1c4aa5aa646d416495599bb04bf514eceee61f4b /drivers/vhost/net.c | |
parent | c681edae33e86ff27be2d6cc717663d91df20b0e (diff) | |
download | linux-098eadce3c622c07b328d0a43dda379b38cf7c5e.tar.xz |
vhost_net: disable zerocopy by default
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>
Diffstat (limited to 'drivers/vhost/net.c')
-rw-r--r-- | drivers/vhost/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 2d9df786a9d3..21e0805e5e60 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -36,7 +36,7 @@ #include "vhost.h" -static int experimental_zcopytx = 1; +static int experimental_zcopytx = 0; module_param(experimental_zcopytx, int, 0444); MODULE_PARM_DESC(experimental_zcopytx, "Enable Zero Copy TX;" " 1 -Enable; 0 - Disable"); |