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 A7119A0545 for ; Tue, 21 Jun 2022 10:07:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FF3942847; Tue, 21 Jun 2022 10:07:18 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2041.outbound.protection.outlook.com [40.107.100.41]) by mails.dpdk.org (Postfix) with ESMTP id B7EE342836 for ; Tue, 21 Jun 2022 10:07:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ECeHEk070qJe5WRrNfxSv6PS5Ii2oYYmTnrm+C+kFmcgSVPJxdRQh/P6FQmx0pXYU+Bzi0I/hUw3yJS3unXin1zr9n5LEsnUGsW0tmdOB0BOSiLNNQEHv42iEmT5inr622m9Vkrm9R/A76ZVKlaWcXC6X2PB3cau74aHcEh50OCDRTZK7orUZIQ2dHTEI/O1iARpar8FGT60Ha1bnPqgg4xRQ9zAbyS35H/WMdEpdMcYmVdpL8x977XMGwVt1eUbvyIst6JGmVge1oXhDcAkoZXp+haKeAshwWd5rK4RqDikXs6PUjzfgCUKKL8B9EXErpMXhh/kSiOQdxCcklXh5Q== 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=vCnPA3bFS7F25RcQtJAJ/14xS5nnL0M+FEf0ekGn2HE=; b=G7/BHrACCNQ+sqD5QMIVu6H57EF8R3cofdk3aM5jbtJBpkXxyeleRLW6GjMWx8sMNp7fyt8G8na1cRqSRm0kvmGyQ8WPHVJr1Ypko2xiPRP2HxfeJG4blY8qXOBVVq6XXb0yMnyYZqzCYR1Pl8pEU4XuDhz2CkmcxwG6A9eO5r8KIStqEKTXPwk5w3ENW2z9zHn+cOmPW+DKIkt2pVgdtxuZzP5CP65qTotLbsxkxa3DMR7X/iT5rKu+GhDTbxcyqfmWBERx/6BpXRUvBgQ40FkEBYzId/QEhmazSPUNbVyVHCCETsvuhwhcqwcLUvxS9M8nW/XetQ9oTQusk23f3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=broadcom.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=vCnPA3bFS7F25RcQtJAJ/14xS5nnL0M+FEf0ekGn2HE=; b=eZ2/AnpLFkYgZ5X+a79mG0VKSOMvpk8GDiQcjQZrgw+BeWu3yiwqbnSXQZ6mWM5RmOTEAogx8ZDQ/1KDNTtQNsL2MUvKxUTFNB/5ohS9UfzvKUj1iQgfgOCPEcNx0+3MWWuAd3bAii4lWMqNW7usWHsWdDZELdjzc5QGz7vPSRrNrClvF7WDls7kWBUMf8u1sw88pTD1pThrrCn1kgneMCsqm4E4Qmdet/SU+/UGJQkAifzGPU7R5injOT7fVb6CC74LixA8iNyGDlX4gt79R7c4HrBHLweeJtqrD7knml69Q59gi4MyNw78VZJmk9zU0jFMqb7dQuuQAyBTaMXSiA== Received: from DS7PR05CA0053.namprd05.prod.outlook.com (2603:10b6:8:2f::34) by BN6PR1201MB0036.namprd12.prod.outlook.com (2603:10b6:405:4e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Tue, 21 Jun 2022 08:07:16 +0000 Received: from DM6NAM11FT055.eop-nam11.prod.protection.outlook.com (2603:10b6:8:2f::4) by DS7PR05CA0053.outlook.office365.com (2603:10b6:8:2f::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.9 via Frontend Transport; Tue, 21 Jun 2022 08:07:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by DM6NAM11FT055.mail.protection.outlook.com (10.13.173.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5353.14 via Frontend Transport; Tue, 21 Jun 2022 08:07:15 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 21 Jun 2022 08:07:15 +0000 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.986.22; Tue, 21 Jun 2022 01:07:13 -0700 From: Xueming Li To: Kalesh AP CC: Ajit Khaparde , Somnath Kotur , dpdk stable Subject: patch 'net/bnxt: avoid unnecessary endianness conversion' has been queued to stable release 20.11.6 Date: Tue, 21 Jun 2022 11:01:53 +0300 Message-ID: <20220621080301.2315720-48-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220621080301.2315720-1-xuemingl@nvidia.com> References: <20220621080301.2315720-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: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d1d9f2b2-8844-479e-ee5a-08da535d0e1c X-MS-TrafficTypeDiagnostic: BN6PR1201MB0036:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lGRC7/b7qOZxig4eyuH71AohiW6SDn3HlOT7F7OYnuVtS/nHb7X5wH2X5Ae4nHdiFagC5Aq3HoChHXD0SLyggtHBhzP48ou3GaVvrq2JvmXg+eJyyquCG7ZEECAwnbYf1IegzkPfqyLgoeUEutAfUsQR/CRpw3cQBLOxmC/RM1uISqnZOog1G8dAipE8nD3qPC2ExEE5S+7VnzeLb5VcRHile6QOaCt2V6xsMEJWIfmIQdiJNVSb1sbehExgUTogE13vuunwgx+Q9/lRIe2eKX6o+m0hXOk5GrtEdZyG2ONtXsl4HVJE52yvFlyLQ9I6gteQDxBFI5qUk3GDxOsJK7hl6zJDwYOT+hHJlLIGYgTuV6Fx70vDdSMcxcFf4J3YcHcz1Ifja7o+erV8V9t8S/y+am8HcH3AjMImMW+vAR8feyfe0afSAzzuDBf5ID2p4J+0vIdX9yU5TgSNTlqz8ay2DT5/kwQ0WfOhp2CMD97D9V0X/7aWI2K2Xnw99DC9Y0SLxOfw7E8t05V4P7Ubg8B+crmEABlarpg72qf0JKM6Ju21s5wAauOzSUH3sNKLCbJQMOAj6wtWpIHumjSzI3rV6+AIsiE8KKa+5vK2pwg6rvW8RiZBE/XQKVxLCF1fupRcQyqM71hF5YlWiGE0iprIMCapWsJ2YAvMPMze4Vjtew2m9CCVw3mvpEVc1i+hGr2cXfaPvceOIiHzuyDtVB+6RbB+rdHPh8eDoKsotqENcuBX45YcwxtDR10TVbugrmQzDcIzVs0TeV5njIkftVtmL1seZx+WGB8c0dDAsUmV9qZdMAckFeg9zZb5F/0qYYnl1P9+W9DVOmfbfEZSgtoVaKpDHtI1t//q+cfPW/A= X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(136003)(346002)(39860400002)(376002)(396003)(46966006)(36840700001)(40470700004)(6286002)(2616005)(41300700001)(53546011)(8936002)(2906002)(7696005)(26005)(5660300002)(6666004)(82310400005)(1076003)(966005)(186003)(36860700001)(40460700003)(36756003)(336012)(55016003)(70206006)(6916009)(356005)(86362001)(16526019)(83380400001)(47076005)(81166007)(426003)(82740400003)(70586007)(8676002)(4326008)(54906003)(316002)(478600001)(40480700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2022 08:07:15.8937 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1d9f2b2-8844-479e-ee5a-08da535d0e1c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT055.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0036 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 20.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/23/22. 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/adb37db48f7cec1b4bd060437888a148d3102055 Thanks. Xueming Li --- >From adb37db48f7cec1b4bd060437888a148d3102055 Mon Sep 17 00:00:00 2001 From: Kalesh AP Date: Wed, 27 Apr 2022 20:28:15 +0530 Subject: [PATCH] net/bnxt: avoid unnecessary endianness conversion Cc: Xueming Li [ upstream commit 8599820580c56477670b9f7260a2a1627a1d54dc ] The "active_fec_signal_mode" in HWRM_PORT_PHY_QCFG response is uint8_t. So no need of endianness conversion while parsing response. Also, signal_mode is the first 4bits of "active_fec_signal_mode". Fixes: c23f9ded0391 ("net/bnxt: support 200G PAM4 link") Signed-off-by: Kalesh AP Reviewed-by: Ajit Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_hwrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 9f61d8d037..4ddf3c0f6d 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -1373,7 +1373,7 @@ static int bnxt_hwrm_port_phy_qcfg(struct bnxt *bp, link_info->phy_ver[1] = resp->phy_min; link_info->phy_ver[2] = resp->phy_bld; link_info->link_signal_mode = - rte_le_to_cpu_16(resp->active_fec_signal_mode); + resp->active_fec_signal_mode & HWRM_PORT_PHY_QCFG_OUTPUT_SIGNAL_MODE_MASK; link_info->force_pam4_link_speed = rte_le_to_cpu_16(resp->force_pam4_link_speed); link_info->support_pam4_speeds = -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-06-21 15:37:51.455334971 +0800 +++ 0047-net-bnxt-avoid-unnecessary-endianness-conversion.patch 2022-06-21 15:37:49.057784656 +0800 @@ -1 +1 @@ -From 8599820580c56477670b9f7260a2a1627a1d54dc Mon Sep 17 00:00:00 2001 +From adb37db48f7cec1b4bd060437888a148d3102055 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 8599820580c56477670b9f7260a2a1627a1d54dc ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 1b94e3c146..82d1a6205b 100644 +index 9f61d8d037..4ddf3c0f6d 100644 @@ -24 +26 @@ -@@ -1511,7 +1511,7 @@ static int bnxt_hwrm_port_phy_qcfg(struct bnxt *bp, +@@ -1373,7 +1373,7 @@ static int bnxt_hwrm_port_phy_qcfg(struct bnxt *bp,