[dpdk-dev] [PATCH v2 1/3] net/virtio: fix mbuf data offset for simple Rx function
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Feb 13 09:53:10 CET 2018
On 02/12/2018 04:46 PM, Maxime Coquelin wrote:
> From: Olivier Matz <olivier.matz at 6wind.com>
>
> 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 at dpdk.org
>
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
> ---
> drivers/net/virtio/virtio_rxtx_simple.c | 1 +
> 1 file changed, 1 insertion(+)
>
I forgot to apply my r-b when re-posting:
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Maxime
More information about the dev
mailing list