[2/2] example/vhost: support to clear in-flight packets for async dequeue
Checks
Commit Message
This patch allows vring_state_changed() to clear
in-flight dequeue packets.
Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
---
examples/vhost/main.c | 3 ---
1 file changed, 3 deletions(-)
@@ -1767,9 +1767,6 @@ vring_state_changed(int vid, uint16_t queue_id, int enable)
if (!vdev)
return -1;
- if (queue_id != VIRTIO_RXQ)
- return 0;
-
if (dma_bind[vid2socketid[vid]].dmas[queue_id].async_enabled) {
if (!enable)
vhost_clear_queue_thread_unsafe(vdev, queue_id);