From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id B19271B2D1; Mon, 12 Feb 2018 16:11:38 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 15FC2818595B; Mon, 12 Feb 2018 15:11:38 +0000 (UTC) Received: from [10.36.112.42] (ovpn-112-42.ams2.redhat.com [10.36.112.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E9D6C2166BAE; Mon, 12 Feb 2018 15:11:36 +0000 (UTC) To: Olivier Matz , dev@dpdk.org Cc: Yuanhan Liu , Tiwei Bie , stable@dpdk.org References: <20180212131636.25858-1-olivier.matz@6wind.com> From: Maxime Coquelin Message-ID: <3d3f3819-af84-0203-8d01-a7448d72a3bf@redhat.com> Date: Mon, 12 Feb 2018 16:11:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180212131636.25858-1-olivier.matz@6wind.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 12 Feb 2018 15:11:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 12 Feb 2018 15:11:38 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [PATCH] net/virtio: fix mbuf data offset for simple Rx function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2018 15:11:38 -0000 Hi Olivier, On 02/12/2018 02:16 PM, Olivier Matz wrote: > 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") > Cc: stable@dpdk.org > > Signed-off-by: Olivier Matz > --- > drivers/net/virtio/virtio_rxtx_simple.c | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Maxime Coquelin Thanks! Maxime