RE: [PATCH] examples/vhost: Fix retry logic on Rx

2022-05-26 Thread Ling, WeiX
> -Original Message- > From: Wang, YuanX > Sent: Thursday, May 19, 2022 12:25 AM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; He, Xingguang > ; Ling, WeiX ; Wang, YuanX > ; sta...@dpdk.org > Subject: [PATCH] examples/vhos

[PATCH] examples/vhost: Fix retry logic on Rx

2022-05-18 Thread Yuan Wang
drain_eth_rx() uses rte_vhost_avail_entries() to calculate the available entries to determine if a retry is required. However, this function only works with split rings, and calculating packed rings will return the wrong value and cause unnecessary retries resulting in a significant performance pen