net/mlx5e: RX, Hook NAPIs to page pools
authorDragos Tatulea <dtatulea@nvidia.com>
Thu, 13 Apr 2023 14:14:05 +0000 (17:14 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 21 Apr 2023 01:35:50 +0000 (18:35 -0700)
commita880f814739c84fa11e17ac87c91fb711c185610
tree46ae3ba3698d4fd44cab4c4a43c0ddf4ce5d4891
parent40afb3b14496afb01d5b3d028444e09d29b95559
net/mlx5e: RX, Hook NAPIs to page pools

Linking the NAPI to the rq page_pool to improve page_pool cache
usage during skb recycling.

Here are the observed improvements for a iperf single stream
test case:

- For 1500 MTU and legacy rq, seeing a 20% improvement of cache usage.

- For 9K MTU, seeing 33-40 % page_pool cache usage improvements for
both striding and legacy rq (depending if the application is running on
the same core as the rq or not).

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c