IB/core: Fix RoCE v1 multicast join logic issue
authorAlex Vesker <valex@mellanox.com>
Wed, 22 Jun 2016 14:27:23 +0000 (17:27 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 14:03:57 +0000 (10:03 -0400)
commitc65f6c5a3650876a69d1041a9d3c90986e9ca233
tree9db865f1f2b54ebfcccf6aa761cbdd86a3f51b2d
parentf336ae03149725bb5844166c7b04f7f65f17eec9
IB/core: Fix RoCE v1 multicast join logic issue

During multicast join of RoCEv1, IGMP join state and max hop limit
were updated incorrectly. IGMP join should be sent and marked as
joined only on RoCEv2 after a successful join. Max hops should be
updated to the hop limit on RoCEv2 regardless of the join state.

Fixes: bee3c3c91865 ('IB/cma: Join and leave multicast groups...')
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c