> -----Original Message----- > From: Wang, YuanX <[email protected]> > Sent: Wednesday, June 22, 2022 5:26 PM > To: [email protected]; Xia, Chenbo <[email protected]>; > [email protected] > Cc: Hu, Jiayu <[email protected]>; He, Xingguang > <[email protected]>; Jiang, Cheng1 <[email protected]>; Wang, > YuanX <[email protected]>; [email protected]; Ling, WeiX > <[email protected]> > Subject: [PATCH v4] examples/vhost: fix retry logic on eth rx path > > 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 fix that by using the difference between tx/rx burst as the retry > condition. > > Fixes: be800696c26e ("examples/vhost: use burst enqueue and dequeue > from lib") > Cc: [email protected] > > Signed-off-by: Yuan Wang <[email protected]> > Tested-by: Wei Ling <[email protected]> > --- > V4: Fix fiexs tag. > V3: Fix mbuf index. > V2: Rebase to 22.07 rc1. > ---
Tested-by: Wei Ling <[email protected]>

