diff options
-rw-r--r-- | drivers/infiniband/core/cma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index f8d69b3fa307..bb27ce911936 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
@@ -1492,11 +1492,13 @@ static int cma_query_ib_route(struct rdma_id_private *id_priv, int timeout_ms, | |||
1492 | ib_addr_get_dgid(addr, &path_rec.dgid); | 1492 | ib_addr_get_dgid(addr, &path_rec.dgid); |
1493 | path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(addr)); | 1493 | path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(addr)); |
1494 | path_rec.numb_path = 1; | 1494 | path_rec.numb_path = 1; |
1495 | path_rec.reversible = 1; | ||
1495 | 1496 | ||
1496 | id_priv->query_id = ib_sa_path_rec_get(&sa_client, id_priv->id.device, | 1497 | id_priv->query_id = ib_sa_path_rec_get(&sa_client, id_priv->id.device, |
1497 | id_priv->id.port_num, &path_rec, | 1498 | id_priv->id.port_num, &path_rec, |
1498 | IB_SA_PATH_REC_DGID | IB_SA_PATH_REC_SGID | | 1499 | IB_SA_PATH_REC_DGID | IB_SA_PATH_REC_SGID | |
1499 | IB_SA_PATH_REC_PKEY | IB_SA_PATH_REC_NUMB_PATH, | 1500 | IB_SA_PATH_REC_PKEY | IB_SA_PATH_REC_NUMB_PATH | |
1501 | IB_SA_PATH_REC_REVERSIBLE, | ||
1500 | timeout_ms, GFP_KERNEL, | 1502 | timeout_ms, GFP_KERNEL, |
1501 | cma_query_handler, work, &id_priv->query); | 1503 | cma_query_handler, work, &id_priv->query); |
1502 | 1504 | ||