> From: Intel-wired-lan <[email protected]> On Behalf Of > Magnus Karlsson > Sent: Wednesday, December 2, 2020 8:37 PM > To: Karlsson, Magnus <[email protected]>; Topel, Bjorn > <[email protected]>; [email protected]; Nguyen, Anthony L > <[email protected]> > Cc: [email protected]; [email protected] > Subject: [Intel-wired-lan] [PATCH net-next 2/3] ixgbe: optimize for > XDP_REDIRECT in xsk path > > From: Magnus Karlsson <[email protected]> > > Optimize ixgbe_run_xdp_zc() for the XDP program verdict being XDP_REDIRECT > in the zsk zero-copy path. This path is only used when having AF_XDP zero-copy > on and in that case most packets will be directed to user space. This > provides a > little under 100k extra packets in throughput on my server when running l2fwd > in > xdpsock. > > Signed-off-by: Magnus Karlsson <[email protected]> > --- > drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > Tested-by: Vishakha Jambekar <[email protected]>
