[openib-general] [PATCH] libibcm: remove pkey from SIDR REQ

Sean Hefty sean.hefty at intel.com
Thu May 18 13:20:51 PDT 2006


Remove the pkey from the API for SIDR REQ.  The pkey is provided
in the path record.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
Index: include/infiniband/cm.h
===================================================================
--- include/infiniband/cm.h	(revision 7020)
+++ include/infiniband/cm.h	(working copy)
@@ -528,7 +528,6 @@ struct ib_cm_sidr_req_param {
 	void			*private_data;
 	uint8_t			private_data_len;
 	uint8_t			max_cm_retries;
-	uint16_t		pkey;
 };
 
 /**
Index: src/cm.c
===================================================================
--- src/cm.c	(revision 7020)
+++ src/cm.c	(working copy)
@@ -724,7 +724,7 @@ int ib_cm_send_sidr_req(struct ib_cm_id 
 	cmd->id             = cm_id->handle;
 	cmd->sid            = param->service_id;
 	cmd->timeout        = param->timeout_ms;
-	cmd->pkey           = param->pkey;
+	cmd->pkey           = param->path->pkey;
 	cmd->max_cm_retries = param->max_cm_retries;
 
 	if (param->path) {




More information about the general mailing list