> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of > Björn Töpel > Sent: Thursday, July 2, 2020 8:37 AM > To: intel-wired-lan@xxxxxxxxxxxxxxxx > Cc: netdev@xxxxxxxxxxxxxxx; bpf@xxxxxxxxxxxxxxx; Topel, Bjorn > <bjorn.topel@xxxxxxxxx>; Karlsson, Magnus <magnus.karlsson@xxxxxxxxx> > Subject: [Intel-wired-lan] [PATCH net-next 3/4] i40e, xsk: increase budget for > AF_XDP path > > From: Björn Töpel <bjorn.topel@xxxxxxxxx> > > The napi_budget, meaning the number of received packets that are allowed > to be processed for each napi invocation, takes into consideration that each > received packet is aimed for the kernel networking stack. > > That is not the case for the AF_XDP receive path, where the cost of each > packet is significantly less. Therefore, this commit disregards the napi budget > and increases it to 256. Processing 256 packets targeted for AF_XDP is still less > work than 64 (napi budget) packets going to the kernel networking stack. > > The performance for the rx_drop scenario is up 7%. > > Signed-off-by: Björn Töpel <bjorn.topel@xxxxxxxxx> > --- > drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Tested-by: Andrew Bowers <andrewx.bowers@xxxxxxxxx>