]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Use the VF base-port when demuxing mad from wire
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 6 Dec 2015 16:07:42 +0000 (18:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 03:40:45 +0000 (22:40 -0500)
commit74fd9a35ff6e6d3a53588378c03d73338900de7f
treea04dcf20ba101fc2326e11a7109e3e1d2c95550a
parent6ae0b5d6aeaf91a006c1504b7022843c9117fde2
IB/mlx4: Use the VF base-port when demuxing mad from wire

Under HA mode, it's possible that the VF registered its GID
(and expects to get mads through the PV scheme) on a port which is
different from the one this mad arrived on, due to HA fail over.

Therefore, if the gid is not matched on the port that the packet arrived
on, check for a match on the other port if HA mode is active -- and if a
match is found on the other port, continue processing the mad using that
other port.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/mad.c