]> git.baikalelectronics.ru Git - kernel.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)
commit79203752d55ce918b18c50161cb7dc71268a756b
tree373ff42150210519d47c03f69571a8034e82e5df
parent52b52c34e94ee9f55921259d8ebbc2aaca165e62
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