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 8FB5FA0A0E for ; Mon, 10 May 2021 18:13:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 897F840140; Mon, 10 May 2021 18:13:04 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2087.outbound.protection.outlook.com [40.107.94.87]) by mails.dpdk.org (Postfix) with ESMTP id 5E66F410FF for ; Mon, 10 May 2021 18:13:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LQczJ115VXj7TTu9tLMtZhRSohqeE0kzGHMKSyLIZrxJdpGiB8CQ0OuHRetqt0sL4T/4xiogQTeIwtBKqrC8qtPJbbmgiI+kazCtlk58gwjwkTTdu8sQrvKeHU6aDxpAzui1mUNQ4NvtcHt1vbNr4VQiDuWRsV7CeDetfjhig7KDD4bkQU3GI7PylIM9K9bRKpzk/PS3ojnyj1/7RrnVxd0xhwrBHZBqZOts8olxPIMJkE5DZx1zi6J4GS497CevcUyXrf5DjGw8utW9KGQnyDHW0ZrLouZjCAiM6v44h9vWYXXLI0XL63pdIf3PE/lyxNykXWuqmi8hIX32vGOXtA== 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=gPElqu1uUhkj6mK+fFhVgGVVJaCkJjQrR3NbXijCKKU=; b=OsTGS7wM9cpXOn0+YhOn0ghD5MZ7P4iGyTxdE48voUYI3XG4U3krcuFE61r6d6LM1zNAG6ZMqOKhrhsQ9JWE11mr8ufJo6yCWilPG3RyPakebeimAVyWdH1Ic4/qw3IADBjOP1IOqCQQYpny6+OKf2c5vJIQM3911J7IBuVu4+YA4C9+TT7Y7VQK3tliFKThRzqHmDmgc+AhInENew+odU8T8ug7oeuZISlaD5Ty8M/hAoz6mK2xBIXGzBz8CmsX8dx5AR9OIFySYGxYEg+h3N6mqyEhX3F2SYAzBnI39T5V642etOski0jEydlbjHVYiMfFW1vSsAxSNMPX888+yQ== 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=gPElqu1uUhkj6mK+fFhVgGVVJaCkJjQrR3NbXijCKKU=; b=I3OqPTusf/lwVGd5+vNYRIlGq1zAhwavOs9vuWQPyHrK+t3XWMT6Xt6prHedxI5A5F1as7C9/TtIh9xiu0GbKM4M0AyaexCXtKkvV17Yi4fXTyTFk7m6AKMEaRxtUj43pJDQGEN6reqGh2EZRNkUQifaGOdY1ZrGY6dS9fiHkU/3sNE5JDVZdUuoYiRpEEXCi7FirY30f03zWCU2QoGKsMGSESLDPne/w0rXkJKRWLfUsa1p5968C9T7okOtc4IJO/M9o04RHYMqzedSyliv/oGQJJhwZML6R8gGHvbO4xD1tsTRbGx7kh605HjLd7uC/gLvoGfwDsvWQG2t4cqfZA== Received: from MWHPR21CA0038.namprd21.prod.outlook.com (2603:10b6:300:129::24) by SN1PR12MB2526.namprd12.prod.outlook.com (2603:10b6:802:2a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.26; Mon, 10 May 2021 16:13:01 +0000 Received: from CO1NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:300:129:cafe::ac) by MWHPR21CA0038.outlook.office365.com (2603:10b6:300:129::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.0 via Frontend Transport; Mon, 10 May 2021 16:13:00 +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 CO1NAM11FT052.mail.protection.outlook.com (10.13.174.225) 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:13:00 +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:12:58 +0000 From: Xueming Li To: Wenjun Wu CC: Luca Boccassi , Qi Zhang , dpdk stable Date: Tue, 11 May 2021 00:00:49 +0800 Message-ID: <20210510160258.30982-100-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: cffd7dbb-0abe-45f7-c3c3-08d913ce7b90 X-MS-TrafficTypeDiagnostic: SN1PR12MB2526: 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: kVt1BaEsgzqvoEcMNGvgQaweMgvTKdhi1vSZd5D9erfTD7YgpPitZRH+LdFvUObdCKTVmbAxnL7dgBFUawVk/pi09tfg8oj7kgLLn/sIeZiLU6aubGLzkOIkPPZGcbaX0h5TckWvQewjuFQjPBvSvmgpDSapb++UJaE1tdydUjkSN/nin6kqza3uM8o7e1zKKPJg2QHQfdyotEvChpBxuOQQ4VYTSVsRVhbkNNehcv2XGLuR5MzekUFUbY7eG+NT+Xr+nbrPSafBETmaMOJ8n7e/PpKAweNcgels6nJuxNzgjdqEfuPkftAJbhgwSFpZky0Ji1Ly8dVIXu9ln6qEraC1qphVfF2yvkE0+QGfCEX0NrcunISp/MlxnLcrrhqTfqq0xpHaOdAPNWdzeFlo09TnWTM/IWji0Gj8PtUUgyit8/SK/Mx3GGo8QTNeDtReOIY+/7RxjjHjfFSyA/ylF0GGwmppk5Cn/k4L73hv7LhQ4kTI+Us+r2V52lzm+MIe29koydM0AhjC9mnvZTjRhHxF+cgYsIw1DGDo8WQddSgn5jZsk2evuO1S/nkcgGI/JQMoxdFLcpKVXFupi4Y7pUdq+9aph3y6bFaYGoZIZuwjK5gPuOsz2U+wyrYoM5H/AkTMCTVRtgGWZ66+X6SW9IOi3Xwaln6vK+kt93Ueyh8NtvCAs+/yHWabAk/1UXFl1ga/9EbK4RGyNrxZhO7KaYvI5Gw9KEOChQqGef5GzysKUlcT0dQgdhSYrsHBzw/mjnyikJG3SISsIXyv9AZ5Dg== 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)(46966006)(36840700001)(36756003)(15650500001)(70206006)(86362001)(2906002)(336012)(1076003)(26005)(83380400001)(47076005)(70586007)(55016002)(54906003)(6916009)(82310400003)(2616005)(426003)(36860700001)(8676002)(186003)(4326008)(966005)(16526019)(6286002)(7696005)(8936002)(498600001)(7636003)(53546011)(36906005)(6666004)(5660300002)(356005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:13:00.5912 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cffd7dbb-0abe-45f7-c3c3-08d913ce7b90 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: CO1NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2526 Subject: [dpdk-stable] patch 'net/ice: fix RSS hash update' 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/7b7af2fd73148dc8e98f870676aa4d8d4548b923 Thanks. Xueming Li --- >From 7b7af2fd73148dc8e98f870676aa4d8d4548b923 Mon Sep 17 00:00:00 2001 From: Wenjun Wu Date: Fri, 5 Mar 2021 14:03:24 +0800 Subject: [PATCH] net/ice: fix RSS hash update Cc: Luca Boccassi [ upstream commit 962fa026889d83f5f0a6880a98d050e0c3e0f6b9 ] This patch change judgment statements to disable RSS for pf when users need to disable RSS or RSS hash function configured is not supported. Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config") Signed-off-by: Wenjun Wu Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 626ebfac5b..f4874632cd 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -4394,8 +4394,10 @@ ice_rss_hash_update(struct rte_eth_dev *dev, if (status) return status; - if (rss_conf->rss_hf == 0) + if (rss_conf->rss_hf == 0) { + pf->rss_hf = 0; return 0; + } /* RSS hash configuration */ ice_rss_hash_set(pf, rss_conf->rss_hf); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:29.209223900 +0800 +++ 0101-net-ice-fix-RSS-hash-update.patch 2021-05-10 23:59:26.480000000 +0800 @@ -1 +1 @@ -From 962fa026889d83f5f0a6880a98d050e0c3e0f6b9 Mon Sep 17 00:00:00 2001 +From 7b7af2fd73148dc8e98f870676aa4d8d4548b923 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 962fa026889d83f5f0a6880a98d050e0c3e0f6b9 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 9c9b84a938..5a1190d50e 100644 +index 626ebfac5b..f4874632cd 100644 @@ -23 +25 @@ -@@ -4457,8 +4457,10 @@ ice_rss_hash_update(struct rte_eth_dev *dev, +@@ -4394,8 +4394,10 @@ ice_rss_hash_update(struct rte_eth_dev *dev,