]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/mlx4_core: Enhance the MAD_IFC wrapper to convert VF port to physical
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 21 May 2015 12:14:05 +0000 (15:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 03:05:09 +0000 (23:05 -0400)
commit7c35ef4525c3255c747b935fe5af9ef4d1fbbf93
tree13ec1be83797748261b060c348b0b9f6fc7ecd56
parent29044b58869b60b18071154446d39e83f31d9b67
net/mlx4_core: Enhance the MAD_IFC wrapper to convert VF port to physical

Single port VFs always provide port = 1 (even if the actual physical
port used is port 2). As such, we need to convert the port provided
by the VF to the physical port before calling into the firmware.

It turns out that the Linux mlx4 VF RoCE driver maintains a copy of
the GID table and hence this change became critical only for single
ported IB VFs, but it could be needed for other RoCE VF drivers too.

Fixes: 449fc48866f7 ('net/mlx4: Adapt code for N-Port VF')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c