OSDN Git Service

net/mlx5e: Expand XPS cpumask to cover all online cpus
authorMoshe Shemesh <moshe@mellanox.com>
Thu, 25 Oct 2018 12:03:38 +0000 (15:03 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 25 Jan 2019 20:16:14 +0000 (12:16 -0800)
commit149e566fef8120a00c49f24e8f570186200e1e81
tree16976b5995040af194f145963ccec46dfa5c71a8
parent79d356ef2c10b19fdd3269b975579aa0be21710c
net/mlx5e: Expand XPS cpumask to cover all online cpus

Currently we have one cpu in XPS cpumask per tx queue, this is good
enough for default configuration where there is a tx queue per cpu.
However, once configuration changes to use less tx queues, part of the
cpus are not XPS-mapped and so the select queue decision falls back to
hash calculation and balancing is not guaranteed.

Expand XPS cpumask to enable using all cpus even when number of tx
queues is smaller than number of cpus.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c