OSDN Git Service

net/mlx5: Introduce mlx5_cpumask_default_spread
authorMaher Sanalla <msanalla@nvidia.com>
Mon, 12 Jun 2023 08:50:10 +0000 (11:50 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 17:53:51 +0000 (10:53 -0700)
commitddd2c79da02021153dc8674e5a7e9748e56c1240
treec4e3fdd4ee4f7dfdf5dee52a7f552b9cff0dfe4d
parente3e56775e91398df95c610bfc9bf4025db7dcf66
net/mlx5: Introduce mlx5_cpumask_default_spread

For better code readability in the completion IRQ request code, define
the cpu lookup per completion vector logic in a separate function.

The new method mlx5_cpumask_default_spread() given a vector index 'n'
will return the 'nth' cpu. This new method will be used also in the next
patch.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c