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 83B0143E57 for ; Sat, 13 Apr 2024 14:57:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E228402CB; Sat, 13 Apr 2024 14:57:35 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2063.outbound.protection.outlook.com [40.107.223.63]) by mails.dpdk.org (Postfix) with ESMTP id A55F6400D6 for ; Sat, 13 Apr 2024 14:57:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TbMI4ZdwMdCMU6hlUNBr98YPCNN10HiJxHIYPfeJnB70ksJZIDI4KItt7wHTOp1J3Ub2hsED2QYVbA+ww+7fzVlmTBFwsr+v3wolzic5UVi3HnerOrvYCjjnV+jF5LeunCfJsV3h9UhmTYwCD1NLqtxOR3CqJxWXH/KFgG+N93mQCPXAoBs98kHQyQMAJkidalvsqqvPvuzCUyVGF21NBzH2wN5Gn1XxjrsJIlCl8D1KgH0HlrvQbmQSSRnD4GKxkf+vOPNwysDZvPOiv30TQvibCxWoX1dI1PDvzWuYwJzHo1qKBZYeeuhiKY3VtEimCYglNQd6I2Uu26/Dx7Jbug== 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=Os2ynsV3r0GZvGqR63ppAzG9FR3sHGcs7e5Q0/BMQkk=; b=QnfCanqzpEsi1HoKn4gWxEPC75oM5Cb2kRScCBmS8NU7kqwTXxHsR6KI5bW1ZRW1z/TX+oS3Da9Vc6YXMQiMVoZO3+gQc7RZ3dKncdqjpvGHyjZ43aJwe0Og6NGDisPOj+nHmwmM/PXdHiul22hoLjC+7zbbZbcPw3okpkBVndJ5zDbZvUlPNaGlwEmZRjAIZE/xpkDaegHMKwyEZsBGKFU/kROizRugPRlb1P4GaOJVqPz7vy13T5Jt7lpkkkjqAo81Dyjh6WAhAhOPAYQU3K1I77Ti1M8mCCWnNWqr0+x0oyGWoISB4eu8Tonp1FbQ3SJ5xWiRkuc60dL9RwMaKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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 (0) 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=Os2ynsV3r0GZvGqR63ppAzG9FR3sHGcs7e5Q0/BMQkk=; b=ueH4RxSKu8a/42y7uVMhWNTQnKxu1X1DBRCFGk7rnTcu71PZmp1Nk4Et27SWZ0d7kk6A8aBpWbHSBpguuBBCAbPiqnPknM1uulm2zKG+fXbV+QeoTsv8tycFaMhjOGDt+/o8DDatROrKzSSNeJRY3eccqxvzzlxNX4h0pdSS1a1Q9coH4lwP1QCtx1gwXOslGIrCZRG2MJR+FiBSzbWoIwi9QxMsQtKS6AbEgd9t7SyOrRLTiGorCd9OsENiLBQ2X031HKO8NSmXtDN8xarTM/sPv15cW/VsH93wLg75R1JcY8EZNzNUWjrqE9Fc6U641NbqaDIQkST1rKWlelQieQ== Received: from CH0P221CA0013.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:11c::6) by SJ2PR12MB8783.namprd12.prod.outlook.com (2603:10b6:a03:4d0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Sat, 13 Apr 2024 12:57:27 +0000 Received: from DS3PEPF0000C380.namprd04.prod.outlook.com (2603:10b6:610:11c:cafe::3b) by CH0P221CA0013.outlook.office365.com (2603:10b6:610:11c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.30 via Frontend Transport; Sat, 13 Apr 2024 12:57:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DS3PEPF0000C380.mail.protection.outlook.com (10.167.23.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Sat, 13 Apr 2024 12:57:26 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Sat, 13 Apr 2024 05:57:08 -0700 Received: from nvidia.com (10.126.230.35) 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.1258.12; Sat, 13 Apr 2024 05:57:06 -0700 From: Xueming Li To: Jie Hai CC: dpdk stable Subject: patch 'net/hns3: enable PFC for all user priorities' has been queued to stable release 23.11.1 Date: Sat, 13 Apr 2024 20:49:17 +0800 Message-ID: <20240413125005.725659-77-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240413125005.725659-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> <20240413125005.725659-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF0000C380:EE_|SJ2PR12MB8783:EE_ X-MS-Office365-Filtering-Correlation-Id: 63b20dee-aa41-4ebf-20e8-08dc5bb94520 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LPl+yHvLk4gGb92FNYlBnsWJEYxS6cfVGBbetO1OxnSJNUD3NQyXKGo/9301HSqco82MN1pQ5a2GTCZAbyW/v9tChDKR4ydUMfOgrxFDeruk48UE5osLaFjs6aFqccaG6kUEIfezBrCHPUD4o80jgrInoVnDZfYfyQ1ZwhBilV5pDPKmKk/QFODA0zni1w4PiaMo3Fc5hA9lf1I+a93hEtUCITJOrqx4dDScz+S6kuxZBtn0E1n0y4qeRf4mOp/KG8NiYTpgEQXeK/ySyUGfmvBXADYO7QVj+aloRuo7mysCPQ0HjF+pDHRGvcH9dICldNl7M3wkw/WX+5k9aYB9u2+vWJETYeX2m6aTTZlWiTfoUWUgd8d4avnm2xELnfQSwPS6w2v09j7bK8xAaF+BW//O6uSywHU6iBRTMq4lvICAzsQocBhuFAaLjyo8VsceG/a47jkEDCOutVRK3vn6eBwZqUvjym54vdARHdji0cFvhXoT1l89+PGvxNZdfPm1oN/1qMHQOf/83M+R2EzZzLhBbxd5ILjpHFn0QJpvZncKMV7mu3v7b3qVsoCH4jvvT8NnmT0WtTOHFs9upjbcvr3398tsyujiaWSNDTfyjQJqfcD4kRVC2/HBwZvWMhEXeLJPPqMQQPiBbmAeyw3MzpF9ONLVDKYHt4d+v2AygjFqDRHB44SVLtRi7Y1AqFBON8eGQ/8vOq+sYFjstmnTNyaBFKzpk9nrFec8tFc2WRbZBpKtyeo/saY+yzzrGka8 X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(376005)(82310400014)(1800799015)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2024 12:57:26.5172 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 63b20dee-aa41-4ebf-20e8-08dc5bb94520 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF0000C380.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8783 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 23.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/15/24. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=cadb90f7119a2b3e45df919f941feab9029fe92f Thanks. Xueming Li --- >From cadb90f7119a2b3e45df919f941feab9029fe92f Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Wed, 6 Mar 2024 17:20:47 +0800 Subject: [PATCH] net/hns3: enable PFC for all user priorities Cc: Xueming Li [ upstream commit aae6989df36c105b917cf69975c075dfde2e6b84 ] When user set TC number to 4 and enable PFC and ETS by dev_configure, driver only enable user priority 0-3. The packet with user priority 4-7 cannot trigger PFC frame. Fix by enabling PFC for all user priorities. By the way, the nb_tcs from user can never be 0 because of the ahead check in driver. So remove this redundant code. Fixes: 62e3ccc2b94c ("net/hns3: support flow control") Signed-off-by: Jie Hai --- drivers/net/hns3/hns3_dcb.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/net/hns3/hns3_dcb.c b/drivers/net/hns3/hns3_dcb.c index 2831d3dc62..915e4eb768 100644 --- a/drivers/net/hns3/hns3_dcb.c +++ b/drivers/net/hns3/hns3_dcb.c @@ -1499,7 +1499,6 @@ hns3_dcb_info_update(struct hns3_adapter *hns, uint8_t num_tc) static int hns3_dcb_hw_configure(struct hns3_adapter *hns) { - struct rte_eth_dcb_rx_conf *dcb_rx_conf; struct hns3_pf *pf = &hns->pf; struct hns3_hw *hw = &hns->hw; enum hns3_fc_status fc_status = hw->current_fc_status; @@ -1519,12 +1518,8 @@ hns3_dcb_hw_configure(struct hns3_adapter *hns) } if (hw->data->dev_conf.dcb_capability_en & RTE_ETH_DCB_PFC_SUPPORT) { - dcb_rx_conf = &hw->data->dev_conf.rx_adv_conf.dcb_rx_conf; - if (dcb_rx_conf->nb_tcs == 0) - hw->dcb_info.pfc_en = 1; /* tc0 only */ - else - hw->dcb_info.pfc_en = - RTE_LEN2MASK((uint8_t)dcb_rx_conf->nb_tcs, uint8_t); + hw->dcb_info.pfc_en = + RTE_LEN2MASK((uint8_t)HNS3_MAX_USER_PRIO, uint8_t); hw->dcb_info.hw_pfc_map = hns3_dcb_undrop_tc_map(hw, hw->dcb_info.pfc_en); -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-04-13 20:43:07.358308448 +0800 +++ 0077-net-hns3-enable-PFC-for-all-user-priorities.patch 2024-04-13 20:43:05.027753892 +0800 @@ -1 +1 @@ -From aae6989df36c105b917cf69975c075dfde2e6b84 Mon Sep 17 00:00:00 2001 +From cadb90f7119a2b3e45df919f941feab9029fe92f Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit aae6989df36c105b917cf69975c075dfde2e6b84 ] @@ -16 +18,0 @@ -Cc: stable@dpdk.org