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 683CE1B494 for ; Thu, 22 Nov 2018 17:52:59 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D166380F88; Thu, 22 Nov 2018 16:52:58 +0000 (UTC) Received: from ktraynor.remote.csb (unknown [10.36.118.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D5A760FD9; Thu, 22 Nov 2018 16:52:57 +0000 (UTC) From: Kevin Traynor To: Tiwei Bie Cc: Maxime Coquelin , dpdk stable Date: Thu, 22 Nov 2018 16:49:40 +0000 Message-Id: <20181122164957.13003-48-ktraynor@redhat.com> In-Reply-To: <20181122164957.13003-1-ktraynor@redhat.com> References: <20181122164957.13003-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 22 Nov 2018 16:52:58 +0000 (UTC) Subject: [dpdk-stable] patch 'vhost: fix vector filling for packed ring' 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, 22 Nov 2018 16:52:59 -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 11/28/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 59cef10fedee13cc5fdac4d8b1e1732a244139f2 Mon Sep 17 00:00:00 2001 From: Tiwei Bie Date: Tue, 23 Oct 2018 14:07:49 +0800 Subject: [PATCH] vhost: fix vector filling for packed ring [ upstream commit 16b9e38e74147fb004fa112c055b2fd500403b36 ] We should return the length of the buffers described by the current descriptor chain after filling the buffer vector. So we need to zero the *len first. Fixes: 2f3225a7d69b ("vhost: add vector filling support for packed ring") Signed-off-by: Tiwei Bie Reviewed-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index f8794ee19..1c31c0562 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/virtio_net.c @@ -522,4 +522,5 @@ fill_vec_buf_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, *desc_count = 0; + *len = 0; while (1) { -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-22 16:47:33.514580860 +0000 +++ 0048-vhost-fix-vector-filling-for-packed-ring.patch 2018-11-22 16:47:32.000000000 +0000 @@ -1,14 +1,15 @@ -From 16b9e38e74147fb004fa112c055b2fd500403b36 Mon Sep 17 00:00:00 2001 +From 59cef10fedee13cc5fdac4d8b1e1732a244139f2 Mon Sep 17 00:00:00 2001 From: Tiwei Bie Date: Tue, 23 Oct 2018 14:07:49 +0800 Subject: [PATCH] vhost: fix vector filling for packed ring +[ upstream commit 16b9e38e74147fb004fa112c055b2fd500403b36 ] + We should return the length of the buffers described by the current descriptor chain after filling the buffer vector. So we need to zero the *len first. Fixes: 2f3225a7d69b ("vhost: add vector filling support for packed ring") -Cc: stable@dpdk.org Signed-off-by: Tiwei Bie Reviewed-by: Maxime Coquelin