Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9929076ybi; Wed, 24 Jul 2019 12:30:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhKuZmhFRkNd2+dM+W6ujGYpP1jS487Z//HnkF8TCVLUxM1PKsOSvFSFqK2MKmL/kJkZ71 X-Received: by 2002:a63:e306:: with SMTP id f6mr81502862pgh.39.1563996637477; Wed, 24 Jul 2019 12:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563996637; cv=none; d=google.com; s=arc-20160816; b=q6dw3FOJipNJAJUq1cbc5zUHi+6BJOHB58CjfmrFfCeaxyylVA3vjpvLJhF/amqpT8 MHzV5jM4JUzyO1OKVaaQwjAspgi/E6gUHF88eSORK8ot+N792ynVXfaGQ4OdsD0jzW3t q35QV4Vdn7wgoLZGYVh6Yxvp1xE1o5OtOI7qbZAA46VX4nlj+TrnuG731reA0s292U+n LJek9G5dhLPFPsq4qiIxKhFzRCVuLZUqUMP1YWeEApr/Gl+hDOf0VGxW9Go/3uayBHc5 PNGtUUcRBsv5ILbbLNhTGdTkRdn/K2+8amFiWfjQBBpm58JuZXBYwXd+7bG8URwRgS2j jAtw== 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=XlT8PUj5Cse7CLkLzV0hWUNRUHeIGfc9g5aUrZ2Bx3o=; b=cpIh1iIgWaMYqdUFlQhT9KW48R+/PG1WFKMFR9my8bRWwY92CTrCz9iZp978h9tbA9 FASMS7JCs6PjCbyyktc6iX8+Nnyk8vEu9x4ABSbV95e1G+G5zNeYgeMkhc4mM+QgUfrR x+uSzRN3Zo2cZmqo4xWmSLzxtFa7/kHiB7cLsI6xcD1Ct+WC/fqeA7foiQik/+0KEH1s 751EaJyF0YIQsn0u33voOgG9jgVv+gWO2R8c4Y39keUlKXNTuIjR70o0aE9QfOuT3and aCfBF/o4v2a6pFRAIDYIH3MFXefZ8QOlyNs4jaG+1LVLy4i/KnYK6W41EsKdTLvW3R3q 16bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CBtYh1A4; 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 d8si43742921pgv.61.2019.07.24.12.30.22; Wed, 24 Jul 2019 12:30:37 -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=CBtYh1A4; 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 S2388325AbfGXT2Z (ORCPT + 99 others); Wed, 24 Jul 2019 15:28:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:46550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388233AbfGXT2V (ORCPT ); Wed, 24 Jul 2019 15:28:21 -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 D48B321951; Wed, 24 Jul 2019 19:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996500; bh=+E7l2ji47+QPKyzCYtnJU/gcwcZY0L7QrDYr5U6InH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CBtYh1A4Cf46UhJmYjGAQG1UhwDgmt8EjzO4TkSMfPuQxrLxHSUvg7FGlftOMTK23 8pDRHct3Z6oRzcNJkdC71kXj+ZSJ5MUk9SB3vqMrmVFF2bGw72CqmKQXrJ2LkM7Y6J hf32G2FSgdfelruvVYzZfJuDg3bS7cyQO7jgyE9I= 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 5.2 116/413] vhost_net: disable zerocopy by default Date: Wed, 24 Jul 2019 21:16:47 +0200 Message-Id: <20190724191743.595313393@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@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 d57ebdd616d9..247e5585af5d 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