hselasky 36fd10650f For multicast functions in ibcore, verify that LIDs are multicast LIDs.
The Infiniband spec defines "A multicast address is defined by a
MGID and a MLID" (section 10.5).

Add check to verify that the MLID value is in the correct address
range.

RoCE Annex (A16.9.10/11) declares that during attach (detach) QP to a
multicast group, if the QP is associated with a RoCE port, the
multicast group MLID is unused and is ignored.

During attach or detach multicast, when the QP is associated with a
port, it is enough to check the port's link layer and validate the
LID only if it is Infiniband. Otherwise, avoid validating the
multicast LID.

Linux commit:
8561eae60ff9417a50fa1fb2b83ae950dc5c1e21
5236333592244557a19694a51337df6ac018f0a7

MFC after:		1 week
Sponsored by:		Mellanox Technologies
2018-07-17 09:04:36 +00:00
..
2018-07-16 13:38:16 +00:00
2018-07-10 14:04:52 +00:00
2018-06-14 07:12:10 +00:00
2018-07-14 10:14:59 +00:00
2018-07-17 02:20:51 +00:00
2018-07-15 00:31:17 +00:00
2018-03-24 21:30:24 +00:00
2018-05-25 08:44:00 +00:00