From: Benjamin Poirier Date: Tue, 28 Apr 2015 21:49:29 +0000 (-0700) Subject: mlx4: Fix tx ring affinity_mask creation X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2~41^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42eab005a5dd5d7ea2b0328aecc4d6cc0c23c9c2;p=pandora-kernel.git mlx4: Fix tx ring affinity_mask creation 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 Acked-by: Ido Shamay Fixes: d03a68f ("net/mlx4_en: Configure the XPS queue mapping on driver load") Signed-off-by: David S. Miller --- Reading git-diff-tree failed