Re: [dpdk-dev] [PATCH v4 2/5] vhost: add unsafe API to drain pkts in async vhost

2021-07-18 Thread Jiang, Cheng1
Hi Chenbo, I'll fix these issues in next version. For the name, I think maybe we can use 'rte_vhost_clear_queue_thread_unsafe'. Thanks, Cheng > -Original Message- > From: Xia, Chenbo > Sent: Friday, July 16, 2021 4:56 PM > To: Jiang, Cheng1 ; maxime.coque...@redhat.com > Cc: dev@dpdk.or

Re: [dpdk-dev] [PATCH v4 2/5] vhost: add unsafe API to drain pkts in async vhost

2021-07-16 Thread Xia, Chenbo
Hi Cheng, > -Original Message- > From: Jiang, Cheng1 > Sent: Friday, July 16, 2021 10:59 AM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; Yang, YvonneX > ; Jiang, Cheng1 > Subject: [PATCH v4 2/5] vhost: add unsafe API to drain pkts in async vhost > > App

[dpdk-dev] [PATCH v4 2/5] vhost: add unsafe API to drain pkts in async vhost

2021-07-15 Thread Cheng Jiang
Applications need to stop DMA transfers and finish all the in-flight pkts when in VM memory hot-plug case and async vhost is used. This patch is to provide an unsafe API to drain in-flight pkts which are submitted to DMA engine in vhost async data path. Signed-off-by: Cheng Jiang --- lib/vhost/r