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 8924B23B for ; Tue, 21 Nov 2017 14:24:52 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3D95120696; Tue, 21 Nov 2017 08:24:52 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 21 Nov 2017 08:24: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=fKY07YtpAOCCyAxwp w+b4V+poq9lWzzj5VNSFflA3+o=; b=sIyJrGOCWzDl6sNC9OGnc4XXXxAA2g6qY WhHOs4/DsL1LKVIvG8QYe8Yhsj4tUk7d430y7PRALN6JWF10Uvsw+WTQJSCVk8Lp sOB12cqQB+wwPzJArqSDKT4DFMjUcRu0MePuVpOuLCZjkh3tFHQ1OtpJXSvns3T5 qF8v5tmE926/BL4R1xTJv70bczGL2oP65Na6etg4W9bOnaS2FKYFh6/tALIT322K L9Y14ZwSpC3NA3YbvB1f2+6UacFMIB/AMe7ZUPRin/GQ+MaQnbF211j1XzfuplDW 9MeaMjkpURny1cFK8zqeJ2DcvcVTyIccw1T5zy3jv7f4RacsyIcDw== 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=fKY07YtpAOCCyAxwpw+b4V+poq9lWzzj5VNSFflA3+o=; b=Vh8m9Shf ri8eL2N2WvOavWwDCTmqZ/nk5R5DmRPSLAY3iQmZoB3D3K8YJyljMNdlPKV0Wend 28BYcvLg6SdE21ltPGp8XSIBhuNy0YQmEuwKrcanqdAaJyjfLqpFWvLm56TV5S9q kAXBhXG4n2o5KF2YJfvSIoZzIc9DIrC8qBf5Xk9e0d8bBjLfOTRNXZUAkcbn/JPg z6ZaPz1ceE/V6V3eLsyz4ss4ltNw/Gch06SxDD2KWB6jvLwVZz5RrQK6LaHrqisj FeyKdlc13O+NduPstLtziAmQY1O7Xd7cyJJZ7IhZwmkyi8qibeksWiO/9OtS6HRw W8nL0XO2S6ab2A== X-ME-Sender: Received: from localhost.localdomain (unknown [180.158.62.0]) by mail.messagingengine.com (Postfix) with ESMTPA id B70DE24A81; Tue, 21 Nov 2017 08:24:49 -0500 (EST) From: Yuanhan Liu To: Olivier Matz Cc: Yuanhan Liu , dpdk stable Date: Tue, 21 Nov 2017 21:17:08 +0800 Message-Id: <1511270333-31002-86-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> References: <1511270333-31002-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/virtio: fix mbuf port for simple Rx function' has been queued to stable release 17.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: Tue, 21 Nov 2017 13:24:52 -0000 Hi, FYI, your patch has been queued to stable release 17.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/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 139b1028fbc61da9c1f3ae8e93577b21684da0e6 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 7 Sep 2017 14:13:42 +0200 Subject: [PATCH] net/virtio: fix mbuf port for simple Rx function [ upstream commit 0c4f909c17af3cff8859439436a8fa0b9a9689c5 ] The mbuf->port was was not properly set for the first received mbufs. Fix this by setting it in virtqueue_enqueue_recv_refill_simple(), which is used to enqueue the first mbuf in the ring. The function virtio_rxq_rearm_vec(), which is used to rearm the ring with new mbufs, is correct and does not need to be updated. Fixes: cab0461234e7 ("virtio: fill Rx avail ring with blank mbufs") Signed-off-by: Olivier Matz Acked-by: Yuanhan Liu --- drivers/net/virtio/virtio_rxtx_simple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/virtio/virtio_rxtx_simple.c b/drivers/net/virtio/virtio_rxtx_simple.c index 542cf80..54ababa 100644 --- a/drivers/net/virtio/virtio_rxtx_simple.c +++ b/drivers/net/virtio/virtio_rxtx_simple.c @@ -65,6 +65,8 @@ virtqueue_enqueue_recv_refill_simple(struct virtqueue *vq, struct vring_desc *start_dp; uint16_t desc_idx; + cookie->port = vq->rxq.port_id; + desc_idx = vq->vq_avail_idx & (vq->vq_nentries - 1); dxp = &vq->vq_descx[desc_idx]; dxp->cookie = (void *)cookie; -- 2.7.4