]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix the validations of a multicast LID in attach or detach operations
authorNoa Osherovich <noaos@mellanox.com>
Mon, 12 Jun 2017 08:14:02 +0000 (11:14 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:40:23 +0000 (10:40 -0400)
commit88c3c56f2c24b43b15b2f733b8ed39a8420dd3c0
tree09448c5fdf0b5e0e057f4102ac9b94c71761be52
parent6186b57c29968cfd3bc2c040bda2b50a60d9e84d
IB/core: Fix the validations of a multicast LID in attach or detach operations

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.

Fixes: 501660a5bab5 ("IB/core: For multicast functions, verify that LIDs are multicast LIDs")
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c