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 A6891A00C5 for ; Wed, 20 Jul 2022 10:25:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A81A40697; Wed, 20 Jul 2022 10:25:42 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2061.outbound.protection.outlook.com [40.107.94.61]) by mails.dpdk.org (Postfix) with ESMTP id 797B44003C for ; Wed, 20 Jul 2022 10:25:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lTAGE+wACz2YjiJ21Ct+0cL1rQE8wBJl8XnXUCweCTWy8pTAVyOitoK6Iu6rjIsRvo6iO8tjWWBCtY0KOGvaOM+7DGXFQV3c+tj+XoFLAf9Lh0nKE6Wwmbf9pGwDPq8uz0XEcHfpDtotDtauof8ANnReHdQvuf05CIVNc8E3pYCBi48yR/gPlei3kfcMibQzGtVA129dFQSRRYXsWW4LFHPTZIzWW2OPzm14aqStgpjDATFzaCZrdojH/04/W8j8YoFqfC4B/aU5/KltQ/j7tkddrrDu8Sz4fuqsTeg8k4bLsNRqsundwMoG+FfnSVwEjgMFBZvcfCXGEVwdNc8eeQ== 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=8WJx2mVEIMtOaTxbYgt1KRLRuTmICUFAhbS60QVrE3o=; b=hQBV8I3cL0ouMWatMlxuVvYozJ8RpS4RkAcwV1taGF2FAul34JmXlf7Lc5fPunivWyZYENdGDjWBCdhEU11kNiHvf58cYuCWEvlLe/y24BaYWdsSmoiBqijX0hLE95T9231I97ii6ENwcmGXFa8W/PF8MLm95HxijWL4har06RiqqIqGs3pYDLBB4IBp1F+xT2NOo/XFu7Zu7fNmtOgPRI6QXm4iRo1a7lmdjHeY8yWnds7CzIFusjPg/vUSrxcT3niCd78Oxw7fxvH8STgjgsaXV57sJGfXh4ey1Rqe5LVUB8HBfHNJBWdjl3uvr12x0IfhfmxzWzcKAR5rdixVZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) 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=8WJx2mVEIMtOaTxbYgt1KRLRuTmICUFAhbS60QVrE3o=; b=cUMGQyxkmTiQPbNj26DLWbGSvJezaO/bByDukpy7Abvxaed3AfBViZQ3vgaKt0KLuIX0z/bba2UI6H8d1Xe9PxxHmy0TWgJH6az5ZS/3BAnnlw2UfNLiEg1mTfBVgBLayQMF9L1fR7SUHr1q/aQiikJ1HevOWCzaaKWc+Fz3vmVXsbCO5liN0NecDU+zbdiNV4kX2e79TUclR8xvwNPpa1fxlqak//O1T+bje6hs4cPnHsk0UQWFIneiWl6dbWEKMIAM9e9z02GYWmpGV4DxIQ+vAX1WtnRhhrMis3QHlA/MlCQPrt/xBZLTDnAtfebXQXK2VrR0IM03DJLKlYJIuQ== Received: from BN9P220CA0029.NAMP220.PROD.OUTLOOK.COM (2603:10b6:408:13e::34) by SA0PR12MB4479.namprd12.prod.outlook.com (2603:10b6:806:95::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.17; Wed, 20 Jul 2022 08:25:37 +0000 Received: from BN8NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13e:cafe::2a) by BN9P220CA0029.outlook.office365.com (2603:10b6:408:13e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23 via Frontend Transport; Wed, 20 Jul 2022 08:25:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) 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.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.234) by BN8NAM11FT035.mail.protection.outlook.com (10.13.177.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5458.17 via Frontend Transport; Wed, 20 Jul 2022 08:25:36 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 20 Jul 2022 08:25:35 +0000 Received: from nvidia.com (10.126.231.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.26; Wed, 20 Jul 2022 01:25:33 -0700 From: Xueming Li To: Damodharam Ammepalli CC: , Ajit Khaparde , "Somnath Kotur" , dpdk stable Subject: patch 'net/bnxt: allow Tx only or Rx only' has been queued to stable release 20.11.6 Date: Wed, 20 Jul 2022 11:21:13 +0300 Message-ID: <20220720082132.3954126-44-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220720082132.3954126-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> <20220720082132.3954126-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: 26d9aa2a-0f9a-4af8-227d-08da6a296c49 X-MS-TrafficTypeDiagnostic: SA0PR12MB4479:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?thG60pJvabcwYhV13Ig9vFGCCPf+JK33c1dpBZzVLlE9SBWsbXcA1byBlkmf?= =?us-ascii?Q?rVwDRN2bKWPmpOIqujx9s6oq8Q5HY7ECDbA/buHv5IZ8gJlgl+PU2tbj5xIF?= =?us-ascii?Q?NzazyMWqfZx0ECPXrcIDCkriM9kPqk/MzYjQheOx8BslldTsHcF3O4xHHvLy?= =?us-ascii?Q?oTEq6iibcZ2mkt+VZN37s0+eRzxZkWMpay+kriMnBJsv9lHQjPCwPQ1zHi9y?= =?us-ascii?Q?YmZ2IoSRmDxIo0u6SSJMCTJ/bb6d897fuTBigkVv4x29zRWgZ5bU+woM+Mti?= =?us-ascii?Q?Cs5WB4lePUOsFYmKfmh7Ht3gb9oXE30NSjxnnhqIPVPBAWvvvn4Jf3UM3pFD?= =?us-ascii?Q?gzxgQNUvR7IuTItBuUgc90hYSCwe29i+8oYmjLP+7vl8KsMsXTkVTU2dVIcA?= =?us-ascii?Q?JSpLXvk8g0zv93dR0cX3+QDu7YYz942iesxupV5EniAHZb0EvDaj2uFkWFcp?= =?us-ascii?Q?gzcF+41rSa2g3Q9asWK3kVikXa+HrBbSaNEaGZWo/ca7tfO5mT2n0RFSj0P/?= =?us-ascii?Q?XlWd8XUy0P1DT9KicaTbsDp0yDz+tBKXyCSa60N6N/jbCiWilYuy0ZwbqzL7?= =?us-ascii?Q?y/4t3xwkUltaVb4VRwSlweAz2WZmYr8y4g5r5rPtasut+fbsp+z2D/WmtXPa?= =?us-ascii?Q?db83o+SQiOYsAdkde4A5hjdDMuYias+wTjDnCVDhI2CM6pIItG1F3c7vhJ+U?= =?us-ascii?Q?kc7jqc0fJKLDucEJs7O5rAnen8augsWbhYUfZ7fyd6w6DnvMrFoLSqdmDAKK?= =?us-ascii?Q?01slWcCPikc/WSdOzT8tzgKxUJoELELPpcmhIWmcverHrQvwmrAnXHWGT+As?= =?us-ascii?Q?ah4z9vZ1GxYGuUpqJJW7j3RQGEdGkqsitCWcU4aQLGBoXigvixIMKtzMwXc/?= =?us-ascii?Q?/S82Re8WziZypQ/y1FIKW/Rz1f99p5TRfuRSQyDfax1iAmuEzVbM9Au+Q2n1?= =?us-ascii?Q?iURPKh1b7ClanxpPJa/fLQ=3D=3D?= X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(136003)(376002)(39860400002)(36840700001)(46966006)(40470700004)(40460700003)(36860700001)(86362001)(81166007)(356005)(82310400005)(19627235002)(82740400003)(316002)(478600001)(5660300002)(8936002)(40480700001)(70206006)(966005)(6916009)(54906003)(186003)(36756003)(70586007)(8676002)(336012)(426003)(2616005)(47076005)(55016003)(16526019)(4326008)(1076003)(7696005)(83380400001)(6666004)(41300700001)(2906002)(53546011)(6286002)(26005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 08:25:36.7563 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26d9aa2a-0f9a-4af8-227d-08da6a296c49 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.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT035.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4479 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 07/22/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/3918d229defccbb3cfc0e77b37cd2b6f148d50ac Thanks. Xueming Li --- >From 3918d229defccbb3cfc0e77b37cd2b6f148d50ac Mon Sep 17 00:00:00 2001 From: Damodharam Ammepalli Date: Wed, 15 Jun 2022 20:26:59 +0530 Subject: [PATCH] net/bnxt: allow Tx only or Rx only Cc: Xueming Li [ upstream commit 8b7e58a791ef7747266b77ed433f5d03a6abaad7 ] Currently, we fail the init/probe of PMD if eth_dev->data->nb_tx_queues or eth_dev->data->nb_rx_queues is 0. We are removing this check. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Signed-off-by: Damodharam Ammepalli Reviewed-by: Ajit Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_ethdev.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 288baf497c..57db57c2a8 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -734,7 +734,7 @@ static int bnxt_alloc_prev_ring_stats(struct bnxt *bp) sizeof(struct bnxt_ring_stats) * bp->tx_cp_nr_rings, 0); - if (bp->prev_tx_ring_stats == NULL) + if (bp->tx_cp_nr_rings > 0 && bp->prev_tx_ring_stats == NULL) goto error; return 0; @@ -1525,11 +1525,6 @@ int bnxt_dev_start_op(struct rte_eth_dev *eth_dev) int vlan_mask = 0; int rc, retry_cnt = BNXT_IF_CHANGE_RETRY_COUNT; - if (!eth_dev->data->nb_tx_queues || !eth_dev->data->nb_rx_queues) { - PMD_DRV_LOG(ERR, "Queues are not configured yet!\n"); - return -EINVAL; - } - if (bp->rx_cp_nr_rings > RTE_ETHDEV_QUEUE_STAT_CNTRS) PMD_DRV_LOG(ERR, "RxQ cnt %d > RTE_ETHDEV_QUEUE_STAT_CNTRS %d\n", -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-07-20 15:01:00.877394985 +0800 +++ 0044-net-bnxt-allow-Tx-only-or-Rx-only.patch 2022-07-20 15:00:58.761000415 +0800 @@ -1 +1 @@ -From 8b7e58a791ef7747266b77ed433f5d03a6abaad7 Mon Sep 17 00:00:00 2001 +From 3918d229defccbb3cfc0e77b37cd2b6f148d50ac Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 8b7e58a791ef7747266b77ed433f5d03a6abaad7 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 34f21496a4..8181e1f37a 100644 +index 288baf497c..57db57c2a8 100644 @@ -23 +25 @@ -@@ -723,7 +723,7 @@ static int bnxt_alloc_prev_ring_stats(struct bnxt *bp) +@@ -734,7 +734,7 @@ static int bnxt_alloc_prev_ring_stats(struct bnxt *bp) @@ -32 +34 @@ -@@ -1567,11 +1567,6 @@ int bnxt_dev_start_op(struct rte_eth_dev *eth_dev) +@@ -1525,11 +1525,6 @@ int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)