net/virtio: rationalize queue flushing
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 23 Jan 2018 15:54:42 +0000 (16:54 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commitbdb32afbb610292edbd43f730a8356f258919de4
tree52182f3f87ae1c050f7de9be19b887de0b3530ce
parent3669a1af893088064778f14fba0c2ca88819e095
net/virtio: rationalize queue flushing

Use the same kind of loop than in virtio_free_queues() and factorize
common code.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_ethdev.c