]> git.droids-corp.org - dpdk.git/commit
examples/vhost: use API to check in-flight packets
authorXuan Ding <xuan.ding@intel.com>
Fri, 8 Apr 2022 10:22:14 +0000 (10:22 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:15:38 +0000 (21:15 +0200)
commita548f7d53a588566fe633b3c5d1b3aaa40069005
treebee49aed811ede43d780f6327fec331b220ff0a3
parent1419e8d9d88ea90410ba61e68ac49f759d6c5ef9
examples/vhost: use API to check in-flight packets

In async data path, call rte_vhost_async_get_inflight_thread_unsafe()
API to directly return the number of in-flight packets instead of
maintaining a local variable.

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/main.c
examples/vhost/main.h