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 5918445CE3 for ; Mon, 11 Nov 2024 07:34:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50E6B40E0C; Mon, 11 Nov 2024 07:34:09 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2071.outbound.protection.outlook.com [40.107.237.71]) by mails.dpdk.org (Postfix) with ESMTP id C49BC40685 for ; Mon, 11 Nov 2024 07:34:07 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XaKJ/stk9DBQgVlhStcOCSLy8BeIKdZkZPVvP5P8Xc+nM83HMJvyoxtA/SoH4iMOpD4kEZMuajQe5uio4q6Vi3KcWxM+QxUpe7Tahi1kVWWfZE/cQcTCI/fqirTluUdrSptoTfCyQhU5JF1KnXrt7pTJ0TTDQqMJcig0RAOPb2nP+VtCea7oFFCLjiUx8nkCF9i4uku9d+xS80Wv7l9lBQDktNPVVUZq0pnEkylIpt5HBH39dMROkMPphAWwavbKgBfo78fP5x8wuMHLy+KlngTiL6f+/AaKWVYqe5JPfDwbMIgg8WOsagqncyMliKtnWFN66V6ek60e8d/Twq5caQ== 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=aWR/LWLE7Dtmkr8tqkLa9nsvxImGxYaS8sOfFYApJqA=; b=F2MRIXZ7D+LRwbnRTa32XTUcpeGVEh4SpiCQ8q0TjQkPNDFEYDqV6gPbI2pIhXRj5bCWrlGZeXi1SnLZ8/cc+NT7Wk/L5EkCCHE5D4SgrRkDVGdj85Bz3K+Ipb6vocRLWrphzNTVhjKEfeTnIT7ec/jt6ugVVkUbSr+ZTeaNOvU2AOJRJZULQYxnon9m99JQbHF/uyEXfou8E3d44tJsBWxZPbV8+K5bJQltsPSK7O//SoeVLZekrKGDIDhIjxDliNMACX4XIdiVtXoGatJSUOYr7+ohDqxgqOYClIyb8q/eMvLovgaxDssJjQvSar5Q7mSNodDkQcKLn6MKsrazdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dayudpu.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=aWR/LWLE7Dtmkr8tqkLa9nsvxImGxYaS8sOfFYApJqA=; b=lGfzwkTOdHom9SqD0egotBSkBxa5URfb6I6jaNBpmmL01ZKS5O5fIE0Ay7We3MKgWtXqtxm4zhwFE6eN8vVzZDPMZuSjOc/Hr4+bx2Tt/kl1pvaxxZIR28YTyp0VqYnUz0gPtamvjlPd3vmjo8aVmkxCRVQZCF1tJBLSqlJk6ttQ9jAk6O6q5ci7/pTXEj5BFHBoBLSMqdsq23crgAx1v0Yh2OLth654fdwYG0RCiQiTa2VN/H7raAd+tcHxeLuvHEGrdRTrin0RQGpXrVs/To8IL7XsanVr1AYcfsMxMO0ohUrNt2yLT3+II6QGEKJbqSn91CGntKeXvOq69Jkl5g== Received: from BLAPR03CA0009.namprd03.prod.outlook.com (2603:10b6:208:32b::14) by CY5PR12MB6370.namprd12.prod.outlook.com (2603:10b6:930:20::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.26; Mon, 11 Nov 2024 06:34:05 +0000 Received: from BN2PEPF000055E1.namprd21.prod.outlook.com (2603:10b6:208:32b:cafe::47) by BLAPR03CA0009.outlook.office365.com (2603:10b6:208:32b::14) 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:04 +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 BN2PEPF000055E1.mail.protection.outlook.com (10.167.245.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.1 via Frontend Transport; Mon, 11 Nov 2024 06:34:04 +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:33:52 -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:33:50 -0800 From: Xueming Li To: Bill Xiang CC: , Maxime Coquelin , "dpdk stable" Subject: patch 'vdpa: update used flags in used ring relay' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:33 +0800 Message-ID: <20241111062847.216344-48-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: BN2PEPF000055E1:EE_|CY5PR12MB6370:EE_ X-MS-Office365-Filtering-Correlation-Id: d1234642-f888-47bb-4b78-08dd021ad666 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?YsyBfe5XM3G+vGl1gLbvXw+Gca//C69LeDTlMt5RFcBaQYUHrDz+DaWxTaok?= =?us-ascii?Q?RFhLW/H4LkoJz2euSsfnGjQq3dFauNBkckaq7p9kFcVMtZj43e5uDmiVO/hy?= =?us-ascii?Q?YYvYx99wyR5OCSgGH3mCxZbcEiEu+sU7Amu8sei8y6CS9Rqjcq3NzKIgGzDt?= =?us-ascii?Q?HB3k8bFZ6D5ZmhtKcO4MBpgs9YbzFLafqfpD29LZLADZ7DUkBOc8MqJPlYBD?= =?us-ascii?Q?gUi7dwOUemxzI4Ty8ruS9UDEt3ESDSsdE0JBsxdvfUszwYxVEacxrNz2OrOQ?= =?us-ascii?Q?DswC16IGo92WQXz0XDGSSQRpeEYy9+sNnLOL4yXDanCkRrt6VsmR8IYE5oNa?= =?us-ascii?Q?XnVkThNzNMf+ExM3NDEfS6k35brQylZ7Knzq4VVKECvsZ97nA8e6IUmhiDgP?= =?us-ascii?Q?Gzllp1H1axy1MRKlO/aiAOGW8wQ6AVwKSSUerInqBqRebwIOLBWoAQEdAwr7?= =?us-ascii?Q?WCw0+zKk7l3H0XTGpu+dSaOHgw6Pu2d5/T7I0RZolrlH/MZmktprdHPbrUyl?= =?us-ascii?Q?E6qi3FRYJGV3eV0x81BYua3CT3UPz1v7l+jOfTMJneY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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:(13230040)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:34:04.3880 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1234642-f888-47bb-4b78-08dd021ad666 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: BN2PEPF000055E1.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6370 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=23b4bf7939c8bc38ed6d132c27cdb6905a9acaf7 Thanks. Xueming Li --- >From 23b4bf7939c8bc38ed6d132c27cdb6905a9acaf7 Mon Sep 17 00:00:00 2001 From: Bill Xiang Date: Wed, 17 Jul 2024 11:24:47 +0800 Subject: [PATCH] vdpa: update used flags in used ring relay Cc: Xueming Li [ upstream commit b3f923fe1710e448c073f03aad2c087ffb6c7a5c ] The vDPA device will work incorrectly if flags such as VRING_USED_F_NO_NOTIFY are not updated correctly. Fixes: b13ad2decc83 ("vhost: provide helpers for virtio ring relay") Signed-off-by: Bill Xiang Reviewed-by: Maxime Coquelin --- lib/vhost/vdpa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vhost/vdpa.c b/lib/vhost/vdpa.c index ce4fb09859..f9730d0685 100644 --- a/lib/vhost/vdpa.c +++ b/lib/vhost/vdpa.c @@ -174,6 +174,7 @@ rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m) idx = vq->used->idx; idx_m = s_vring->used->idx; ret = (uint16_t)(idx_m - idx); + vq->used->flags = s_vring->used->flags; while (idx != idx_m) { /* copy used entry, used ring logging is not covered here */ -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:07.331825395 +0800 +++ 0047-vdpa-update-used-flags-in-used-ring-relay.patch 2024-11-11 14:23:05.112192840 +0800 @@ -1 +1 @@ -From b3f923fe1710e448c073f03aad2c087ffb6c7a5c Mon Sep 17 00:00:00 2001 +From 23b4bf7939c8bc38ed6d132c27cdb6905a9acaf7 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit b3f923fe1710e448c073f03aad2c087ffb6c7a5c ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index a1dd5a753b..8abb073675 100644 +index ce4fb09859..f9730d0685 100644