From 9ee733cb00c60ff901be06a4ff1fedac18910625 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Tue, 6 Jun 2006 21:07:39 +0000 Subject: [PATCH] r7750: Remove the pkey from the API for SIDR REQ. The pkey is provided in the path record. Signed-off-by: Sean Hefty --- include/infiniband/cm.h | 1 - src/cm.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/infiniband/cm.h b/include/infiniband/cm.h index 6948965..5cf47e1 100644 --- a/include/infiniband/cm.h +++ b/include/infiniband/cm.h @@ -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; }; /** diff --git a/src/cm.c b/src/cm.c index 27550d4..8dace98 100644 --- a/src/cm.c +++ b/src/cm.c @@ -739,7 +739,7 @@ int ib_cm_send_sidr_req(struct ib_cm_id *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) { -- 2.41.0