> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-boun...@osuosl.org> On Behalf Of > Björn Töpel > Sent: Thursday, July 2, 2020 8:37 AM > To: intel-wired-...@lists.osuosl.org > Cc: netdev@vger.kernel.org; b...@vger.kernel.org; Topel, Bjorn > <bjorn.to...@intel.com>; Karlsson, Magnus <magnus.karls...@intel.com> > Subject: [Intel-wired-lan] [PATCH net-next 3/4] i40e, xsk: increase budget for > AF_XDP path > > From: Björn Töpel <bjorn.to...@intel.com> > > 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.to...@intel.com> > --- > drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bow...@intel.com>