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

2022-03-28 Thread Ding, Xuan
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Monday, March 28, 2022 11:05 PM > To: Ding, Xuan ; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Pai G, Sunil > > Subject: Re: [RFC 1/2] vhost: add unsafe API to check inflight packets > > Hi

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

2022-03-28 Thread Maxime Coquelin
Hi Xuan, On 2/16/22 08:04, 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

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

2022-02-15 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