Skip to content

Commit a880f81

Browse files
dtatuleaSaeed Mahameed
authored andcommitted
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>
1 parent 40afb3b commit a880f81

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ static int mlx5e_alloc_rq(struct mlx5e_params *params,
857857
pp_params.pool_size = pool_size;
858858
pp_params.nid = node;
859859
pp_params.dev = rq->pdev;
860+
pp_params.napi = rq->cq.napi;
860861
pp_params.dma_dir = rq->buff.map_dir;
861862
pp_params.max_len = PAGE_SIZE;
862863

0 commit comments

Comments
 (0)