0007-vhost_net-disable-zerocopy-by-default.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Jason Wang <[email protected]>
  3. Date: Mon, 17 Jun 2019 05:20:54 -0400
  4. Subject: [PATCH] vhost_net: disable zerocopy by default
  5. [ Upstream commit 098eadce3c622c07b328d0a43dda379b38cf7c5e ]
  6. Vhost_net was known to suffer from HOL[1] issues which is not easy to
  7. fix. Several downstream disable the feature by default. What's more,
  8. the datapath was split and datacopy path got the support of batching
  9. and XDP support recently which makes it faster than zerocopy part for
  10. small packets transmission.
  11. It looks to me that disable zerocopy by default is more
  12. appropriate. It cold be enabled by default again in the future if we
  13. fix the above issues.
  14. [1] https://patchwork.kernel.org/patch/3787671/
  15. Signed-off-by: Jason Wang <[email protected]>
  16. Acked-by: Michael S. Tsirkin <[email protected]>
  17. Signed-off-by: David S. Miller <[email protected]>
  18. Signed-off-by: Sasha Levin <[email protected]>
  19. ---
  20. drivers/vhost/net.c | 2 +-
  21. 1 file changed, 1 insertion(+), 1 deletion(-)
  22. diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
  23. index 2d9df786a9d3..21e0805e5e60 100644
  24. --- a/drivers/vhost/net.c
  25. +++ b/drivers/vhost/net.c
  26. @@ -36,7 +36,7 @@
  27. #include "vhost.h"
  28. -static int experimental_zcopytx = 1;
  29. +static int experimental_zcopytx = 0;
  30. module_param(experimental_zcopytx, int, 0444);
  31. MODULE_PARM_DESC(experimental_zcopytx, "Enable Zero Copy TX;"
  32. " 1 -Enable; 0 - Disable");