Skip to content

Commit 84adeee

Browse files
Yossi EtiginRoland Dreier
authored andcommitted
RDMA/cma: Use rate from IPoIB broadcast when joining IPoIB multicast groups
When joining an IPoIB multicast group, use the same rate as in the broadcast group. Otherwise, if the RDMA CM creates this group before IPoIB does, it might get a different rate. This will cause IPoIB to fail joining to the same group later on, because IPoIB uses strict rate selection. Signed-off-by: Yossi Etigin <yosefe@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
1 parent 5d80f8e commit 84adeee

File tree

1 file changed

+4
-0
lines changed
  • drivers/infiniband/core

1 file changed

+4
-0
lines changed

drivers/infiniband/core/cma.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,6 +2713,10 @@ static int cma_join_ib_multicast(struct rdma_id_private *id_priv,
27132713
IB_SA_MCMEMBER_REC_FLOW_LABEL |
27142714
IB_SA_MCMEMBER_REC_TRAFFIC_CLASS;
27152715

2716+
if (id_priv->id.ps == RDMA_PS_IPOIB)
2717+
comp_mask |= IB_SA_MCMEMBER_REC_RATE |
2718+
IB_SA_MCMEMBER_REC_RATE_SELECTOR;
2719+
27162720
mc->multicast.ib = ib_sa_join_multicast(&sa_client, id_priv->id.device,
27172721
id_priv->id.port_num, &rec,
27182722
comp_mask, GFP_KERNEL,

0 commit comments

Comments
 (0)