From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id D2C831B31B for ; Thu, 15 Feb 2018 13:03:26 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id v123so334665wmd.5 for ; Thu, 15 Feb 2018 04:03:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=x6TZsPLJkC5jUoxS3i11UfW9bYb8n/YbUSgpopYCbTE=; b=Myj6GQ1ymeVMosv1VxTvXnXjJw7nP1mQCDM7aja7O/UfzthERjwJwC07FsctAYAbIK 1KddFzfQKPAWECHXVO5eAs/Qan/LMqSAtVEjMUjEIRMzMHl4f1TMmCEif118xJS3dr6n xKproZ+mk3DDZij6oClyq+J2+70SiDdGWb4LzjprdyHKOkDZf0tDUtmaLeMcnN5x6J1i aus1cFCqNByjt0eFaPfIIgFEBqRDnuYNYfVzFCmmd20O3tqtEVgVTx2FT+t6PvOKFUEk cDAT1inyYYNlF3B669mFj92VSMNVfla3PxVDQK3Wk3MKQrFtJxfH8rao40Y8oxUPpMyZ Fa8A== X-Gm-Message-State: APf1xPAXapUdq2DuPjI8hjYReWM+lWEOX0cjJvHqF1SV9QimPhr9s+fj pmmSWJbKCDWzNuUSxuWN8n8= X-Google-Smtp-Source: AH8x2266IfNL/1Nkdyh0pLRUjVbC++bzrOOij6np1SoNik4/Wffo+rZTF9KR5KJ9CJxOiH7Cg6u2xQ== X-Received: by 10.28.21.136 with SMTP id 130mr1733986wmv.152.1518696206576; Thu, 15 Feb 2018 04:03:26 -0800 (PST) Received: from localhost ([213.251.34.146]) by smtp.gmail.com with ESMTPSA id x203sm29458526wmd.11.2018.02.15.04.03.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2018 04:03:26 -0800 (PST) From: Luca Boccassi To: Olivier Matz Cc: Maxime Coquelin , dpdk stable Date: Thu, 15 Feb 2018 12:03:04 +0000 Message-Id: <20180215120309.28937-2-bluca@debian.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180215120309.28937-1-bluca@debian.org> References: <20180211124911.14557-2-bluca@debian.org> <20180215120309.28937-1-bluca@debian.org> Subject: [dpdk-stable] patch 'net/virtio: fix mbuf data offset for simple Rx' has been queued to LTS release 16.11.5 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, 15 Feb 2018 12:03:27 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/17/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 7afdb08d88e46b6dabb71a5d3cbfb8c473f2c4be Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Mon, 12 Feb 2018 16:46:10 +0100 Subject: [PATCH] net/virtio: fix mbuf data offset for simple Rx [ upstream commit 9fedc2da388cbe261e43c7b1cafb7463ccce3747 ] The mbuf->data_off 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 valid and does not need to be updated. Fixes: cab0461234e7 ("virtio: fill Rx avail ring with blank mbufs") Signed-off-by: Olivier Matz Reviewed-by: Maxime Coquelin --- drivers/net/virtio/virtio_rxtx_simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/virtio/virtio_rxtx_simple.c b/drivers/net/virtio/virtio_rxtx_simple.c index a6c0b34e7..aa29b6eec 100644 --- a/drivers/net/virtio/virtio_rxtx_simple.c +++ b/drivers/net/virtio/virtio_rxtx_simple.c @@ -66,6 +66,7 @@ virtqueue_enqueue_recv_refill_simple(struct virtqueue *vq, uint16_t desc_idx; cookie->port = vq->rxq.port_id; + cookie->data_off = RTE_PKTMBUF_HEADROOM; desc_idx = vq->vq_avail_idx & (vq->vq_nentries - 1); dxp = &vq->vq_descx[desc_idx]; -- 2.14.2