]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebd90624061f0f9dec10927177b740bcac21d048
tree16976b5995040af194f145963ccec46dfa5c71a8
parent986fb4398f4c7f64d884a70ff6d861bba4974fbb
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