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 159B845CE3 for ; Mon, 11 Nov 2024 07:34:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F71140E1C; Mon, 11 Nov 2024 07:34:38 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2048.outbound.protection.outlook.com [40.107.220.48]) by mails.dpdk.org (Postfix) with ESMTP id 9E59240E09 for ; Mon, 11 Nov 2024 07:34:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KJzCtoT2mlEzbv8rwi/Co/ofFX3aTU+1WDZIC/IY9V+hhrQ2/4XBH4TmFeXDuThEeKwVULyU7eRorybtIQxfSi2v2JrC4odA1UYiZswzv1t+j6CjXlC4KTahT+g6pR1tvpdkmKF2ZTrypznTlqsC+O0kyGKqrlzy2VDm1adZn+fIHXRNnoZFY5JIHw6i/7pSZw3Tx/bTVWoIQb4cLHh7S+Zl4A1gnuWhX3b/1QCqGXRtHTvkUw4+V0u+GL3JpvUquQJs8YzcvmTN1MJKpy8O5Oq9Br5dMQQ67IxOZB40O6Z+dj9CqHm0pybJm19Wq2IpTH6Ou15fv/SvKSF0YJzb0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=2UUdVOomoSAjIrj12TbGHn66Dp/5ooU1/BKDkYjzilM=; b=ujyJnJOSfR3p0IzP7c+Gk3b/QlC8ds9pkRLDs4Mu2a0UuhO4ontQRX/4KZSPBITyYkLbaKgn5XswtVcmGT6x/dGYURFWL80vVFCI+n3qSOjagNJ5QE1jtZfU1RIHYekYQ+E9+tkgLRijRTgsgdmvH8x1lWlqzUeFOr7Rz4YrA3KNYI1vHlGKjVL7aC+JH6WnbNFNbO6Azwxw74srzpV7Uag9z9VyO9IFp3mSVeXiMwSRoiOPPI0ryW7Mber5LevNoBEr5jUvykf1/5wrsZJh8xzwEtMkY6kzr+Z54PTdE6CAIdTI7gMw9Umti0oXx27TIFnX2F5sntkMgmtbWxLyiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.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 (0) 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=2UUdVOomoSAjIrj12TbGHn66Dp/5ooU1/BKDkYjzilM=; b=carm8eH4WwsNMLu0H8bUcuKoq0IDoRggO8WENP5hFt2gvgzhR1qixHPbFBj9eaEXsu9hD+X2IPjB8TbLbkAcuIZz37/6p8SAENMDut6IwCEn3YeFP5siXuG2TrICO6hfGeJlT761x0f/lIdi6JDxAMSQRCl8VuqbgBZETByhwClKMhW11mRpcq4mytPMdXS3nqeXsd/xN40Jx12+ueXJamfCHEcsKRhVuImRJxwZ2hFtoTJzif1DdoRz0GvcqxxobmbPeGNmPxlXcioJMzlpNBdJ51a9Urf+FQdLwLLz7gD2/hd2aV3Jxg0sZ9fIff4QCJUVxoK6c0chaY0KewoMXg== Received: from BN0PR08CA0010.namprd08.prod.outlook.com (2603:10b6:408:142::11) by SA3PR12MB8023.namprd12.prod.outlook.com (2603:10b6:806:320::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27; Mon, 11 Nov 2024 06:34:31 +0000 Received: from BN2PEPF000044A8.namprd04.prod.outlook.com (2603:10b6:408:142:cafe::5d) by BN0PR08CA0010.outlook.office365.com (2603:10b6:408:142::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28 via Frontend Transport; Mon, 11 Nov 2024 06:34:31 +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 BN2PEPF000044A8.mail.protection.outlook.com (10.167.243.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:34:30 +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.1544.4; Sun, 10 Nov 2024 22:34:19 -0800 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.1544.4; Sun, 10 Nov 2024 22:34:17 -0800 From: Xueming Li To: Kommula Shiva Shankar CC: , Maxime Coquelin , "dpdk stable" Subject: patch 'net/virtio-user: reset used index counter' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:36 +0800 Message-ID: <20241111062847.216344-51-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-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-TrafficTypeDiagnostic: BN2PEPF000044A8:EE_|SA3PR12MB8023:EE_ X-MS-Office365-Filtering-Correlation-Id: de278bce-4709-4191-0e02-08dd021ae5f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?k18Lbf1LUL2jpf72W9nV6OQU5yX0GF9uX9BsRJci/9EN5XR9/IIBu++4XFXC?= =?us-ascii?Q?jwmuM2/cZT9uapFCDEWvZrrzPaKpWc8cMAEJtrnsrModjzZPNZDoDowrj9dY?= =?us-ascii?Q?PUCZ+22yEpufmp+pS2xyLrDcH5CNtajcRGdnqZwFLe4zZiw7wkaEn1R3KgqP?= =?us-ascii?Q?yv765hIBMLtj+tx0cfH5KlB6wB3x0A/WMynbwk5JTubom4WrNZ1CiC5mzS4g?= =?us-ascii?Q?LRVJmGL+xubn7lM+K7eNgS7X/shHaHFxUASweeRjpexD/WwWiWt4NY3ExpxU?= =?us-ascii?Q?Cjq3oij+ZzBARO2zwvvrDaLGvyQYd16aALMgBAIAXHduCV01TnN/wvbXl4IW?= =?us-ascii?Q?SnDbbxaE6eQKGn1Euh/UKTrBDdDpvLcW/js8OSGuWuqlmdBL4hhWUCGdZUN0?= =?us-ascii?Q?eSBMP/ntoxtb8+uFrMBIJSme2R/4Sxec/EOX1IqH1xcZe5VdyceALEK0Wbj7?= =?us-ascii?Q?gNVnlUOM9sMrAmfSMy25+LTuhoR35jxpK55GmgRDftpRFsJDRHqrX+mzS7gS?= =?us-ascii?Q?QSCavvLvjQ48XJbujzO53pnq68l/5/J5/I7VdqXABLXEEmoJG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160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:34:30.4894 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: de278bce-4709-4191-0e02-08dd021ae5f5 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: BN2PEPF000044A8.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8023 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 23.11.3 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/30/24. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=9c24c7b819f29a9f8962df3e2a7742d1dfee98a4 Thanks. Xueming Li --- >From 9c24c7b819f29a9f8962df3e2a7742d1dfee98a4 Mon Sep 17 00:00:00 2001 From: Kommula Shiva Shankar Date: Mon, 5 Aug 2024 10:08:41 +0000 Subject: [PATCH] net/virtio-user: reset used index counter Cc: Xueming Li [ upstream commit ff11fc60c5d8d9ae5a0f0114db4c3bc834090548 ] When the virtio device is reinitialized during ethdev reconfiguration, all the virtio rings are recreated and repopulated on the device. Accordingly, reset the used index counter value back to zero. Fixes: 48a4464029a7 ("net/virtio-user: support control VQ for packed") Signed-off-by: Kommula Shiva Shankar Reviewed-by: Maxime Coquelin --- drivers/net/virtio/virtio_user_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c index 3a31642899..f176df86d4 100644 --- a/drivers/net/virtio/virtio_user_ethdev.c +++ b/drivers/net/virtio/virtio_user_ethdev.c @@ -199,6 +199,7 @@ virtio_user_setup_queue_packed(struct virtqueue *vq, vring->device = (void *)(uintptr_t)used_addr; dev->packed_queues[queue_idx].avail_wrap_counter = true; dev->packed_queues[queue_idx].used_wrap_counter = true; + dev->packed_queues[queue_idx].used_idx = 0; for (i = 0; i < vring->num; i++) vring->desc[i].flags = 0; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:07.533567591 +0800 +++ 0050-net-virtio-user-reset-used-index-counter.patch 2024-11-11 14:23:05.122192840 +0800 @@ -1 +1 @@ -From ff11fc60c5d8d9ae5a0f0114db4c3bc834090548 Mon Sep 17 00:00:00 2001 +From 9c24c7b819f29a9f8962df3e2a7742d1dfee98a4 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit ff11fc60c5d8d9ae5a0f0114db4c3bc834090548 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index bf29f0dacd..747dddeb2e 100644 +index 3a31642899..f176df86d4 100644 @@ -23 +25 @@ -@@ -204,6 +204,7 @@ virtio_user_setup_queue_packed(struct virtqueue *vq, +@@ -199,6 +199,7 @@ virtio_user_setup_queue_packed(struct virtqueue *vq,