> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Magnus Karlsson > Sent: Tuesday, June 23, 2020 2:44 AM > To: Karlsson, Magnus <[email protected]>; Topel, Bjorn > <[email protected]>; [email protected]; Kirsher, Jeffrey T > <[email protected]>; Samudrala, Sridhar > <[email protected]> > Cc: [email protected]; Fijalkowski, Maciej > <[email protected]>; [email protected] > Subject: [Intel-wired-lan] [PATCH net-next v2 3/3] i40e: move check of full Tx > ring to outside of send loop > > Move the check if the Hw Tx ring is full to outside the send loop. Currently > it > is checked for every single descriptor that we send. Instead, tell the send > loop to only process a maximum number of packets equal to the number of > available slots in the Tx ring. This way, we can remove the check inside the > send loop to and gain some performance. > > Suggested-by: Sridhar Samudrala <[email protected]> > Signed-off-by: Magnus Karlsson <[email protected]> > --- > drivers/net/ethernet/intel/i40e/i40e_xsk.c | 20 +++++--------------- > 1 file changed, 5 insertions(+), 15 deletions(-)
Tested-by: Andrew Bowers <[email protected]>
