aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/core/cm.c2
-rw-r--r--drivers/infiniband/core/ucm.c1
-rw-r--r--include/rdma/ib_cm.h3
-rw-r--r--include/rdma/ib_user_cm.h2
4 files changed, 3 insertions, 5 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 1c7463b7c5fd..629ed26a0176 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -2615,7 +2615,7 @@ static void cm_format_sidr_req(struct cm_sidr_req_msg *sidr_req_msg,
2615 cm_format_mad_hdr(&sidr_req_msg->hdr, CM_SIDR_REQ_ATTR_ID, 2615 cm_format_mad_hdr(&sidr_req_msg->hdr, CM_SIDR_REQ_ATTR_ID,
2616 cm_form_tid(cm_id_priv, CM_MSG_SEQUENCE_SIDR)); 2616 cm_form_tid(cm_id_priv, CM_MSG_SEQUENCE_SIDR));
2617 sidr_req_msg->request_id = cm_id_priv->id.local_id; 2617 sidr_req_msg->request_id = cm_id_priv->id.local_id;
2618 sidr_req_msg->pkey = cpu_to_be16(param->pkey); 2618 sidr_req_msg->pkey = cpu_to_be16(param->path->pkey);
2619 sidr_req_msg->service_id = param->service_id; 2619 sidr_req_msg->service_id = param->service_id;
2620 2620
2621 if (param->private_data && param->private_data_len) 2621 if (param->private_data && param->private_data_len)
diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c
index 67caf36504ee..c1c6fda9452c 100644
--- a/drivers/infiniband/core/ucm.c
+++ b/drivers/infiniband/core/ucm.c
@@ -1044,7 +1044,6 @@ static ssize_t ib_ucm_send_sidr_req(struct ib_ucm_file *file,
1044 param.service_id = cmd.sid; 1044 param.service_id = cmd.sid;
1045 param.timeout_ms = cmd.timeout; 1045 param.timeout_ms = cmd.timeout;
1046 param.max_cm_retries = cmd.max_cm_retries; 1046 param.max_cm_retries = cmd.max_cm_retries;
1047 param.pkey = cmd.pkey;
1048 1047
1049 ctx = ib_ucm_ctx_get(file, cmd.id); 1048 ctx = ib_ucm_ctx_get(file, cmd.id);
1050 if (!IS_ERR(ctx)) { 1049 if (!IS_ERR(ctx)) {
diff --git a/include/rdma/ib_cm.h b/include/rdma/ib_cm.h
index 8f394f035684..c9b4738be9d6 100644
--- a/include/rdma/ib_cm.h
+++ b/include/rdma/ib_cm.h
@@ -546,7 +546,6 @@ struct ib_cm_sidr_req_param {
546 const void *private_data; 546 const void *private_data;
547 u8 private_data_len; 547 u8 private_data_len;
548 u8 max_cm_retries; 548 u8 max_cm_retries;
549 u16 pkey;
550}; 549};
551 550
552/** 551/**
@@ -570,7 +569,7 @@ struct ib_cm_sidr_rep_param {
570}; 569};
571 570
572/** 571/**
573 * ib_send_cm_sidr_rep - Sends a service ID resolution request to the 572 * ib_send_cm_sidr_rep - Sends a service ID resolution reply to the
574 * remote node. 573 * remote node.
575 * @cm_id: Communication identifier associated with the received service ID 574 * @cm_id: Communication identifier associated with the received service ID
576 * resolution request. 575 * resolution request.
diff --git a/include/rdma/ib_user_cm.h b/include/rdma/ib_user_cm.h
index a9e1b22d245c..066c20b7cdfb 100644
--- a/include/rdma/ib_user_cm.h
+++ b/include/rdma/ib_user_cm.h
@@ -200,7 +200,7 @@ struct ib_ucm_sidr_req {
200 __be64 sid; 200 __be64 sid;
201 __u64 data; 201 __u64 data;
202 __u64 path; 202 __u64 path;
203 __u16 pkey; 203 __u16 reserved_pkey;
204 __u8 len; 204 __u8 len;
205 __u8 max_cm_retries; 205 __u8 max_cm_retries;
206 __u8 reserved[4]; 206 __u8 reserved[4];