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 B3824431D5 for ; Sun, 22 Oct 2023 16:33:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACCA9410D5; Sun, 22 Oct 2023 16:33:24 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2075.outbound.protection.outlook.com [40.107.102.75]) by mails.dpdk.org (Postfix) with ESMTP id 371C6402DA for ; Sun, 22 Oct 2023 16:33:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MoYpK2vjwmeTUx7eYFXien1AQDtl7Em5xpZtPqyYt/RewbIKKyhCcYdD9M2jK7ltC6baFDG0XQCyrxYOY5O2V5HlZsADvLHXxAazykxG3Eav9l7WVE64MEeu+dhN2kCuVbT51Gi6xAdsKjokRuQ1trDAn7jq28BZufjzgSKIDlrKHM44TU8Ha0My4VHqzN03/l9P29hnSCskHMDHeZLTXhNrWiCRJEclZJUPMah7WbXO7TRDT5eIKP6jG4/6XQc60lzIMHw5Zy/EAlSrTmdXQGKvpPpaY0f7oB8YZ0YHsu+voojrvdDQImw1qyyRpXc/7QaVwClDs4yDCoIxHAprXg== 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=zqPu970r57PkeMh8DKSrc36WM/B/Q8GiFjZ28AK+7og=; b=iQY9flM5Rj/udM9z1gQ8DxVwPuntljwMXK+AYoMAu8KQV0fnWRAs/AycfSfd8FitKII3k4dRkoP9kzI8qW60dizUPdJeNsITIEtzY0bImlQmkahUid7UQWmcYRjSEIz2d02yHRghcZspyBgW15Ei+nqRWhLZJ279eung3jT44x0j5+i6xzy0Wygg+cHBvsjz2gb5SgVqpJgMZYk+aTNVZ0BJGLoi5aARCctgwPSldLA+56yxzWLJpf6iqu1RYwrUzMTuIZmAjM5xA8FTMHvz2YuDzdTzAHMWmIP4G+Vyvh/Nyd9gutEXE5ubR/mC0eDi5dcUAabCL2Sp8kVsmbtzfw== 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=zqPu970r57PkeMh8DKSrc36WM/B/Q8GiFjZ28AK+7og=; b=acCMS1SS8wLX1ql/m5bqDm2uEOmygYQ4wPTNbjWrlXpEH02a/q5Sht51mU/G8M1Zlx2xdB4RDMi+WuwEYDLYf2ESqiMG818hwcY/GjDoqqBEmF01TRuT4705BtGisORWKH9RPnqUjH3EO42KdktUyeJ4VYhLS1qRIpiwJmyVjJKf3KqRxoffKgIqkqmu5zwFqA0n9h+S989ZGlHBuWKuQeFCR1obKtvb4bQaNyMZJYZ0lPEJtm5wsJaLQhRh9vGDXsAHD3YxF7OE9kkSemlyz8MBbvHbvXfsH1h7NOENpD0yzH/fak6Lhwl3RJTkshx4pwUIXz1PlTqMjPDbx9C5BQ== Received: from BLAPR03CA0094.namprd03.prod.outlook.com (2603:10b6:208:32a::9) by MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.29; Sun, 22 Oct 2023 14:33:21 +0000 Received: from BL02EPF0001A0FD.namprd03.prod.outlook.com (2603:10b6:208:32a:cafe::8) by BLAPR03CA0094.outlook.office365.com (2603:10b6:208:32a::9) 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:33:21 +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 BL02EPF0001A0FD.mail.protection.outlook.com (10.167.242.104) 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:33:21 +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:33:11 -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:33:09 -0700 From: Xueming Li To: Jie Hai CC: Ferruh Yigit , dpdk stable Subject: patch 'net/enic: fix Rx and Tx queue state' has been queued to stable release 22.11.4 Date: Sun, 22 Oct 2023 22:22:27 +0800 Message-ID: <20231022142250.10324-119-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: BL02EPF0001A0FD:EE_|MW3PR12MB4553:EE_ X-MS-Office365-Filtering-Correlation-Id: 60f4c485-b431-413e-6533-08dbd30bd749 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tqyr/Gi3X4egomPFbx5LoP5ZAk51eigos7355BIbiLWSyD3N9wacpIn49digfM+OC87II3wwOp3Kh2nJPmAlHsFJpiJr5BOgOYMGc5+0O5DkISj2pO/eAJazsZC2jvSThQWpLpKvllirbOGwV53c2HjVQrKY5qdDpfSGm/9Vnck35U9kGqmMiFNbRDrvbKQNNCTdne+MamXweUdC03bYYmgcUf0KaM1/igOLk6lfjoX9ItBSzSppBSYY728ZzxW/aVFAB1U5xbKhX7KHafAhD0DNpA380Qa3LJqlgEsVU4Mgq0pgGxQmvfmwNWRoOFRHKLX+dGDytePTgz6Pd4P9O+0T4BLnz7Sndimvn+sv71Z+6x/XcPKCJGowkp3Vw8BUnudTXyvvuvgfpG91/Wd/cFQr+37/TpvAvGRQc9EkoYwF2rG8l38CKSGnmQxVC+jHaVEwD9e8SQnlkrB27tQVC0B9XKi4migH1tghZccF5O3ds+lIcEyvoNwjwcTUGYiKmfcvZYsGyMYBzOZOZ9bJO5sXu9GNI91FKIrLE8XGLxI1EX6KfrrRZeLkeXETg3QF92NZU0d14FfL1m0tdxRaEgaiB7EZgyFPtPtaUKw6c3XYZm4pO6Jz2MWNFu3+7uIfYWxddARYgrG4nABHX996jy4z0qCVwn/lpr9hwnYDweksUdMNsz7UPaEgj+K8Rd07RYFgZY3eUtpo2VOI0XU+kMBsRlk3CzMDopGxGdy0H4A1UdF/VrT1FQHxBLf5OTqOp2xN/OFfksvrynTZEIK84G28/T7boCXF4a2J74c6U+M= 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)(376002)(346002)(39860400002)(396003)(136003)(230922051799003)(186009)(451199024)(82310400011)(1800799009)(64100799003)(46966006)(36840700001)(40470700004)(55016003)(40480700001)(40460700003)(4001150100001)(2906002)(36860700001)(36756003)(4326008)(8936002)(8676002)(53546011)(82740400003)(47076005)(356005)(7636003)(26005)(16526019)(1076003)(336012)(426003)(2616005)(6286002)(19627235002)(6666004)(7696005)(316002)(6916009)(5660300002)(478600001)(966005)(86362001)(41300700001)(70586007)(70206006)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2023 14:33:21.1038 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 60f4c485-b431-413e-6533-08dbd30bd749 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: BL02EPF0001A0FD.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4553 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=2492c4164252996f183678effef6881fcbc0a4cf Thanks. Xueming Li --- >From 2492c4164252996f183678effef6881fcbc0a4cf Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Fri, 8 Sep 2023 19:28:39 +0800 Subject: [PATCH] net/enic: fix Rx and Tx queue state Cc: Xueming Li [ upstream commit 880b9220feba570f0b30acf3035016037c32ce45 ] 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/enic/enic_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index cdf0915591..a487256fa1 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -368,6 +368,7 @@ static int enicpmd_dev_stop(struct rte_eth_dev *eth_dev) { struct rte_eth_link link; struct enic *enic = pmd_priv(eth_dev); + uint16_t i; if (rte_eal_process_type() != RTE_PROC_PRIMARY) return 0; @@ -378,6 +379,11 @@ static int enicpmd_dev_stop(struct rte_eth_dev *eth_dev) memset(&link, 0, sizeof(link)); rte_eth_linkstatus_set(eth_dev, &link); + for (i = 0; i < eth_dev->data->nb_rx_queues; i++) + eth_dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; + for (i = 0; i < eth_dev->data->nb_tx_queues; i++) + eth_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.607639800 +0800 +++ 0118-net-enic-fix-Rx-and-Tx-queue-state.patch 2023-10-22 22:17:34.396723700 +0800 @@ -1 +1 @@ -From 880b9220feba570f0b30acf3035016037c32ce45 Mon Sep 17 00:00:00 2001 +From 2492c4164252996f183678effef6881fcbc0a4cf Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 880b9220feba570f0b30acf3035016037c32ce45 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org