net/virtio: free in-order descriptors before device start
authorMarvin Liu <yong.liu@intel.com>
Mon, 2 Jul 2018 13:56:38 +0000 (21:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit7097ca1bcf76790e013f2e7dd8472b8a85793bd2
treee0bb0ffc136db744744c743d8f17684bfeda8326
parent488ed97a20c7e12f87dfb08c4cb82cbae811b21e
net/virtio: free in-order descriptors before device start

Add new function for freeing IN_ORDER descriptors. As descriptors will
be allocated and freed sequentially when IN_ORDER feature was
negotiated. There will be no need to utilize chain for freed descriptors
management, only index update is enough.

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/virtqueue.c
drivers/net/virtio/virtqueue.h