RE: [PATCH v4 1/2] vhost: support clear in-flight packets for async dequeue

2022-06-09 Thread Wang, YuanX
Hi Jiayu, > -Original Message- > From: Hu, Jiayu > Sent: Thursday, June 9, 2022 3:06 PM > To: Wang, YuanX ; maxime.coque...@redhat.com; > Xia, Chenbo ; dev@dpdk.org > Cc: Ding, Xuan ; Pai G, Sunil > Subject: RE: [PATCH v4 1/2] vhost: support clear in-flight packet

RE: [PATCH v4 1/2] vhost: support clear in-flight packets for async dequeue

2022-06-09 Thread Hu, Jiayu
Hi Yuan, > -Original Message- > From: Wang, YuanX > Sent: Tuesday, June 7, 2022 1:45 AM > To: maxime.coque...@redhat.com; Xia, Chenbo ; > dev@dpdk.org > Cc: Hu, Jiayu ; Ding, Xuan ; Pai > G, Sunil ; Wang, YuanX > Subject: [PATCH v4 1/2] vhost: support clear in-

[PATCH v4 1/2] vhost: support clear in-flight packets for async dequeue

2022-06-06 Thread Yuan Wang
rte_vhost_clear_queue_thread_unsafe() supports to clear in-flight packets for async enqueue only. But after supporting async dequeue, this API should support async dequeue too. This patch also adds the thread-safe version of this API, the difference between the two API is that thread safety uses l