]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Handle well-known-gid in mad_demux processing
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 10 Nov 2016 09:30:57 +0000 (11:30 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:04:48 +0000 (20:04 -0500)
commit36a5710bc02e3298927919861de051a5a31fa771
tree95e2191f0a6579d7e80a4b9818da45f6c5579966
parent4fd41bcbd84e6b76590249376bc39542ac4fff3a
IB/mlx4: Handle well-known-gid in mad_demux processing

If OpenSM runs over a ConnectX-3, and there are ConnectX-4 or Connect-IB
VFs active on the network, the OpenSM will receive QP1 packets containing
a GRH where the destination GID is the "Well-Known GID" -- which is not a
GID in the HCA Port's GID Table.

This GID must be tested-for separately -- and packets which contain
this destination GID should be routed to slave 0 (the PF).

Fixes: be57ad877da1 ('IB/mlx4: SR-IOV multiplex and demultiplex MADs')
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/mad.c