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 42A2241D44 for ; Mon, 27 Feb 2023 08:12:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E36940A84; Mon, 27 Feb 2023 08:12:32 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2047.outbound.protection.outlook.com [40.107.244.47]) by mails.dpdk.org (Postfix) with ESMTP id 20B3240A7D for ; Mon, 27 Feb 2023 08:12:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ArHsip8SqAffamXsEfOwA82NrAk2wJaWL6Va+7PqhU+wTSrPtQuJ+OknBy2Q9ycv6VGfIOLu5+cWmDIo9k6/0MHLb0euEZzTkO4EAAw53G73Ch96eh+s3+BCh2rB+iUElYBppwRGG0mM7kkil8FVZUW5IYa2DIlvDg7xmAFrEfpo5oSgaH+hV03rKs+Mkx3/hGnCyA3pHdrKzYvH/tUSh5eY1QIp0jHf2fv2pCKeysRM0/qFM8p+E94t47Qxgix8hXGhLoxGEvEJjOXX/c+JjXIYJGRnqMw8tlh/uK/9e5cYDVzPB0MkK3zMFt+tzvVTUCm0uc+ucURx7hsnr6SjWQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TgGpw0/OcAFxJCSc2g6UTvlzkYi+2Wy40pW4FbCBygQ=; b=FtgNkRa9D5QgXQAh2Fz6GVw0KwPGCx9zSQMS0ZRRm3zfSaYnmTYH2VS3EKGjKLwxXTepaxwork49XZcVNwtcpt9rfsQhruM7uP+p8FHQ+O0xwdlI6X13sFgUDrPQNMjUW2Np2ypNM9oHvmsC52c3SVSCsRD66nKygVoo5gGjxBb+R0NNJi5+hW8e6SLKbY/wWpVWggScxstKHZnVCAAK5B9S6m3uWGq1wlxKWlfUoKL1/Lcuf3IPrqJAG0Go2N4az4HBd6yHPTW8g9W+0OuCkxIdBbqh0Jk914KfzaVVvhTge7/zHgseqMKK4auc6VK22M9hbkNJG3mQiwWdGaM2mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=huawei.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=TgGpw0/OcAFxJCSc2g6UTvlzkYi+2Wy40pW4FbCBygQ=; b=rqq8G3UmH5Rkfj9bEXKZmGSpf4gejqO3SHGUrmmoT4cvalifg1Vdy3PTLn+/a6pgubw9K+4smy8NP8Oq+Mys+c72L8SlkYeiYIUtSnnB4e4scF5j60xcxnhKkVYUYm+zAUgefgqoevqBf4I41+8qHEuGhAcN3vMQYlQMhAzQ/hyoAKUDyYLkn+sgPji8ElDUoWbWnqiIZfa4hQxbUaCtqps2vYXF4oF5OJP5k3ubSf/j7X5THOUXCyKfe0uQLFX58nT9g68G5BxXuGMZZwtdtW/rHwjrZCtI71i6m53pauqn8xTv+m3w/Mr0pHUElvRap6quxt8w9ur6NiCv2d+RfQ== Received: from MN2PR20CA0013.namprd20.prod.outlook.com (2603:10b6:208:e8::26) by SA1PR12MB7102.namprd12.prod.outlook.com (2603:10b6:806:29f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.28; Mon, 27 Feb 2023 07:12:28 +0000 Received: from BL02EPF00010206.namprd05.prod.outlook.com (2603:10b6:208:e8:cafe::8d) by MN2PR20CA0013.outlook.office365.com (2603:10b6:208:e8::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.28 via Frontend Transport; Mon, 27 Feb 2023 07:12:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF00010206.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:12:27 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:12:13 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:12:10 -0800 From: Xueming Li To: Huisong Li CC: Dongdong Liu , dpdk stable Subject: patch 'net/hns3: fix warning on flush or destroy rule' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:00:11 +0800 Message-ID: <20230227070107.15664-103-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00010206:EE_|SA1PR12MB7102:EE_ X-MS-Office365-Filtering-Correlation-Id: 931de7d0-b7ee-4fa0-c59f-08db1891fbc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: viaTXI7BR6U5og2vO8MhsXOruGIAYc3vEWe8kuYCezQOVeO+buoxG1aAj4Pzepur7pRuwTO//y07OEotAtnLkY4W5xKfPHSNUsbN71LXquGgrogJ0slUnAQoRUyuK8zIopvZLrr6TiaiWSh90mZotY3B0H4zU+RdQABXsBvlSs24UhJwGxwRDabZjaSJ/hREwPWnjwjLl0PxurzZtmGHTryAQ+lQ+mWqMV2K7Do8EDlF92ojYx5PdodwCigGFTEQEIbZ2YoX8KSSJGjK3FNck0dmLeFJ3T0zWAP/iklkUdR4WrbS+GjeMqC0OHYfKWgu9b6mpR6BvvP4O/A5uC8O8cVkmKZYp+1YxohP96LK2FtqSoFHCKWtNFSpcET15V7bXIYNXwG9MsTYt0vQ2eMHRF5+++eRQiKHJuJHlcT2O93viZ6lkXE9gwLAaDmg93zpV1ucPvGcdSb+Be/bFfeAx8nF3JmMAocRS92vH2HasP8lfafkQzvkQ37tI8E3zfNHL64bhHlw5NsvVwE9vUFU+t0qFLK3o2Q/KvAfePex5cYKSgZ2Q4deINDJtV2gh0HvGyYtV3EAkdtsR7ph1/GddkqkmVwHhjOSnH0tox5nV9odCxDaS/bBo3WMT4q+idYAWJyjKk0cgSvYRcck/v+UpYJQVvs1xcX6jmiMGUnag6IUTcKMMcjRom40F7PBKnKrxkhVtMWLnMGiybsr1xkZ8Y4VofE102eaCS7gkLtP2EG4X6PNy3nMZ0yMMDbPB9kOKRYYTVKBO2+ykj5PbR3phJnFNsRNMZ/2xk8Ip27yDxg= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(39860400002)(376002)(346002)(451199018)(36840700001)(46966006)(40470700004)(336012)(426003)(47076005)(36860700001)(40480700001)(36756003)(86362001)(55016003)(7636003)(356005)(82310400005)(82740400003)(40460700003)(83380400001)(8936002)(2906002)(7696005)(5660300002)(70586007)(70206006)(6916009)(4326008)(8676002)(41300700001)(54906003)(316002)(26005)(186003)(16526019)(6286002)(2616005)(966005)(478600001)(53546011)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:12:27.4326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 931de7d0-b7ee-4fa0-c59f-08db1891fbc4 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00010206.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7102 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 Hi, FYI, your patch has been queued to stable release 22.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 03/01/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=f2de3c967d767ff57abad370b9162514ede58414 Thanks. Xueming Li --- >From f2de3c967d767ff57abad370b9162514ede58414 Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Tue, 31 Jan 2023 21:02:58 +0800 Subject: [PATCH] net/hns3: fix warning on flush or destroy rule Cc: Xueming Li [ upstream commit a7bf2789168c8d49ca4dec5bb7bb0b3f765fc1bd ] Although flow rules will no longer be used when user flush all rules or destroy a rule a warning is generated like: "modified RSS types based on hardware support, requested:0x137f83fffc configured:0x3ffc". Prevent warning for flush or destroy rule case. Fixes: ec674cb742e5 ("net/hns3: fix flushing RSS rule") Signed-off-by: Huisong Li Signed-off-by: Dongdong Liu --- drivers/net/hns3/hns3_flow.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/net/hns3/hns3_flow.c b/drivers/net/hns3/hns3_flow.c index 7adde16cbc..fbc38dd3d4 100644 --- a/drivers/net/hns3/hns3_flow.c +++ b/drivers/net/hns3/hns3_flow.c @@ -1537,17 +1537,6 @@ hns3_config_rss_filter(struct hns3_hw *hw, .queue = conf->conf.queue, }; - /* Filter the unsupported flow types */ - flow_types = conf->conf.types ? - rss_flow_conf.types & HNS3_ETH_RSS_SUPPORT : - hw->rss_info.conf.types; - if (flow_types != rss_flow_conf.types) - hns3_warn(hw, "modified RSS types based on hardware support, " - "requested:0x%" PRIx64 " configured:0x%" PRIx64, - rss_flow_conf.types, flow_types); - /* Update the useful flow types */ - rss_flow_conf.types = flow_types; - if (!add) { if (!conf->valid) return 0; @@ -1573,6 +1562,17 @@ hns3_config_rss_filter(struct hns3_hw *hw, return ret; } + /* Filter the unsupported flow types */ + flow_types = conf->conf.types ? + rss_flow_conf.types & HNS3_ETH_RSS_SUPPORT : + hw->rss_info.conf.types; + if (flow_types != rss_flow_conf.types) + hns3_warn(hw, "modified RSS types based on hardware support," + " requested:0x%" PRIx64 " configured:0x%" PRIx64, + rss_flow_conf.types, flow_types); + /* Update the useful flow types */ + rss_flow_conf.types = flow_types; + /* Set hash algorithm and flow types by the user's config */ return hns3_hw_rss_hash_set(hw, &rss_flow_conf); } -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:44.216325700 +0800 +++ 0104-net-hns3-fix-warning-on-flush-or-destroy-rule.patch 2023-02-27 14:08:40.849237000 +0800 @@ -1 +1 @@ -From a7bf2789168c8d49ca4dec5bb7bb0b3f765fc1bd Mon Sep 17 00:00:00 2001 +From f2de3c967d767ff57abad370b9162514ede58414 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit a7bf2789168c8d49ca4dec5bb7bb0b3f765fc1bd ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index 3809fcc2d7..632247b846 100644 +index 7adde16cbc..fbc38dd3d4 100644