net/virtio: fix indirect descriptors in packed datapaths
authorMarvin Liu <yong.liu@intel.com>
Mon, 28 Sep 2020 08:20:52 +0000 (16:20 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 21:16:56 +0000 (23:16 +0200)
commitb473061b0e1dca05edd1460aff2ab075b920f0ca
treea67a8a3358707c6f29b335f763fd0b922767aad8
parent381f39ebb78a35d8dcc2d4500419644c7de5400f
net/virtio: fix indirect descriptors in packed datapaths

Like split ring, packed ring will utilize indirect ring
elements when queuing mbufs need multiple descriptors.
Thus each packet will take only one slot when having
multiple segments.

Fixes: 892dc798fa9c ("net/virtio: implement Tx path for packed queues")
Cc: stable@dpdk.org
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx_packed_avx.c
drivers/net/virtio/virtqueue.h