[PATCH v5 1/2] vhost: support clear in-flight packets for async dequeue
Hu, Jiayu
jiayu.hu at intel.com
Wed Jun 15 01:56:05 CEST 2022
> -----Original Message-----
> From: Wang, YuanX <yuanx.wang at intel.com>
> Sent: Friday, June 10, 2022 1:34 AM
> To: maxime.coquelin at redhat.com; Xia, Chenbo <chenbo.xia at intel.com>;
> dev at dpdk.org
> Cc: Hu, Jiayu <jiayu.hu at intel.com>; Ding, Xuan <xuan.ding at intel.com>; Pai
> G, Sunil <sunil.pai.g at intel.com>; Wang, YuanX <yuanx.wang at intel.com>
> Subject: [PATCH v5 1/2] vhost: support clear in-flight packets for async
> dequeue
>
> 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 lock.
>
> These APIs maybe used to clean up packets in the async channel to prevent
> packet loss when the device state changes or when the device is destroyed.
>
> Signed-off-by: Yuan Wang <yuanx.wang at intel.com>
> ---
> doc/guides/prog_guide/vhost_lib.rst | 8 ++-
> doc/guides/rel_notes/release_22_07.rst | 4 ++
> lib/vhost/rte_vhost_async.h | 25 +++++++
> lib/vhost/version.map | 1 +
> lib/vhost/virtio_net.c | 93 +++++++++++++++++++++++++-
> 5 files changed, 128 insertions(+), 3 deletions(-)
>
Reviewed-by: Jiayu Hu <jiayu.hu at intel.com>
Thanks,
Jiayu
More information about the dev
mailing list