IB/ipoib: Support SendOnlyFullMember MCG for SendOnly join
authorErez Shitrit <erezsh@mellanox.com>
Wed, 25 May 2016 19:02:07 +0000 (22:02 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 25 May 2016 19:39:03 +0000 (15:39 -0400)
commit3b56113016400a4e2b9870c368ebb8080cb5739b
tree0d1efe0c85e2829864c4802cf3964a4268458c74
parentcd6e9b7ef90515cb90962059ffb03b679de27f99
IB/ipoib: Support SendOnlyFullMember MCG for SendOnly join

Check (via an SA query) if the SM supports the new option for SendOnly
multicast joins.
If the SM supports that option it will use the new join state to create
such multicast group.
If SendOnlyFullMember is supported, we wouldn't use faked FullMember state
join for SendOnly MCG, use the correct state if supported.

This check is performed at every invocation of mcast_restart task, to be
sure that the driver stays in sync with the current state of the SM.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c