[ofa-general] [PATCH] ibutils/ibis: use pkey index value

Sasha Khapyorsky sashak at voltaire.com
Tue Jan 15 16:08:55 PST 2008


Use pkey index value rather than pkey - it is used now by
osm_vendor_ibumad.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 ibis/src/ibbbm.c |    2 +-
 ibis/src/ibcr.c  |    2 +-
 ibis/src/ibpm.c  |    2 +-
 ibis/src/ibvs.c  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ibis/src/ibbbm.c b/ibis/src/ibbbm.c
index 1f4ce20..e60c861 100644
--- a/ibis/src/ibbbm.c
+++ b/ibis/src/ibbbm.c
@@ -226,7 +226,7 @@ __ibbbm_vpd(
   mad_addr.static_rate = 0;
   mad_addr.addr_type.gsi.remote_qp=cl_hton32(1);
   mad_addr.addr_type.gsi.remote_qkey = cl_hton32(0x80010000);
-  mad_addr.addr_type.gsi.pkey = cl_hton16(0xffff);
+  mad_addr.addr_type.gsi.pkey = 0;
   mad_addr.addr_type.gsi.service_level = 0;
   mad_addr.addr_type.gsi.global_route = FALSE;
 
diff --git a/ibis/src/ibcr.c b/ibis/src/ibcr.c
index 873ae38..18405ad 100644
--- a/ibis/src/ibcr.c
+++ b/ibis/src/ibcr.c
@@ -185,7 +185,7 @@ __ibcr_prep_cr_mad(
   mad_addr.static_rate = 0;
   mad_addr.addr_type.gsi.remote_qp=cl_hton32(1);
   mad_addr.addr_type.gsi.remote_qkey = cl_hton32(0x80010000);
-  mad_addr.addr_type.gsi.pkey = cl_hton16(0xffff);
+  mad_addr.addr_type.gsi.pkey = 0;
   mad_addr.addr_type.gsi.service_level = 0;
   mad_addr.addr_type.gsi.global_route = FALSE;
 
diff --git a/ibis/src/ibpm.c b/ibis/src/ibpm.c
index ae57143..fce144e 100644
--- a/ibis/src/ibpm.c
+++ b/ibis/src/ibpm.c
@@ -176,7 +176,7 @@ __ibpm_prep_port_counter_mad(
   mad_addr.static_rate = 0;
   mad_addr.addr_type.gsi.remote_qp=cl_hton32(1);
   mad_addr.addr_type.gsi.remote_qkey = cl_hton32(0x80010000);
-  mad_addr.addr_type.gsi.pkey = cl_hton16(0xffff);
+  mad_addr.addr_type.gsi.pkey = 0;
   mad_addr.addr_type.gsi.service_level = 0;
   mad_addr.addr_type.gsi.global_route = FALSE;
 
diff --git a/ibis/src/ibvs.c b/ibis/src/ibvs.c
index 55701b8..e581d0f 100644
--- a/ibis/src/ibvs.c
+++ b/ibis/src/ibvs.c
@@ -242,7 +242,7 @@ __ibvs_init_mad_addr(
   p_mad_addr->static_rate = 0;
   p_mad_addr->addr_type.gsi.remote_qp=cl_hton32(1);
   p_mad_addr->addr_type.gsi.remote_qkey = cl_hton32(0x80010000);
-  p_mad_addr->addr_type.gsi.pkey = cl_hton16(0);
+  p_mad_addr->addr_type.gsi.pkey = 0;
   p_mad_addr->addr_type.gsi.service_level = 0;
   p_mad_addr->addr_type.gsi.global_route = FALSE;
 }
-- 
1.5.4.rc2.38.gd6da3




More information about the general mailing list