]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit8cbf74149903382cf422c653d4ee8fb2f44e3ec8
tree021529c5a5361a96babba174b0588174f35bb79b
parentf0064bfd969bea0d65ef20d191bea8b7494b4ec8
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