[RFC 2/2] examples/vhost: use API to check inflight packets

Maxime Coquelin maxime.coquelin at redhat.com
Mon Mar 28 17:19:10 CEST 2022


Hi Xuan,

On 2/16/22 08:04, xuan.ding at intel.com wrote:
> From: Xuan Ding <xuan.ding at intel.com>
> 
> In async data path, call rte_vhost_async_get_inflight_thread_unsafe()
> API to directly return the number of inflight packets instead of
> maintaining a local variable.
> 
> Signed-off-by: Xuan Ding <xuan.ding at intel.com>
> ---
>   examples/vhost/main.c | 28 +++++++++++++++-------------
>   examples/vhost/main.h |  1 -
>   2 files changed, 15 insertions(+), 14 deletions(-)
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list