[dpdk-dev] [dpdk-stable] [PATCH v2 3/4] net/virtio: fix segment data len in mergeable packed Rx path
David Marchand
david.marchand at redhat.com
Wed Jun 5 11:34:59 CEST 2019
On Wed, Jun 5, 2019 at 10:11 AM Maxime Coquelin <maxime.coquelin at redhat.com>
wrote:
> Head segment data_len field is wrongly summed with the length
> of all the segments of the chain, whereas it should be the
> length of of the first segment only.
>
> Fixes: a76290c8f1cf ("net/virtio: implement Rx path for packed queues")
> Cc: stable at dpdk.org
>
> Reported-by: Yaroslav Brustinov <ybrustin at cisco.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
> drivers/net/virtio/virtio_rxtx.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/virtio/virtio_rxtx.c
> b/drivers/net/virtio/virtio_rxtx.c
> index 9469ecb743..33dbc78906 100644
> --- a/drivers/net/virtio/virtio_rxtx.c
> +++ b/drivers/net/virtio/virtio_rxtx.c
> @@ -1914,7 +1914,6 @@ virtio_recv_mergeable_pkts_packed(void *rx_queue,
> prev->next = rxm;
> prev = rxm;
> rx_pkts[nb_rx]->pkt_len += len[extra_idx];
> - rx_pkts[nb_rx]->data_len += len[extra_idx];
> extra_idx += 1;
> }
> seg_res -= rcv_cnt;
> --
> 2.21.0
>
And another one, line 1880 :-)
Reviewed-by: David Marchand <david.marchand at redhat.com>
--
David Marchand
More information about the dev
mailing list