[openib-general] [PATCH] opensm: remove unreachable pkey hack from SA SR

Sasha Khapyorsky sashak at voltaire.com
Mon Mar 27 09:45:00 PST 2006


Hello,

This removes unreachable (and invalid) code from SA Service Record
processing.

Sasha.


Remove invalid (and unreachable) hack - setup of default P_Key in
SA Service Record SET response when pkey is not in comp_mask.

Signed-off-by: Sasha Khapyorsky <sahak at voltaire.com>
---

 osm/opensm/osm_sa_service_record.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/osm/opensm/osm_sa_service_record.c b/osm/opensm/osm_sa_service_record.c
index 207cc82..8c2ccfc 100644
--- a/osm/opensm/osm_sa_service_record.c
+++ b/osm/opensm/osm_sa_service_record.c
@@ -959,12 +959,6 @@ osm_sr_rcv_process_set_method(
     goto Exit;
   }
 
-  if( (comp_mask & IB_SR_COMPMASK_SPKEY) != IB_SR_COMPMASK_SPKEY)
-  {
-    /* Set the Default Service P_Key in the response */
-    p_recvd_service_rec->service_pkey = IB_DEFAULT_PKEY;
-  }
-
   p_sr_item->service_rec = *p_recvd_service_rec;
   cl_qlist_init(&sr_list);
 



More information about the general mailing list