]> 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)
commit61322ec7f77b2343d005b28d168eda1683180e5b
tree021529c5a5361a96babba174b0588174f35bb79b
parent96f28fe4ee9d2e1202e74ff9a307f1ec77faf0e1
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