From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 97186A09F0 for ; Wed, 16 Dec 2020 19:27:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D32CC9BC; Wed, 16 Dec 2020 19:27:58 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by dpdk.org (Postfix) with ESMTP id CA1DCC9BC for ; Wed, 16 Dec 2020 19:27:56 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1004) id EF58B20B717A; Wed, 16 Dec 2020 10:27:54 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com EF58B20B717A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1608143274; bh=YnPWDlk2MWVnxWJ6QXK8BBkGfCZ6GeYomnoMwvWZBJE=; h=From:To:Cc:Subject:Date:From; b=LE7/k3iDDk+RgYfgO1V8/O5y9amybBP+VgtVEIiOm8umHj1Rg1b7V4ea3EeckuuN8 H0MNkzcgnZwhzLEgm/Tkc/M/Xe204GwPRuePaA56PECFBQwFMEYnhC4hyriNRID1x2 f5wMPOhYlfMQ1BGePkk20HE08nSvYR5FX4lSf3tQ= From: Long Li To: stable@dpdk.org Cc: abmarath@microsoft.com, Long Li Date: Wed, 16 Dec 2020 10:27:39 -0800 Message-Id: <1608143259-28440-1-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-stable] [PATCH 19.11] net/netvsc: disable external mbuf on Rx by default X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Long Li [ upstream commit 096b31fc0d8c989cc455c35f4d1def24a4ed6dee ] The upstream commit introduces a new driver parameter and disable the use of external mbuf by default. The same can be done by defining a max value for the RX threshold for external mbuf. The use of external mbuf is disabled by default for two reasons: 1. Due to the limitation of the kernel UIO implementation, physical address of this external buffer is not exposed to the user-mode. If this mbuf is passed to another driver, the other driver is unable to map this buffer to iova. 2. Some DPDK applications are not aware of external mbuf, and may bug when they receive an mbuf with external buffer attached. Signed-off-by: Long Li --- drivers/net/netvsc/hn_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c index 19f00a0..d618c17 100644 --- a/drivers/net/netvsc/hn_rxtx.c +++ b/drivers/net/netvsc/hn_rxtx.c @@ -42,7 +42,7 @@ #define HN_TXD_CACHE_SIZE 32 /* per cpu tx_descriptor pool cache */ #define HN_TXCOPY_THRESHOLD 512 -#define HN_RXCOPY_THRESHOLD 256 +#define HN_RXCOPY_THRESHOLD UINT_MAX #define HN_RXQ_EVENT_DEFAULT 2048 struct hn_rxinfo { -- 1.8.3.1