RE: [PATCH v1 1/2] vhost: add unsafe API to check inflight packets

2022-05-05 Thread Ding, Xuan
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Friday, May 6, 2022 3:21 AM > To: Ding, Xuan ; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Jiang, Cheng1 > ; Pai G, Sunil > Subject: Re: [PATCH v1 1/2] vhost: add unsafe API to check inflight packets

Re: [PATCH v1 1/2] vhost: add unsafe API to check inflight packets

2022-05-05 Thread Maxime Coquelin
On 4/8/22 12:22, xuan.d...@intel.com wrote: From: Xuan Ding In async data path, when vring state changes or device is destroyed, it is necessary to know the number of inflight packets in DMA engine. This patch provides a thread unsafe API to return the number of inflight packets for a vhost

[PATCH v1 1/2] vhost: add unsafe API to check inflight packets

2022-04-08 Thread xuan . ding
From: Xuan Ding In async data path, when vring state changes or device is destroyed, it is necessary to know the number of inflight packets in DMA engine. This patch provides a thread unsafe API to return the number of inflight packets for a vhost queue without using any lock. Signed-off-by: Xua