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 92FE1428F8 for ; Sun, 9 Apr 2023 17:35:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8DA6A410EE; Sun, 9 Apr 2023 17:35:54 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2076.outbound.protection.outlook.com [40.107.223.76]) by mails.dpdk.org (Postfix) with ESMTP id D17E440EDE for ; Sun, 9 Apr 2023 17:35:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MJfuixEvlAyKT4D8JA8QjxFfKiFeXoBqHAx54bw3n1E/UyHf+1RPTVCLuMAE46u7tD1Q8WpLHEwhwPFLSSAz3rBPVBNYfVziwt9qXUqdL0JYtPXcHxc2iIRdl7XqfRb5N36K/yfluzI0E/oONQCENYIPFCm6T676jF5dACwJQxiI4qa5aNCxDAV2evz33D5BCyh4aYALxAJ2Ec/iwxoXIxaoBEpeOLEbeLmjimP7dIQJ4qUeh9pX99+cLUdK+kfN+XUM68PI3lIhf+uSkDtEGc2s2L8jDWeZDcpbLdGufln9Pwih0rwOahvZbrNwU8zGcogNx0c6V7IdYha7QC0ODA== 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=w1JRk3YJ+TT0CWREoGXxV+QrxcESRLsPBf3gWXOUWzA=; b=kGoy1y+lVRvnSPx6osEQFbhdCYFuyk+/XJs+zC2np+ZA3A1pbfqe6tFn/AdHGoT+1b8faW8+yhHREG4dg76iURYyA10gRhzzWQX1vHf9fv4oNRgVPrGJDsPQr7hW+HtTmZkH8JZXn9GFwoNviOZtgj1MbLbMFoUIL/jU3zH60yuehZqpEhvXeuS8w3IW7K6LxyqfB6ap03CaklzKbWkioF1YJ/U8+G7Wk4h78ZsdqzNXNokSoTRHuPOaFOTHXJMUDbWI+Nm2lAdhXPAEkwQVZH4jeFw2LjPcQ3qgTmuXN0C9C5OuNkmcNArDEStEoUlkOvMN4+WpGrTdAZxCBB9Dfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.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=w1JRk3YJ+TT0CWREoGXxV+QrxcESRLsPBf3gWXOUWzA=; b=DcUYs7MkjEsQt+Zc48Iq1j6yWS46d4luBuSZ4xIDGC+sNvTjC87m919eM35+ZDqxRoBhsWOTvpglaLBR8mbFB/2RMYDHKPzFoImkCKvprHlQAzhS251GH5/zxNC4wjmNMxxWskJSYIlv5+Swus80RGUANSSbgPa3FiYqTOKBFYRuLS4YjyD7yQkigHCNFrqWPszlWXYYVRhauIDKwGzuzgn0CaqZC68g9tEZ37lNnU5uvBvUf/sBU1pNvbcPuvNgS2Dq6xe6fpIiJWqyV1TyytKe5LOzOYpJ6rGfgxWnpoHHyXeFEmVAwRNuRsu3N4Fgr8XEK1nEbFf73OuOYn0xsg== Received: from MW4PR03CA0171.namprd03.prod.outlook.com (2603:10b6:303:8d::26) by PH8PR12MB7303.namprd12.prod.outlook.com (2603:10b6:510:220::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36; Sun, 9 Apr 2023 15:35:48 +0000 Received: from CO1NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8d:cafe::a8) by MW4PR03CA0171.outlook.office365.com (2603:10b6:303:8d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38 via Frontend Transport; Sun, 9 Apr 2023 15:35:48 +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 CO1NAM11FT006.mail.protection.outlook.com (10.13.174.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.21 via Frontend Transport; Sun, 9 Apr 2023 15:35:48 +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.5; Sun, 9 Apr 2023 08:35:38 -0700 Received: from nvidia.com (10.126.230.37) 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.37; Sun, 9 Apr 2023 08:35:36 -0700 From: Xueming Li To: Beilei Xing CC: Jingjing Wu , Qi Zhang , "dpdk stable" Subject: patch 'net/idpf: reset queue flag when queue is stopped' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:25:05 +0800 Message-ID: <20230409152529.5308-118-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT006:EE_|PH8PR12MB7303:EE_ X-MS-Office365-Filtering-Correlation-Id: 1588c0e3-1dc7-448c-c2c6-08db391017fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k3zLul1qbvEhp2pi82at+Xrt/r/h3Xdy51CLbd59yL4rrMO58G4Gh9K33OjeR/RhSbrqzj4oMyLOGAWCiZVYS/wDpNCgf7wc5UaQWBNC/XkDqEqQF2KP2X2nws3jMunGByErYlyZaUgCkOAFyJm6XDzgGV1jS9WtJDKLThy84OUx7+E3M09osdnzSZvAP55tUR7MGIkwUq9M1NUJfB47z9otgQ6cyjTmnlflmE7X3jEH7fWuf6MR8PuNb90bHmbcCtLnJIlJbUaJg5tULrwU44TSskIW8hesF8q+qSAfX4ODfOXi/JLJJtm6A/4ISXs9Xm85XNq16R8nOhjNA1tkBxQjKTjTNRxIMkbxVZNjpnlUCTaNqe7JodWE71U0cre7E/bU+YYQZluohVaZwooF2yQHtPDwkw3Xd7z14Eeg/J0TUFzcCnk9ptQOoZJ5ZxVvrDUJFAyZg7eVcspaalakmWpgQtXfMZtg1J2BwTPkr7k39zp+3yeYsHraReYFVYKpcq6v3C5o1O9SJbwpdpmqUsFgrkv3HxVdXjzZYFu+St6ykCIF9jj2oZAsuwkQXLLZQ3aX5fGq3M0ASBdVXf3tddstHc/UBJPZn+Z548gBb3998wMiuKDN6xIU/4SgR1R7ankyNuELPjEp2+xM/3G9zy0LB30BSnbH3Az9PsDrt/mUMx9FWQR+I2fh8H/BV7MeTeZQa9f9fdBh7ubw/jHCEWXMvN/srbQGFGpkMOI18WNjSc8fsdn6FB9zfe+gJf7aGpZq7zDFw2xh13LHa4sSO8D3edlxhsIG5WYW2FXyKDf9P5PTDdLNl09b2i8FAPZ5IuRvywoM7QJJ83kPXl6WJA== 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:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(376002)(451199021)(40470700004)(36840700001)(46966006)(478600001)(7696005)(54906003)(316002)(53546011)(1076003)(26005)(16526019)(6286002)(186003)(6666004)(966005)(2906002)(4326008)(70586007)(70206006)(5660300002)(8676002)(6916009)(41300700001)(8936002)(82310400005)(7636003)(356005)(82740400003)(55016003)(86362001)(40480700001)(36756003)(40460700003)(47076005)(2616005)(426003)(336012)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:35:48.6533 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1588c0e3-1dc7-448c-c2c6-08db391017fa 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: CO1NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7303 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.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/11/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/log/?h=22.11-staging/commit/158c05028fbeb46dbd225167181305a7d0db6047 Thanks. Xueming Li --- >From 158c05028fbeb46dbd225167181305a7d0db6047 Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Thu, 16 Mar 2023 08:09:21 +0000 Subject: [PATCH] net/idpf: reset queue flag when queue is stopped Cc: Xueming Li [ upstream commit 6eed0be6bd3e268c7bed919a7f2317e0ebaebf38 ] Reset q_started flag when Rx/Tx queue is stopped. Fixes: c03af6fa0ef1 ("net/idpf: support queue stop") Signed-off-by: Jingjing Wu Signed-off-by: Beilei Xing Acked-by: Qi Zhang --- drivers/net/idpf/idpf_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/idpf/idpf_rxtx.c b/drivers/net/idpf/idpf_rxtx.c index 5aef8ba2b6..1cbd5be8cc 100644 --- a/drivers/net/idpf/idpf_rxtx.c +++ b/drivers/net/idpf/idpf_rxtx.c @@ -1162,6 +1162,7 @@ idpf_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) } rxq = dev->data->rx_queues[rx_queue_id]; + rxq->q_started = false; if (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SINGLE) { rxq->ops->release_mbufs(rxq); reset_single_rx_queue(rxq); @@ -1193,6 +1194,7 @@ idpf_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) } txq = dev->data->tx_queues[tx_queue_id]; + txq->q_started = false; txq->ops->release_mbufs(txq); if (vport->txq_model == VIRTCHNL2_QUEUE_MODEL_SINGLE) { reset_single_tx_queue(txq); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:41.775506900 +0800 +++ 0117-net-idpf-reset-queue-flag-when-queue-is-stopped.patch 2023-04-09 21:45:38.779042200 +0800 @@ -1 +1 @@ -From 6eed0be6bd3e268c7bed919a7f2317e0ebaebf38 Mon Sep 17 00:00:00 2001 +From 158c05028fbeb46dbd225167181305a7d0db6047 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 6eed0be6bd3e268c7bed919a7f2317e0ebaebf38 ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 34205a1025..414f9a37f6 100644 +index 5aef8ba2b6..1cbd5be8cc 100644 @@ -22 +24 @@ -@@ -675,6 +675,7 @@ idpf_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) +@@ -1162,6 +1162,7 @@ idpf_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) @@ -29,2 +31,2 @@ - idpf_qc_single_rx_queue_reset(rxq); -@@ -706,6 +707,7 @@ idpf_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) + reset_single_rx_queue(rxq); +@@ -1193,6 +1194,7 @@ idpf_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) @@ -37 +39 @@ - idpf_qc_single_tx_queue_reset(txq); + reset_single_tx_queue(txq);