summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2015-04-28 14:49:29 -0700
committerLuis Henriques <luis.henriques@canonical.com>2015-05-12 09:36:33 +0100
commit0502c51a4a61b987a2ea4c7c60c3dee6c558bbdb (patch)
treec4795d1bf2d10a1292058c568f9fb8bdbc74dfae /include
parent56a11552bca52866348e6a159f10ecae2d3f2c25 (diff)
mlx4: Fix tx ring affinity_mask creation
commit 42eab005a5dd5d7ea2b0328aecc4d6cc0c23c9c2 upstream. By default, the number of tx queues is limited by the number of online cpus in mlx4_en_get_profile(). However, this limit no longer holds after the ethtool .set_channels method has been called. In that situation, the driver may access invalid bits of certain cpumask variables when queue_index >= nr_cpu_ids. Signed-off-by: Benjamin Poirier <bpoirier@suse.de> Acked-by: Ido Shamay <idos@mellanox.com> Fixes: d03a68f ("net/mlx4_en: Configure the XPS queue mapping on driver load") Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions