Re: [dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-28 Thread Ding, Xuan
Hi, > -Original Message- > From: Ding, Xuan > Sent: Tuesday, September 28, 2021 7:51 PM > To: Kevin Traynor ; dev@dpdk.org; > maxime.coque...@redhat.com; Xia, Chenbo > Cc: Hu, Jiayu ; Jiang, Cheng1 ; > Richardson, Bruce ; Pai G, Sunil > ; Wang, Yinan ; Yang, > YvonneX > Subject: RE: [PAT

Re: [dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-28 Thread Ding, Xuan
Hi Kevin, > -Original Message- > From: Kevin Traynor > Sent: Tuesday, September 28, 2021 5:18 PM > To: Ding, Xuan ; dev@dpdk.org; > maxime.coque...@redhat.com; Xia, Chenbo > Cc: Hu, Jiayu ; Jiang, Cheng1 ; > Richardson, Bruce ; Pai G, Sunil > ; Wang, Yinan ; Yang, YvonneX > > Subject: R

Re: [dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-28 Thread Kevin Traynor
On 28/09/2021 07:24, Xuan Ding wrote: 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 --- examples/vhost/main.c | 25 +++-- exampl

[dpdk-dev] [PATCH v5 2/2] examples/vhost: use API to check inflight packets

2021-09-27 Thread Xuan Ding
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 --- examples/vhost/main.c | 25 +++-- examples/vhost/main.h | 1 - 2 files changed, 1