aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorDotan Barak <dotanb@dev.mellanox.co.il>2012-08-30 05:09:55 -0400
committerRoland Dreier <roland@purestorage.com>2012-09-30 23:31:47 -0400
commit2a22fb8c69275903b8be4c6203aa08bfac374844 (patch)
tree8c86b58f1b63d07430a0da4b24c6156939daeb5e /drivers/infiniband/core
parentd8c9166961437263b8dd97ff8341c3335d894740 (diff)
RDMA/cma: Use consistent component mask for IPoIB port space multicast joins
CMA multicast joins for the IPoIB port space need to use the same component mask used by the ipoib driver. Otherwise, it's possible for the CMA to create a group to which a join made by ipoib will fail, or vise-versa. Some of the component mask fields set by ipoib weren't set by the CMA, fix that. Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il> Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Acked-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r--drivers/infiniband/core/cma.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 7172559ce0c1..26b37603dcf1 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -3058,7 +3058,10 @@ static int cma_join_ib_multicast(struct rdma_id_private *id_priv,
3058 3058
3059 if (id_priv->id.ps == RDMA_PS_IPOIB) 3059 if (id_priv->id.ps == RDMA_PS_IPOIB)
3060 comp_mask |= IB_SA_MCMEMBER_REC_RATE | 3060 comp_mask |= IB_SA_MCMEMBER_REC_RATE |
3061 IB_SA_MCMEMBER_REC_RATE_SELECTOR; 3061 IB_SA_MCMEMBER_REC_RATE_SELECTOR |
3062 IB_SA_MCMEMBER_REC_MTU_SELECTOR |
3063 IB_SA_MCMEMBER_REC_MTU |
3064 IB_SA_MCMEMBER_REC_HOP_LIMIT;
3062 3065
3063 mc->multicast.ib = ib_sa_join_multicast(&sa_client, id_priv->id.device, 3066 mc->multicast.ib = ib_sa_join_multicast(&sa_client, id_priv->id.device,
3064 id_priv->id.port_num, &rec, 3067 id_priv->id.port_num, &rec,