]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51151210c2b1c000200b8c2bdb0c600bc8b27fab
tree9db865f1f2b54ebfcccf6aa761cbdd86a3f51b2d
parentf7836b6a744e506d14a6011f2573cfa46d248549
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: fb8e6e37853b ('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