Ping.
> -----Original Message----- > From: Jerin Jacob <[email protected]> > Sent: Thursday, June 2, 2022 1:19 PM > To: Rahul Bhansali <[email protected]> > Cc: dpdk-dev <[email protected]>; Bruce Richardson > <[email protected]>; Thomas Monjalon <[email protected]>; > Ferruh Yigit <[email protected]>; Ajit Khaparde > <[email protected]>; Andrew Boyer <[email protected]>; > Andrew Rybchenko <[email protected]>; Beilei Xing > <[email protected]>; Chas Williams <[email protected]>; Xia, Chenbo > <[email protected]>; Ciara Loftus <[email protected]>; Devendra > Singh Rawat <[email protected]>; Ed Czeck > <[email protected]>; Evgeny Schemeilin <[email protected]>; > Gaetan Rivet <[email protected]>; Gagandeep Singh <[email protected]>; > Guoyang Zhou <[email protected]>; Haiyue Wang > <[email protected]>; Harman Kalra <[email protected]>; > [email protected]; Hemant Agrawal <[email protected]>; > Hyong Youb Kim <[email protected]>; Igor Chauskin <[email protected]>; > Igor Russkikh <[email protected]>; Jakub Grajciar <[email protected]>; > Jasvinder Singh <[email protected]>; Jian Wang > <[email protected]>; Jiawen Wu <[email protected]>; Jingjing > Wu <[email protected]>; John Daley <[email protected]>; John Miller > <[email protected]>; John W. Linville <[email protected]>; > Wiles, Keith <[email protected]>; Kiran Kumar Kokkilagadda > <[email protected]>; Lijun Ou <[email protected]>; Liron Himi > <[email protected]>; Long Li <[email protected]>; Marcin Wojtas > <[email protected]>; Martin Spinler <[email protected]>; Matan Azrad > <[email protected]>; Matt Peters <[email protected]>; Maxime > Coquelin <[email protected]>; Michal Krawczyk > <[email protected]>; Min Hu (Connor <[email protected]>; Pradeep > Kumar Nalla <[email protected]>; Nithin Kumar Dabilpuram > <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang > <[email protected]>; Radha Chintakuntla <[email protected]>; Rahul > Lakkireddy <[email protected]>; Rasesh Mody > <[email protected]>; Rosen Xu <[email protected]>; Sachin Saxena > <[email protected]>; Satha Koteswara Rao Kottidi > <[email protected]>; Shahed Shaikh <[email protected]>; Shai > Brandes <[email protected]>; Shepard Siegel > <[email protected]>; Somalapuram Amaranath > <[email protected]>; Somnath Kotur <[email protected]>; > Stephen Hemminger <[email protected]>; Steven Webster > <[email protected]>; Sunil Kumar Kori <[email protected]>; > Tetsuya Mukawa <[email protected]>; Veerasenareddy Burru > <[email protected]>; Viacheslav Ovsiienko <[email protected]>; Xiao > Wang <[email protected]>; Xiaoyun Wang > <[email protected]>; Yisen Zhuang > <[email protected]>; Yong Wang <[email protected]>; Ziyang > Xuan <[email protected]> > Subject: [EXT] Re: [PATCH] examples/l2fwd: add check of Rx packets count > > External Email > > ---------------------------------------------------------------------- > On Wed, May 25, 2022 at 2:44 PM Rahul Bhansali <[email protected]> > wrote: > > > > An additional check is added to avoid extra processing if receive > > packets are 0. > > > > Performance impact: with Marvell OCTEON TX2 platform, observed an > > improvement by ~14%. > > > > Signed-off-by: Rahul Bhansali <[email protected]> > > Acked-by: Jerin Jacob <[email protected]> > > > > --- > > examples/l2fwd/main.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index > > 281c6b7a3f..28c498712e 100644 > > --- a/examples/l2fwd/main.c > > +++ b/examples/l2fwd/main.c > > @@ -286,6 +286,9 @@ l2fwd_main_loop(void) > > nb_rx = rte_eth_rx_burst(portid, 0, > > pkts_burst, > > MAX_PKT_BURST); > > > > + if (unlikely(nb_rx == 0)) > > + continue; > > + > > port_statistics[portid].rx += nb_rx; > > > > for (j = 0; j < nb_rx; j++) { > > -- > > 2.25.1 > >

