net/virtio: add in-order feature bit definition
authorMarvin Liu <yong.liu@intel.com>
Mon, 2 Jul 2018 13:56:35 +0000 (21:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit9f233f54aa556978f2a022505b50d1d3d485cbcf
treeeec8965c06a228392f010d3769450f6311e4b048
parent22d2e788400ffa29d8b1162fb90ee4908f68a5ea
net/virtio: add in-order feature bit definition

If VIRTIO_F_IN_ORDER has been negotiated, driver will use descriptors in
ring order: starting from offset 0 in the table, and wrapping around at
the end of the table. Also introduce use_inorder_[rt]x flag for
selection of IN_ORDER [RT]x handlers.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_pci.h
drivers/net/virtio/virtio_user_ethdev.c