From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 38BA21B4AA for ; Thu, 29 Nov 2018 14:24:20 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A5ADC3082B4F for ; Thu, 29 Nov 2018 13:24:19 +0000 (UTC) Received: from ktraynor.remote.csb (ovpn-117-230.ams2.redhat.com [10.36.117.230]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4916F1019626; Thu, 29 Nov 2018 13:24:16 +0000 (UTC) From: Kevin Traynor To: Maxime Coquelin Cc: dpdk stable Date: Thu, 29 Nov 2018 13:21:19 +0000 Message-Id: <20181129132128.7609-79-ktraynor@redhat.com> In-Reply-To: <20181129132128.7609-1-ktraynor@redhat.com> References: <20181129132128.7609-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Thu, 29 Nov 2018 13:24:19 +0000 (UTC) Subject: [dpdk-stable] patch 'vhost: fix packed ring constants declaration' has been queued to stable release 18.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2018 13:24:20 -0000 Hi, FYI, your patch has been queued to stable release 18.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/08/18. 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. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Kevin Traynor --- >>From ed3f45987250ac5a9c4ff49024e38c218c5e2dcb Mon Sep 17 00:00:00 2001 From: Maxime Coquelin Date: Thu, 22 Nov 2018 18:09:22 +0100 Subject: [PATCH] vhost: fix packed ring constants declaration [ upstream commit 5a12b67e74989f582cfa21bb2129ce838eb18805 ] The packed ring defines were declared only if kernel header does not declare them. The problem is that they are not applied in upstream kernel, and some changes in the names have been required. This patch declares the defines unconditionally, which fixes potential build issues. Fixes: 297b1e7350f6 ("vhost: add virtio packed virtqueue defines") Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 25ffd7614..9ac607bad 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -220,11 +220,4 @@ struct vhost_msg { #define VIRTIO_F_RING_PACKED 34 -#define VRING_DESC_F_NEXT 1 -#define VRING_DESC_F_WRITE 2 -#define VRING_DESC_F_INDIRECT 4 - -#define VRING_DESC_F_AVAIL (1ULL << 7) -#define VRING_DESC_F_USED (1ULL << 15) - struct vring_packed_desc { uint64_t addr; @@ -234,14 +227,21 @@ struct vring_packed_desc { }; +struct vring_packed_desc_event { + uint16_t off_wrap; + uint16_t flags; +}; +#endif + +/* + * Declare below packed ring defines unconditionally + * as Kernel header might use different names. + */ +#define VRING_DESC_F_AVAIL (1ULL << 7) +#define VRING_DESC_F_USED (1ULL << 15) + #define VRING_EVENT_F_ENABLE 0x0 #define VRING_EVENT_F_DISABLE 0x1 #define VRING_EVENT_F_DESC 0x2 -struct vring_packed_desc_event { - uint16_t off_wrap; - uint16_t flags; -}; -#endif - /* * Available and used descs are in same order -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-29 13:11:36.995539140 +0000 +++ 0078-vhost-fix-packed-ring-constants-declaration.patch 2018-11-29 13:11:35.000000000 +0000 @@ -1,8 +1,10 @@ -From 5a12b67e74989f582cfa21bb2129ce838eb18805 Mon Sep 17 00:00:00 2001 +From ed3f45987250ac5a9c4ff49024e38c218c5e2dcb Mon Sep 17 00:00:00 2001 From: Maxime Coquelin Date: Thu, 22 Nov 2018 18:09:22 +0100 Subject: [PATCH] vhost: fix packed ring constants declaration +[ upstream commit 5a12b67e74989f582cfa21bb2129ce838eb18805 ] + The packed ring defines were declared only if kernel header does not declare them. The problem is that they are not applied in upstream kernel, @@ -12,7 +14,6 @@ fixes potential build issues. Fixes: 297b1e7350f6 ("vhost: add virtio packed virtqueue defines") -Cc: stable@dpdk.org Signed-off-by: Maxime Coquelin --- @@ -20,7 +21,7 @@ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h -index 760f42192..5218f1b12 100644 +index 25ffd7614..9ac607bad 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -220,11 +220,4 @@ struct vhost_msg {