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 85E52431D5 for ; Sun, 22 Oct 2023 16:34:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F6BC4113C; Sun, 22 Oct 2023 16:34:15 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2070.outbound.protection.outlook.com [40.107.101.70]) by mails.dpdk.org (Postfix) with ESMTP id 56D134113C for ; Sun, 22 Oct 2023 16:34:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gEJ3jU/I3w43vx4UmITqB2Tah1e9q3dFSEF3ePn2ux2lXd5BVIPfWtYKMKOcWMGNy3OR7gaLGQE8tHj8icYluvwhRf9OzQldJ9goevPDpeTq2bc9iIMxC9BQ0IjRwM0G6LpQZL+1P+LPddyVsp4YEHXtJoyvc7imCA15f4HnF7LM6O3NCUkcm7F7ws/ppTzF8T5lRuAwjLguvFcCfJT5xKm8Gq8fPOMfhMuaH4WGK+rjGP0R1MAD1GLu64VaWm+PEtI14nn6mw9bZ/JoSg8Xh8J/qgntjfh2NYXDkud0P8FBMS0z8mw+hJ+GPDGA0KhKlYhk8STWu75GuiyfeMco2w== 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=yEgyBf8iHfekDCF6GC4IvaoeJHdmb9Ca4H3HUxxTgXI=; b=lLVgbX0E8c5QXbK/ZIaDp6855ZObEyGTtCY3CfO1O8qugkWwNeeso2nLPAv7ae6aYQAThXdWAq4C0iBz7D8vDW8jYghQ4kFbb/8eiXNBiuLIgFkz65AZDd4lo8T0IFNWMNCo8olrUuKd+CKT9qhtaeJhXuWD6kOWzZYYgPZrX1eIIBsKRdgTI+dihOBDdsjxsw+14JGIXNhppde0Cc9lXdxBkuqkRkQiBw5VtT9jlU6HgIlqaUfBxwOUPLV3WwUkRLpcoTVS1dfjv6FINhv5Jqq3wLJ6+PhZQetqMQwGskznhj0D/t1EaNSToLpfqG34GLAbA+Gb3SYBXO9cbFczbQ== 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=yEgyBf8iHfekDCF6GC4IvaoeJHdmb9Ca4H3HUxxTgXI=; b=SSBpx2kN5I2OSBcJ0nMoPAZkfkt8668osv/J8IWptjMDlg3KikfCleIhtho/bjWJ2ZnwesYP35Fr7xdNpcJ7OY+mnKF3O6qTijNdFZ8i9ZbGdvq2w/FCIbDIPy6lqoYlAddPLK07dpi5MRwL0/CAEV2Orlh+YlSXJWsIizRnvh7gLaB//wzb5XPGIbeoy6nLJxYVo8i8UTLSjIbeH1m7ocVSUB+dLqEXpyl8/dN082g3xmZ4ffWADEfyTJHObgvnyUKpovvFv4E1jMGMeD5ojc6mpcddjDnBTGchtdifrb02vbpmsVrcBpb/CdS1v2md42mqUmUUe0NQI4uQDqXwKA== Received: from MN2PR04CA0022.namprd04.prod.outlook.com (2603:10b6:208:d4::35) by PH0PR12MB5645.namprd12.prod.outlook.com (2603:10b6:510:140::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Sun, 22 Oct 2023 14:34:12 +0000 Received: from BL02EPF0001A0F9.namprd03.prod.outlook.com (2603:10b6:208:d4:cafe::69) by MN2PR04CA0022.outlook.office365.com (2603:10b6:208:d4::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.31 via Frontend Transport; Sun, 22 Oct 2023 14:34:11 +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 BL02EPF0001A0F9.mail.protection.outlook.com (10.167.242.100) 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:11 +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:01 -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:00 -0700 From: Xueming Li To: Jie Hai CC: Ferruh Yigit , dpdk stable Subject: patch 'net/null: fix Rx and Tx queue state' has been queued to stable release 22.11.4 Date: Sun, 22 Oct 2023 22:22:36 +0800 Message-ID: <20231022142250.10324-128-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: BL02EPF0001A0F9:EE_|PH0PR12MB5645:EE_ X-MS-Office365-Filtering-Correlation-Id: 08ca17aa-78d3-4cdd-c676-08dbd30bf522 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Qaq3kdA6/TTdto/LJ5NAAQsbUkmiyPHpMPjiLahwafYED2I83jDUR75CkFlMJ5P0z+hZqD85GumBr95n2hIaGqt+OqBIhwfkLbR3mDrZWHFhkeM6U/fSg1IYQFu1Mmylqj/JFpOJ+g65RHteQ5AGHRCo1MnEQ0FQ2RG2fsSSORkugqeVMS9dFFRYOheQDa885OLcpA/MD9ZC9/iivcnKMN2TB7AaQossmvonFHVjQOqbx8HvWMMU9FGm/nceYKgHf3PzvlQjjysKllnURmDjB9C1zwYeIJ8SCef4dTAPuRErJ//aEwbnt/gwXgM8V2njouuaaLv9C3muzlfVNk0GNRM6uVpoVn0/4Lstw3MpmsaknaGW03F2CJJ6WxmYGEKKuZKe5R4tx/2YJO01raFLbuuEjMbN+IdEsEN6odc/MooIoZkITW8Lnze5YcG2oNVZd+0cixQCs/PKk6sac7+CcA73ma3AYuMMvRUiP9m8ngNbRMIF14GQUrwze1GrTDlNGvXj9Dk5owSXfWwnGAZPJpuSAHUXaVaJv+y9odUhtBm5c6pCaWdFWOfv4WhFtWwlRGtbVDQd1gsPAXKs0L033qhenlpQAqXFN494Eo64l0IsfjeyEXF/tSDpaL45h/1i8S2pft/7Yuk8fQOceLtDclV+ZGMjqOGbeIwUrIyXzoPf0d94pWVQBE9GDh2P6FCLTclkxOd4GGsf2kZLis2ZtAXB3f/Gv/0V7dLYRj3CSYqBOMV+6ISTH3W2NFrG4tP/B2Yut0WybQ+n2j2ZFbx5w== 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)(396003)(136003)(39850400004)(376002)(230922051799003)(186009)(64100799003)(451199024)(1800799009)(82310400011)(36840700001)(40470700004)(46966006)(4326008)(40460700003)(55016003)(86362001)(47076005)(41300700001)(4001150100001)(2906002)(336012)(7696005)(1076003)(356005)(82740400003)(426003)(6286002)(16526019)(40480700001)(7636003)(2616005)(36860700001)(53546011)(5660300002)(26005)(19627235002)(966005)(6666004)(36756003)(8936002)(54906003)(316002)(70586007)(478600001)(70206006)(6916009)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2023 14:34:11.1823 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08ca17aa-78d3-4cdd-c676-08dbd30bf522 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: BL02EPF0001A0F9.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5645 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=eb53c49bad7bb54c36644bd2773f2fdd841585bc Thanks. Xueming Li --- >From eb53c49bad7bb54c36644bd2773f2fdd841585bc Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Fri, 8 Sep 2023 19:28:50 +0800 Subject: [PATCH] net/null: fix Rx and Tx queue state Cc: Xueming Li [ upstream commit 9b4b368ef7b9a00978e80fb2ee0beadde10a02de ] 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/null/rte_eth_null.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index 47d9554ec5..1fbe572bd1 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -188,21 +188,36 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused) static int eth_dev_start(struct rte_eth_dev *dev) { + uint16_t i; + if (dev == NULL) return -EINVAL; dev->data->dev_link.link_status = RTE_ETH_LINK_UP; + + 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 0; } static int eth_dev_stop(struct rte_eth_dev *dev) { + uint16_t i; + if (dev == NULL) return 0; dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN; + 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.925580900 +0800 +++ 0127-net-null-fix-Rx-and-Tx-queue-state.patch 2023-10-22 22:17:34.416723700 +0800 @@ -1 +1 @@ -From 9b4b368ef7b9a00978e80fb2ee0beadde10a02de Mon Sep 17 00:00:00 2001 +From eb53c49bad7bb54c36644bd2773f2fdd841585bc Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 9b4b368ef7b9a00978e80fb2ee0beadde10a02de ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index 31081af797..d742bc415c 100644 +index 47d9554ec5..1fbe572bd1 100644 @@ -26 +28 @@ -@@ -192,21 +192,36 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused) +@@ -188,21 +188,36 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused)