net/virtio: fix descriptor addressed in Tx
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 15 Oct 2019 08:11:27 +0000 (09:11 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commitbe048a1aaa7276cc99a5a6a30e7825cfcb523112
treec5cf1c51578186802fcddcc59ba866dcb838331c
parent7d0963d74a9fcb716c59819f611ae43c7d4a66e1
net/virtio: fix descriptor addressed in Tx

Previous fix removes usage of rte_pktmbuf_prepend() to get pointer
to virtio net header which changes mbuf data_off and data_len.
Size of virtio net header is added to segment length when Tx descriptor
is composed, but segment address (calculated using data_off) is not
adjusted to take size of virtio net header into account.

Fixes: 1ae55ad38e5e ("net/virtio: fix mbuf data and packet length mismatch")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/virtio/virtio_rxtx.c