net/mlx5: Use cpumask_local_spread() instead of custom code
authorErwan Velu <erwanaliasr1@gmail.com>
Mon, 12 Aug 2024 08:22:42 +0000 (10:22 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Aug 2024 01:57:01 +0000 (18:57 -0700)
commite5efc2311cc437e2b565d164a3de884fa33f13e9
treed9ee87ceb7aa71032108b0966b081cfca3cbe31d
parent8ea71e23f821cd593549bc22d731752f30758567
net/mlx5: Use cpumask_local_spread() instead of custom code

Commit 2acda57736de ("net/mlx5e: Improve remote NUMA preferences used for the IRQ affinity hints")
removed the usage of cpumask_local_spread().

The issue explained in this commit was fixed by
commit 406d394abfcd ("cpumask: improve on cpumask_local_spread() locality").

Since this commit, mlx5_cpumask_default_spread() is having the same
behavior as cpumask_local_spread().

This commit is about :
- removing the specific logic and use cpumask_local_spread() instead
- passing mlx5_core_dev as argument to more flexibility

mlx5_cpumask_default_spread() is kept as it could be useful for some
future specific quirks.

Signed-off-by: Erwan Velu <e.velu@criteo.com>
Acked-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20240812082244.22810-1-e.velu@criteo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eq.c