From acd5a9acac71578290ee1483d197a908e1bf5610 Mon Sep 17 00:00:00 2001 From: Mike Dubman Date: Thu, 21 Aug 2014 08:49:43 +0000 Subject: [PATCH] udcm: psn should be 24 bit, new OFED actually checks and fails if it is not 24 bit. This commit was SVN r32567. --- opal/mca/btl/openib/connect/btl_openib_connect_udcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/mca/btl/openib/connect/btl_openib_connect_udcm.c b/opal/mca/btl/openib/connect/btl_openib_connect_udcm.c index 55013060e9..11161998da 100644 --- a/opal/mca/btl/openib/connect/btl_openib_connect_udcm.c +++ b/opal/mca/btl/openib/connect/btl_openib_connect_udcm.c @@ -1265,7 +1265,7 @@ static int udcm_rc_qp_create_one(udcm_module_t *m, mca_btl_base_endpoint_t* lcl_ } /* Setup meta data on the endpoint */ - lcl_ep->qps[qp].qp->lcl_psn = udcm_random (); + lcl_ep->qps[qp].qp->lcl_psn = udcm_random () & 0x00ffffff; lcl_ep->qps[qp].credit_frag = NULL; rc = udcm_rc_qp_to_init (lcl_ep->qps[qp].qp->lcl_qp, m->btl); @@ -2470,7 +2470,7 @@ static int udcm_xrc_send_qp_create (mca_btl_base_endpoint_t *lcl_ep) } /* Setup meta data on the endpoint */ - *psn = udcm_random (); + *psn = udcm_random () & 0x00ffffff; /* Now that all the qp's are created locally, post some receive buffers, setup credits, etc. */