From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id B5FA31B1B8 for ; Wed, 24 Jan 2018 16:38:52 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6D063226C4; Wed, 24 Jan 2018 10:38:52 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:38:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=KzHDpbNMalIPMfDVz CSAKn4uHgnHz5UQ6bhbK+wu8wE=; b=rI+HfDntxvFSmycsgBNURbt9Md1kHrayf UhcLg5TgDHi1HCEVtb8pAAahq2JbZCzEWQQUNKVeAE1fVhhu271xgrN1GCCT4itE KOcyMbN1SBCxDBAh+raSF7m2z/qBrNDEl7EewhxLGOyfs1JWHhpWoYxNOsQ8aGox o05UvPhiaLQzQlR++JfMU3gvnktjcqO71jMr0z9LZZjwyPQJgXM2lUEmO2dvFnoN pYO0h4FG8XAA4KFb1v5s3TP5pQLAk7ZZrRD9GN/7SP1D2+9SGMP+sqbU83uss8M1 2WPX0ddZIvX50frt5wffDoMLAprwjK5PYDyzhuW/e9GzLDLPa+Wvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=KzHDpbNMalIPMfDVzCSAKn4uHgnHz5UQ6bhbK+wu8wE=; b=p2nq263c CGqesOvaff3KgYIabXNgvhC/pF0kyZBXZIp1nbAGqO5QoCY79ZmJH2kLYy0h7Hgj uVFQUpTAxckCuuxC3Jx/S7tG3uU0msgCKp47tUGg6i9ghx7uaSMJOSeijWFqW+FK 7vmuKzEwk0sui43hFs17f4aQaWseKrRE20PUgEzudPG/9uDujah3vwIqG6T8In6t lQwHjSm3iccq/cd4qHhmj78rcq67t7R31DiPR0MsjZCS/zmg2oWGPJvfrtpLF4oi eK8vVMTkOPzJ/alM3VnmP6h8wLf1RzsJghlK9ze0kwBD9bmYOqq6pmfef324zgpp 2UCek+XXxPrQQA== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id E923D7E448; Wed, 24 Jan 2018 10:38:49 -0500 (EST) From: Yuanhan Liu To: Junjie Chen Cc: Maxime Coquelin , Yuanhan Liu , dpdk stable Date: Wed, 24 Jan 2018 23:32:15 +0800 Message-Id: <1516808026-25523-67-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'vhost: fix dequeue zero copy with virtio1' has been queued to LTS release 17.11.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: Wed, 24 Jan 2018 15:38:52 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.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 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 4e3a3edf297b981d35c63e7a0a7c6286cfae3ee4 Mon Sep 17 00:00:00 2001 From: Junjie Chen Date: Wed, 13 Dec 2017 11:50:56 -0500 Subject: [PATCH] vhost: fix dequeue zero copy with virtio1 [ upstream commit 803aeecef123877764aac56270180e920aea8863 ] This fix dequeue zero copy can not work with Qemu version >= 2.7. Since from Qemu 2.7 virtio device use virtio-1 protocol, the zero copy code path forget to add offset to buffer address. Fixes: b0a985d1f340 ("vhost: add dequeue zero copy") Signed-off-by: Junjie Chen Reviewed-by: Maxime Coquelin Acked-by: Yuanhan Liu --- lib/librte_vhost/virtio_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 6fee16e..79d80f7 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/virtio_net.c @@ -977,7 +977,8 @@ copy_desc_to_mbuf(struct virtio_net *dev, struct vhost_virtqueue *vq, desc->addr + desc_offset, cpy_len)))) { cur->data_len = cpy_len; cur->data_off = 0; - cur->buf_addr = (void *)(uintptr_t)desc_addr; + cur->buf_addr = (void *)(uintptr_t)(desc_addr + + desc_offset); cur->buf_iova = hpa; /* -- 2.7.4