]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: SF, Use all available cpu for setting cpu affinity
authorShay Drory <shayd@nvidia.com>
Tue, 23 Nov 2021 10:50:19 +0000 (12:50 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 7 Jan 2022 00:22:52 +0000 (16:22 -0800)
commitb5becb56bed017f745711cd7451a829a7584ea21
tree9775794cf680d73448f1834424290ab4f756a827
parentaa1e187199ac7e924c3ca2c15a2fae9e9d98e2f0
net/mlx5: SF, Use all available cpu for setting cpu affinity

Currently all SFs are using the same CPUs. Spreading SF over CPUs, in
round-robin manner, in order to achieve better distribution of the SFs
over available CPUs.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.h