From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6A7BFA0A0E for ; Mon, 10 May 2021 18:07:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63CB0410E3; Mon, 10 May 2021 18:07:01 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2064.outbound.protection.outlook.com [40.107.93.64]) by mails.dpdk.org (Postfix) with ESMTP id BA68F40395 for ; Mon, 10 May 2021 18:06:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d+eyJfCyNt8LYQ5VjCqpQjzC0luAnFJj9R32vjOaeicUp1rkPSAM4KVaCloG/i9RnBW2r7kL6alBr0Pprv+vPksxHuad7TstWBmhzIya8vffBCifM+CUPAoW/3tJVTJX5P/of/jg+pVbCLjpprJDgga9waCR2MOssuI10sLJpqqIrV0Ufa0eBz938NsHwadRTmAMCIYzP1EXhVRXlvlopO+VaLT+TiPKxp8Qpu3Imw0bSMDZp7+JCtWxW/o++XadAFgwgLmxrzY/l3n0G3QuaCAW4KRW1/DhuTCRiftupRaN2673xTuI3uYMwfLFh60sn1dVacU7Yflhrw7VLnXCpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J3p78CvXG94chm8AVH8xGkNdMyAwHFgq84raQ89cc/k=; b=IrlDft8AHovVDE4vpbnGeXrrgB1ve2ZFHH7W4nkAU1TgC2jkWVk3qdkrHrRBSdfEJjdF84MrNT+44u65WFErjhXnUROwTj97Xiz8XHKEsLNGxW246sq9AmHh3EzTy28qmwf9+zEbmb0najFeuJ7gELw9RuyeQ6u9LWzR0+lJpDol0/aJOZJ6GNYwkv926Nm6vw7e8Co5C68iCfb37xGesvpfqxZTGvH/05ubEWxUkwTgLA5OWvdFCVw+VegOmKrhc7KO+hQgI2Ub+zUUTu4WCZ79WG8UNwMh8df63r6Tr7K7kigWl79icXQ4HZ3m/UTF6P3d4FIZmGkVK1OuTVuEFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J3p78CvXG94chm8AVH8xGkNdMyAwHFgq84raQ89cc/k=; b=qKbZWYFYUIhoGJCKMSv5hqSRZwk0qntkbDkLThpGuvdd/ijwQAFsfn0gKfWIATso4zOofrx4GAgmn1CZs6JxM93ejBHuG2k8XzFghkzfqoOLtgSyZKHpfy2d5QAbuLFc1bB+M3aqCEJIxw/iH7fh4CyXXehuJKDZYl0MsAWoGwM9+aerYBbPwcKt2pswWo3fkC4ydDeeh81KcBGJLIH9yDZX6tKqX3SUuGrAnbPtwuufvhfFeuo+AM1VrijSyrcwRxj4yHo0pUqUUJRK/08s+a8OC8EyGxc6ZpQaqngyVaULfdh4vr1w8Q0cLQ4X8tDMceGyPkwaMuB/yDBZ02N9Uw== Received: from BN6PR11CA0060.namprd11.prod.outlook.com (2603:10b6:404:f7::22) by BN6PR12MB1553.namprd12.prod.outlook.com (2603:10b6:405:6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Mon, 10 May 2021 16:06:58 +0000 Received: from BN8NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:404:f7:cafe::fb) by BN6PR11CA0060.outlook.office365.com (2603:10b6:404:f7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:06:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT016.mail.protection.outlook.com (10.13.176.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:06:58 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:06:55 +0000 From: Xueming Li To: Beilei Xing CC: Luca Boccassi , Hengjian Zhang , Jeff Guo , dpdk stable Date: Mon, 10 May 2021 23:59:48 +0800 Message-ID: <20210510160258.30982-39-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4351eae1-ba6d-4535-920b-08d913cda392 X-MS-TrafficTypeDiagnostic: BN6PR12MB1553: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hzBDxhaDNPhx1cqJIQ+OK0kMkJbvvn1UiA0eL28GLQhgTYDCOapZczn/jT6R5WXSNRB6gNd38rsXTNrkRjoGLdqe7l5r3WnFtXtOjD+oXT+1E3Eq4dFQ1li51JIP23RxWutU92EqZBBcxNe4NZ5S7bBPke2pXEboncsi8BTc3VBgayz98ZVtGxfCmn0Sd5BMsXncgSNItm3Rdxz4yTY3lkCGvbgGzR6FOCU7TeUXunf5jOGzPHsAUep8OCNlQ/57EM9CShOc3uLVpicMjU+/kmGk+OtyRr7GLfvx7c5aH4iwZeO4GHdHzUoqdAiwuYwgD260cJEZw4K00e7JvSI8NdZxAks1nRi2Xn4MtLIXoF0Ph7AA9ZC/pc7zwecf7WDWGtBP4PvzWcdztvkaTt/A272hu112yW/B+jTlrenykbL1MvDuRDmHW1zByiq2bfMsCt+NenQ3MC1iavrUxrt5oCybeC1kwl1LNoEZao2VjHTtQJN35fbPqADEdtK7AK7NFCc2MozFhWWbVSIbUU/oZjddVIyBaWPh33HLkNuLMWLv0BlZ+0KOR8xpc51Gi4hebKYTuTiuGMuijnzZNBSde+JGK24PEgICU9aNKoqP5eArKXKcpcp37nL/TKoJC7D+fNzRIWOccUbM+IK1tbyoVRGogkjlA1m7AGVcjgv8dyd7QwMa3MRSphyraKdZNcekRzxXMUVK7HzEKfAMUpIQNkxCj0PYhenz11Wf52SqFOcqALps2uU/tps/k54yUMA5SW9d5KCr0FGfuXk7LkUYPA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(376002)(136003)(39860400002)(346002)(46966006)(36840700001)(6916009)(55016002)(966005)(53546011)(26005)(478600001)(7696005)(5660300002)(8936002)(70586007)(16526019)(6286002)(86362001)(47076005)(36756003)(4326008)(2906002)(70206006)(6666004)(82310400003)(1076003)(82740400003)(7636003)(54906003)(36860700001)(186003)(2616005)(356005)(8676002)(426003)(36906005)(83380400001)(336012)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:06:58.1402 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4351eae1-ba6d-4535-920b-08d913cda392 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1553 Subject: [dpdk-stable] patch 'net/i40evf: fix packet loss for X722' has been queued to stable release 20.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/94610393111ac87f41e5ee6550a843b743b172d2 Thanks. Xueming Li --- >From 94610393111ac87f41e5ee6550a843b743b172d2 Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Wed, 24 Feb 2021 10:09:00 +0800 Subject: [PATCH] net/i40evf: fix packet loss for X722 Cc: Luca Boccassi [ upstream commit c45bd78e07e9d4b5ffc29748b9b7d4127293597a ] When Tx queue number is more than Rx queue number, and RSS is enabled, there'll be packet loss with X722. The root cause is the lookup table is not configured correctly, since it uses VF's queue pair number but not Rx queue number. Fixes: 2da3ba746795 ("net/i40e: fix VF runtime queues RSS config") Signed-off-by: Beilei Xing Signed-off-by: Hengjian Zhang Acked-by: Jeff Guo --- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index bca8cb80e4..62acad702d 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -2745,7 +2745,7 @@ i40evf_config_rss(struct i40e_vf *vf) } for (i = 0; i < rss_lut_size; i++) - lut_info[i] = i % vf->num_queue_pairs; + lut_info[i] = i % num; ret = i40evf_set_rss_lut(&vf->vsi, lut_info, rss_lut_size); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:27.704359600 +0800 +++ 0040-net-i40evf-fix-packet-loss-for-X722.patch 2021-05-10 23:59:26.380000000 +0800 @@ -1 +1 @@ -From c45bd78e07e9d4b5ffc29748b9b7d4127293597a Mon Sep 17 00:00:00 2001 +From 94610393111ac87f41e5ee6550a843b743b172d2 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit c45bd78e07e9d4b5ffc29748b9b7d4127293597a ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -22 +24 @@ -index 2909b4d894..0c9bd8d2c6 100644 +index bca8cb80e4..62acad702d 100644 @@ -25 +27 @@ -@@ -2746,7 +2746,7 @@ i40evf_config_rss(struct i40e_vf *vf) +@@ -2745,7 +2745,7 @@ i40evf_config_rss(struct i40e_vf *vf)