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 68DBD45BB6 for ; Wed, 23 Oct 2024 23:18:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63362432B4; Wed, 23 Oct 2024 23:18:52 +0200 (CEST) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mails.dpdk.org (Postfix) with ESMTP id 9C8A040261 for ; Wed, 23 Oct 2024 23:18:50 +0200 (CEST) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-43168d9c6c9so2098965e9.3 for ; Wed, 23 Oct 2024 14:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729718330; x=1730323130; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OInDpd2IAbVRWLgMf/uDM/uJRog5oQmGnmab5Ooj0ys=; b=COs0XeFkwj4hYALJJIQl2xEzr0reaGcP9FDMisjNyO28FCjR9jCOAnLxazorwV7dC2 vhXggTP/387gnr1i4WpKWDJB6x81/qH2D619r/+rd2kED7xPGyyT2n2K2C0hIlSAQhVD AgpP4r2LNU+Dq9/I+dTxzKfHAQwMiE9KD2Bgizf6SA1/UdhZZtl2567Y9aORo0MGzcMH orrADJqRQi0HvLKFEjbn9zQ13Q0ld/jAPhY+/C5jQyFzIIXYp8I2XC3j4wCSLBRKtesG ByGhyRO8B6kAHA3skLfgUmhtmP5XphPhsOl8bghBzfgGp40COUbjBdCNDk6V+aoXWavA rkXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729718330; x=1730323130; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OInDpd2IAbVRWLgMf/uDM/uJRog5oQmGnmab5Ooj0ys=; b=N4Z68WfuYnuU6bNduhEVSgM0ny+n5ok8xaXxI8JqzlMt5kj0g9JcNULMHtje+ZR5YW JDME5mnhn7qUvUsuaVyMlNFx1wHQ8ijDiv9DAC5NsFcJKLYijEbQDue2ePQ3x22CuMgp NoDWLiiqcqE05o94N2QYwU6dCNNeB/pU6OedDJSr/QSl1JSDfAlnyOxjvv1FfMk/qrdi qp+TFVhRBBOGKlPeGY9+5Xe2g3zVTgBPPbOIaavjuq0qi6Q2zmiRbn1jtEMOWkBmea1G UBZTPe/03sx2dleRBQs8MxVwKlHYfwuj1l0ITnKBGAehv+npNcJGJwdfLH+1vIKjFwEd 3XUQ== X-Forwarded-Encrypted: i=1; AJvYcCWl+iIm3zrNc753ZU/XEdVpMEKBOaLR0OlwuBFIp24bALexwkM4LnOAYjGWViK7e4nBlmtZfnc=@dpdk.org X-Gm-Message-State: AOJu0YwNM76RnsJxJlTiMP28rbaOlx+9rt0GmSCyKfZaoR5LUb4/34eg 1jq9AyT+9fqsyXPqsgU7NxYmJSe4NNDr7B+dxQdUmV/pj87G96i+ X-Google-Smtp-Source: AGHT+IG9EmRnguRVuBsR0vF0RoctsOjpcW1IThkch2Q0D+OGy9F9eXSnVQ/Foqna8IPbLTPGMFGpaw== X-Received: by 2002:a05:600c:468a:b0:428:f0c2:ef4a with SMTP id 5b1f17b1804b1-431841440b5mr36125445e9.13.1729718330139; Wed, 23 Oct 2024 14:18:50 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:21cd:def0:a01d:d2aa]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43186bd69ebsm27457805e9.1.2024.10.23.14.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 14:18:49 -0700 (PDT) From: luca.boccassi@gmail.com To: Bill Xiang Cc: Maxime Coquelin , dpdk stable Subject: patch 'vdpa: update used flags in used ring relay' has been queued to stable release 22.11.7 Date: Wed, 23 Oct 2024 22:16:10 +0100 Message-ID: <20241023211704.1216956-30-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241023211704.1216956-1-luca.boccassi@gmail.com> References: <20241023211704.1216956-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/25/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://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/8473106d0ca03f5b826fb54cb09f148b41ba8c72 Thanks. Luca Boccassi --- >From 8473106d0ca03f5b826fb54cb09f148b41ba8c72 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 [ 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 cf51ca957a..89d88b6876 100644 --- a/lib/vhost/vdpa.c +++ b/lib/vhost/vdpa.c @@ -173,6 +173,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.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-10-23 22:16:41.665647276 +0100 +++ 0030-vdpa-update-used-flags-in-used-ring-relay.patch 2024-10-23 22:16:40.467941496 +0100 @@ -1 +1 @@ -From b3f923fe1710e448c073f03aad2c087ffb6c7a5c Mon Sep 17 00:00:00 2001 +From 8473106d0ca03f5b826fb54cb09f148b41ba8c72 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit b3f923fe1710e448c073f03aad2c087ffb6c7a5c ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index a1dd5a753b..8abb073675 100644 +index cf51ca957a..89d88b6876 100644 @@ -22 +23 @@ -@@ -174,6 +174,7 @@ rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m) +@@ -173,6 +173,7 @@ rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m)