]> www.infradead.org Git - users/willy/xarray.git/commit
net/mlx5e: RX, Re-place page pool numa node change logic
authorTariq Toukan <tariqt@nvidia.com>
Wed, 19 May 2021 12:16:52 +0000 (15:16 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 3 Jun 2021 20:10:19 +0000 (13:10 -0700)
commit8ec5d438a3c24e0ebd5df4e94b41a22e4bc0e028
tree373ff42150210519d47c03f69571a8034e82e5df
parent771a563ea05b08dee1a1d7c6128e3307c0ba3830
net/mlx5e: RX, Re-place page pool numa node change logic

Move the logic that updates the page pool upon changes in numa node.
Before this patch, logic was placed in the RX polling function, being
called also when no RX traffic, wasting cpu cycles.  Here we move it to
the RX post_wqes function, to be called only when new RX descriptors are
going to be allocated.

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