net/virtio: fix packed ring indirect descricptors setup
authorMarvin Liu <yong.liu@intel.com>
Mon, 28 Sep 2020 08:20:51 +0000 (16:20 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 21:16:55 +0000 (23:16 +0200)
commit381f39ebb78a35d8dcc2d4500419644c7de5400f
treec65c62489f58c7ee61711eca66ac7c0d3a3f9a8e
parentdc9e658013d9c2be798f9ff43b8cd2c63c844f17
net/virtio: fix packed ring indirect descricptors setup

Add packed indirect descriptors format into virtio Tx
region. When initializing vring, packed indirect
descriptors will be initialized if ring type is packed.

Fixes: bc80357cd677 ("net/virtio: drop unused field in Tx region structure")
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_ethdev.c
drivers/net/virtio/virtqueue.h