RE: [PATCH v3] examples/vhost: fix retry logic on eth rx path

2022-06-22 Thread Wang, YuanX
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Wednesday, June 22, 2022 3:24 PM > To: Wang, YuanX ; Xia, Chenbo > ; dev@dpdk.org > Cc: Hu, Jiayu ; He, Xingguang > ; sta...@dpdk.org; Ling, WeiX > > Subject: Re: [PATCH v3] examples/vhost: fix

Re: [PATCH v3] examples/vhost: fix retry logic on eth rx path

2022-06-22 Thread Maxime Coquelin
On 6/22/22 08:27, Yuan Wang wrote: 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 re

[PATCH v3] examples/vhost: fix retry logic on eth rx path

2022-06-21 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