]> git.baikalelectronics.ru Git - kernel.git/commit
i40e, xsk: move buffer allocation out of the Rx processing loop
authorBjörn Töpel <bjorn.topel@intel.com>
Tue, 25 Aug 2020 11:35:56 +0000 (13:35 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 14 Sep 2020 16:45:35 +0000 (09:45 -0700)
commitf27387e61f9554f29112b952455d0a4f12210613
tree021529c5a5361a96babba174b0588174f35bb79b
parent30523c47c6646ddb5318efd01d6a4f4c52fe8adc
i40e, xsk: move buffer allocation out of the Rx processing loop

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@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_xsk.c