virtio: fill Rx avail ring with blank mbufs
authorHuawei Xie <huawei.xie@intel.com>
Thu, 29 Oct 2015 14:53:22 +0000 (22:53 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 Nov 2015 14:32:19 +0000 (15:32 +0100)
commitcab0461234e7650c521bbfbb9748a730def053be
treeb2c0e07457ce0dffe16840247d666079de32d5cd
parentb4ae9c505f2ea88cfc6fb979cc1f0310a3e40260
virtio: fill Rx avail ring with blank mbufs

Add software RX ring in virtqueue.
Add fake_mbuf in virtqueue for wraparound processing.
Fill avail ring with blank mbufs in virtio_dev_vring_start

Add virtio_rxtx.h header file for RTE_VIRTIO_PMD_MAX_BURST.
Would move all rx/tx related declarations into this header file in future.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
drivers/net/virtio/Makefile
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx.h [new file with mode: 0644]
drivers/net/virtio/virtio_rxtx_simple.c [new file with mode: 0644]
drivers/net/virtio/virtqueue.h