> -----Original Message-----
> From: Wang, YuanX <[email protected]>
> Sent: Thursday, May 19, 2022 12:25 AM
> To: [email protected]; Xia, Chenbo <[email protected]>
> Cc: [email protected]; Hu, Jiayu <[email protected]>; He, Xingguang
> <[email protected]>; Ling, WeiX <[email protected]>; Wang, YuanX
> <[email protected]>; [email protected]
> Subject: [PATCH] examples/vhost: Fix retry logic on Rx
> 
> 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 penalty.
> 
> This patch uses the difference between tx burst and rx burst as a retry
> condition, and introduces enqueue_pkts() to reduce code duplication.
> 
> Fixes: 4ecf22e356 ("vhost: export device id as the interface to applications")
> Cc: [email protected]
> 
> Signed-off-by: Yuan Wang <[email protected]>
> ---

Tested-by: Wei Ling <[email protected]>

Reply via email to