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 B112B431D5 for ; Sun, 22 Oct 2023 16:34:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA9E54161A; Sun, 22 Oct 2023 16:34:23 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2077.outbound.protection.outlook.com [40.107.92.77]) by mails.dpdk.org (Postfix) with ESMTP id 0CA07415D7 for ; Sun, 22 Oct 2023 16:34:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LHbX2vwNxYycUD7PoVbQZxM2Z0DiYG7Q+ZYUKu0LURqkirDOI5R9CtuW0Nv9maD1HIMYYLJ8/6mRJUlumdQOeInxEKZS8YVDyx3NzetJ7HPt/F7/k0dJuORGZ+LjoRh1/IByXn8AztMUaVQUkpArL3SbPOB4Wcdg6Dk7fx5AFZZFUSjMotBZdeaz0vcO7g9HfAtNYdeUfkkEL//VQ32YP1U8Izsnn/NFKwMeJiChTam983P2qbBUUufQJgMq7vvjZCHGbDTYPrI7GxqPqH07GL5DcVlIb9QfZnHl9EelS85qmfGqNg1n4jobT+Iv8uueus4uTSOLsVACD77gM0EzSg== 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=17uNp3mSoiaT/N+CVRc+GasjIcC4K+O7dyBdwY1SnFk=; b=VIJKao/jQcZ7PhepR2V56hD4zeMnLtV3mxZ1p/wwgju1SMff1d6bCDMGndU7I2Og8yPjZ/GboxicwUwxh8FsYsA6dX+X4XGEgpH4cu/bin9Nu79h6MEsuEoX5+6U9t/WySfSdQfE4Cab4uXNC5qAjP5/jCoUTnQ0x5LzcX79ueGnVS6NCy1WkIzwujoAdgtoG3jWxA3slp0QLuEQKGgy13VI1rsYKDc9TxOjsbgAsavObRkFkS/Qpq3iGa+e2WyXbYil3N5+9kgP/qVFToKM3qqpouh8lE1/QQ5WgK7TeNs469wOVZLfpEdxy6lf0LeGWPLS/jm6KmcLhSBSnvKRNg== 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=17uNp3mSoiaT/N+CVRc+GasjIcC4K+O7dyBdwY1SnFk=; b=QJwamctyenhTNFEN3BRdRXU6Z3TlUw8V0awzvJcIoCFfk4PJLRnSAN+gVsfsSQyr2hv0C7sDlKfz/y6aALYMZSx12IuJIr0xG8olHEWR2zG1WgTobYXmzxlYCCCG6v7n26vQ76HjAzdL4ivAZr1uHo+mwVBO9IAcswPHIWah+KlfaxrylfKL9w3e7R6E2Ue6duhScir69sARYUGutWqgdQs3+5oe8RfBwA4NggdnQMRrkEhHrUDhq10N86w141ec854Esu2N0wA6JFpqIPuwozou+brLAZbXRyM7lRRHki3y/RE/ahLGWJMzuBIh4QMaibC80Akeef4+9dcypvWYhw== Received: from BL1PR13CA0012.namprd13.prod.outlook.com (2603:10b6:208:256::17) by PH8PR12MB6865.namprd12.prod.outlook.com (2603:10b6:510:1c8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23; Sun, 22 Oct 2023 14:34:19 +0000 Received: from BL02EPF0001A100.namprd03.prod.outlook.com (2603:10b6:208:256:cafe::9b) by BL1PR13CA0012.outlook.office365.com (2603:10b6:208:256::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.15 via Frontend Transport; Sun, 22 Oct 2023 14:34:19 +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 BL02EPF0001A100.mail.protection.outlook.com (10.167.242.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.15 via Frontend Transport; Sun, 22 Oct 2023 14:34:18 +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.41; Sun, 22 Oct 2023 07:34:05 -0700 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.41; Sun, 22 Oct 2023 07:34:03 -0700 From: Xueming Li To: Jie Hai CC: Ferruh Yigit , dpdk stable Subject: patch 'net/octeontx: fix Rx and Tx queue state' has been queued to stable release 22.11.4 Date: Sun, 22 Oct 2023 22:22:38 +0800 Message-ID: <20231022142250.10324-130-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231022142250.10324-1-xuemingl@nvidia.com> References: <20231022142250.10324-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: 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: BL02EPF0001A100:EE_|PH8PR12MB6865:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c9edbb2-d06a-47b8-a445-08dbd30bf97c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qjR5aqVYkavHZr7J0Ye9Ohfhc7RWoqFsuVFREWrjCr79SqADe/qJkXQ1iDboU3XUxqhCXiCRdDyFvaSfy3KRTxm+j4cN0EBuoeMG93ou/frWPaZ6wOoul+ZRorwvjSQtkM/IOjpItPDys3F+kIr1ZrG4OznwyVFnO4U1xlfTq4d1oXrrFmEpS1xrN23gw6D/T9ORZBt/dczk8PURDvOp3aCJ5J1tgW4boVYRMBXexOhC4kzkxLEQcUpLqQlTZDsOmOt9Z7lF6IJdt3yOPpHSK6rPCFsIi3cVkrjsrp0DYZtiltVUwF0qFSMM/qEzkXk5KslP4VmUCQwNPQOk7bRnlgctuGkvBLPbynPbvjbiOMQf+YhpWqoZeEYG89YkIogc/jlDAD+76fegerOwTdVUdbqOj5mHcrMiBH7zYoggYl02VmaE4k/qKxzYxYRTz0Hymtb1Tn4LTKYCt/H29oVgHJPJ//aU8qnmsUu1rzR5qLEP+5EF63ShrILeBsAxubJ5WGFL0Igpsc6WfbowBTjcqkOi9A3/A9/d0v2SCfFidJ/icpCEiy1Y1zkSwkQHfpeUfnWoiYlr6AgiVxOQ2GpTh4Bih0Kn5SKKycMocCB77ZWxvFNwbDox0F2NZcR7OfMUCP8jzr4DEc3Dy235KkVczABKkYss8t0to50NRaMExyesAes8J38eIm4V6MJmKQWdRfbtfVcXLwTL2WHVnVjGzqSZwba6MHmgHx6UVVVg076lpcJMJPC2CBXC8LFuW4lG 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:(13230031)(4636009)(346002)(39850400004)(376002)(136003)(396003)(230922051799003)(186009)(64100799003)(451199024)(1800799009)(82310400011)(36840700001)(46966006)(6916009)(36756003)(55016003)(40480700001)(70586007)(70206006)(54906003)(2616005)(6286002)(82740400003)(26005)(356005)(7636003)(86362001)(1076003)(36860700001)(16526019)(6666004)(7696005)(336012)(426003)(53546011)(19627235002)(2906002)(966005)(478600001)(316002)(5660300002)(41300700001)(47076005)(4001150100001)(4326008)(8676002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2023 14:34:18.4822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0c9edbb2-d06a-47b8-a445-08dbd30bf97c 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: BL02EPF0001A100.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6865 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.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/15/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=63a8198b2202f820a863e8535c44be4b1730944e Thanks. Xueming Li --- >From 63a8198b2202f820a863e8535c44be4b1730944e Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Fri, 8 Sep 2023 19:28:52 +0800 Subject: [PATCH] net/octeontx: fix Rx and Tx queue state Cc: Xueming Li [ upstream commit 84a998cb80a5bc877419aae8c7ef7c41e12899d6 ] The DPDK framework reports the queue state, which is stored in dev->data->tx_queue_state and dev->data->rx_queue_state. The state is maintained by the driver. Users may determine whether a queue participates in packet forwarding based on the state. Therefore, the driver needs to modify the queue state in time according to the actual situation. Fixes: 9ad9ff476cac ("ethdev: add queue state in queried queue information") Signed-off-by: Jie Hai Acked-by: Ferruh Yigit --- drivers/net/octeontx/octeontx_ethdev.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index d52a3e73d5..2b97f0163e 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -732,6 +732,11 @@ octeontx_dev_start(struct rte_eth_dev *dev) } /* Success */ + for (i = 0; i < dev->data->nb_rx_queues; i++) + dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED; + for (i = 0; i < dev->data->nb_tx_queues; i++) + dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED; + return ret; pki_port_stop_error: @@ -746,6 +751,7 @@ static int octeontx_dev_stop(struct rte_eth_dev *dev) { struct octeontx_nic *nic = octeontx_pmd_priv(dev); + uint16_t i; int ret; PMD_INIT_FUNC_TRACE(); @@ -772,6 +778,11 @@ octeontx_dev_stop(struct rte_eth_dev *dev) return ret; } + for (i = 0; i < dev->data->nb_rx_queues; i++) + dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; + for (i = 0; i < dev->data->nb_tx_queues; i++) + dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; + return 0; } -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-10-22 22:17:38.992607900 +0800 +++ 0129-net-octeontx-fix-Rx-and-Tx-queue-state.patch 2023-10-22 22:17:34.416723700 +0800 @@ -1 +1 @@ -From 84a998cb80a5bc877419aae8c7ef7c41e12899d6 Mon Sep 17 00:00:00 2001 +From 63a8198b2202f820a863e8535c44be4b1730944e Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 84a998cb80a5bc877419aae8c7ef7c41e12899d6 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index a6ae51a42c..2a8378a33e 100644 +index d52a3e73d5..2b97f0163e 100644