]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: Use actual number of PCI functions (PF + VFs) for alias GUID logic
authorMatan Barak <matanb@mellanox.com>
Sun, 23 Mar 2014 07:50:43 +0000 (09:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 00:48:05 +0000 (20:48 -0400)
commit63e4fded626a8012f41216cbc07b1a3bc06e8151
tree876b720c63a9f7532def084a3ccb03b4a64b10b2
parent198e55d51dca77b8a68f8f9431d4665e40168212
mlx4: Use actual number of PCI functions (PF + VFs) for alias GUID logic

The code which is dealing with SRIOV alias GUIDs in the mlx4 IB driver has some
logic which operated according to the maximal possible active functions (PF + VFs).

After the single port VFs code integration this resulted in a flow of false-positive
warnings going to the kernel log after the PF driver started the alias GUID work.

Fix it by referring to the actual number of functions.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/alias_GUID.c