aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2006-06-17 23:37:39 -0400
committerRoland Dreier <rolandd@cisco.com>2006-06-17 23:37:39 -0400
commit75af9088514432ef0c1052ba3767ceb0beb6f101 (patch)
tree92f312a058889beef2c85a18b9b7f231947c7590 /drivers/infiniband
parent526b4caa0a48382115fa9d8f7d8caf68dbcaa2bf (diff)
IB/ucm: Get rid of duplicate P_Key parameter
The P_Key is provided into a SIDR REQ in two places, once as a parameter, and again in the path record. Remove the P_Key as a parameter and always use the one given in the path record. This change has no practical effect on ABI functionality. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/cm.c2
-rw-r--r--drivers/infiniband/core/ucm.c1
2 files changed, 1 insertions, 2 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)) {