]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mlx4: Fix tx ring affinity_mask creation
authorBenjamin Poirier <bpoirier@suse.de>
Tue, 28 Apr 2015 21:49:29 +0000 (14:49 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 May 2015 11:07:53 +0000 (07:07 -0400)
commit09f2ece83a8589f9e65cf75bf7d6aac9ec32fe67
tree74f8969bf4710ba365bccae119e82e26db05723f
parent5c0ac4b58b3a99ff1c624b799f416c2afc31e845
mlx4: Fix tx ring affinity_mask creation

[ Upstream commit 42eab005a5dd5d7ea2b0328aecc4d6cc0c23c9c2 ]

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: Sasha Levin <sasha.levin@oracle.com>
drivers/net/ethernet/mellanox/mlx4/en_tx.c