> From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of > Björn Töpel > Sent: Tuesday, August 25, 2020 4:36 AM > To: intel-wired-lan@xxxxxxxxxxxxxxxx > Cc: netdev@xxxxxxxxxxxxxxx; bpf@xxxxxxxxxxxxxxx; Topel, Bjorn > <bjorn.topel@xxxxxxxxx>; Karlsson, Magnus <magnus.karlsson@xxxxxxxxx>; > kuba@xxxxxxxxxx > Subject: [Intel-wired-lan] [PATCH net-next v2 3/3] i40e, xsk: move buffer > allocation out of the Rx processing loop > > From: Björn Töpel <bjorn.topel@xxxxxxxxx> > > Instead of checking in each iteration of the Rx packet processing > loop, move the allocation out of the loop and do it once for each napi > activation. > > For AF_XDP the rx_drop benchmark was improved by 6%. > > Signed-off-by: Björn Töpel <bjorn.topel@xxxxxxxxx> > --- > drivers/net/ethernet/intel/i40e/i40e_xsk.c | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > Tested-by: Aaron Brown <aaron.f.brown@xxxxxxxxx>