Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3785385ybi; Mon, 29 Jul 2019 12:34:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKOUfWZVxUjiADwMkzHWSuU3IZm8pAwsusZw5nuOg8gnyI7dh66CUEzA2cKS8vIu6E5tMN X-Received: by 2002:a17:90a:372a:: with SMTP id u39mr113680693pjb.2.1564428887616; Mon, 29 Jul 2019 12:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564428887; cv=none; d=google.com; s=arc-20160816; b=u/1KGpmIZ5bSuPC4zFu8efzmRNz+XdndlR50GXrEj0szHfNa9H/43QZAQIhtn9XBDZ N3LF4QNTqu4R6PkKSgtKhiA18loo2nmwVGUpKXBeUWGlj3aLYdtUM15sdYF0mOxSoUdX Bra2ymn99vR0GfSg5/VEV8vzLf442I7ieArYbDtmXIr+06ilo7n4+OktTWo7dxQtPqdg gLwUmK/xsPJzuauBfpZx0FFt0/GduOiex5YI0owHmph08QNhldWPUQi+dCDA4qw/cIgf Y2rDdfR/eVrEAShmJcCeCwWd03jPprL/aVFf3cchr4+l3Nf0NAPNXkETCpORIDL9WnnQ braQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Eo+s0Ir7GlSK4WMH/Evtf7QiNivfdvkuee166wKXRjo=; b=niPu4KutD0pJvpOBRq0nCVAifl8WunVe1gA53BKxypUy2z02z1jdC4Mm33nbBdSHb7 KA531f0dXCCOK5QDCi+BUaQP7N3h/9DUqlChNBT/EAU/C7VRAYazwy3o/oW+Xsodiddt uMWuwwPUH3zSnjCj6y4h/b5dSs7WYbmBgaR1bleGhJMcKS5v2uc4zaartPigO/8JGcAy hjjfVn7nIck6fBCfnR+YgiTeSUyxGZcIWjGyTJWW7gjOwX05Xynkwr3ls+sA6iP8Jjuj vo6QB3bs4UbNAw+FjryE+ysuF0LdBIrpmk+OTaJXwmoBO6EggIn6eYEGTYPcSyKVEyvz 0nXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QEk4dfNT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s62si24317309pjc.75.2019.07.29.12.34.32; Mon, 29 Jul 2019 12:34:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QEk4dfNT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727247AbfG2T25 (ORCPT + 99 others); Mon, 29 Jul 2019 15:28:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:41608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727564AbfG2T2x (ORCPT ); Mon, 29 Jul 2019 15:28:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 22C692070B; Mon, 29 Jul 2019 19:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428532; bh=wK7b6COeD7dL3yqszsDzRkPT8M+NtPOZ+usPFbJcXvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QEk4dfNT2LOBs2CGwzTFq2SucBWmLlVzRJ/Sit8IapDl3cyVE7yUQwTEUOnuuG/0c ccC2vzqbB7/wIy0rTmrWx/ubmNRhBlNOkx4/PUhCqLKy6ynmry9cv7K3jUxh2zdRyB Mrynq+iTXzuCD6RzsJdEAgPnHDOIq/T4kUkQoPVM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jason Wang , "Michael S. Tsirkin" , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 057/293] vhost_net: disable zerocopy by default Date: Mon, 29 Jul 2019 21:19:08 +0200 Message-Id: <20190729190828.485573190@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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 Acked-by: Michael S. Tsirkin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/vhost/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index b40e8ded49c6..4d11152e60c1 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -35,7 +35,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"); -- 2.20.1