]> git.droids-corp.org - dpdk.git/commit
examples/vhost: support clear in-flight for async dequeue
authorYuan Wang <yuanx.wang@intel.com>
Thu, 9 Jun 2022 17:34:04 +0000 (01:34 +0800)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 17 Jun 2022 13:19:58 +0000 (15:19 +0200)
commit4cc4f3ee12dad4b02dd1c00a8f418ddf8f135ce4
tree093f92f7ba7cb4008090e7b4163f3db73d08872c
parent3753ebf07501fae7e15ae9e654b0641249027181
examples/vhost: support clear in-flight for async dequeue

This patch allows vring_state_changed() to clear in-flight
dequeue packets. It also clears the in-flight packets in
a thread-safe way in destroy_device().

Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
examples/vhost/main.c