From 2eed911cb7383422c2e3e7d33bd1b05bb41e5a69 Mon Sep 17 00:00:00 2001 From: leonidk Date: Mon, 11 Feb 2008 11:29:01 +0000 Subject: [PATCH] [IBAL] make the pnp layer to return only the default paths. git-svn-id: svn://openib.tc.cornell.edu/gen1@940 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/core/al/kernel/al_ioc_pnp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/core/al/kernel/al_ioc_pnp.c b/trunk/core/al/kernel/al_ioc_pnp.c index b175de85..335e2675 100644 --- a/trunk/core/al/kernel/al_ioc_pnp.c +++ b/trunk/core/al/kernel/al_ioc_pnp.c @@ -1570,12 +1570,16 @@ __ioc_query_sa( info.attr_id = IB_MAD_ATTR_PATH_RECORD; info.attr_size = sizeof(ib_path_rec_t); info.comp_mask = IB_PR_COMPMASK_SGID | IB_PR_COMPMASK_NUM_PATH; + info.comp_mask = IB_PR_COMPMASK_SGID | IB_PR_COMPMASK_NUM_PATH | + IB_PR_COMPMASK_PKEY; info.p_attr = &u.path_rec; cl_memclr( &u.path_rec, sizeof(ib_path_rec_t) ); ib_gid_set_default( &u.path_rec.sgid, p_svc->port_guid ); /* Request all the paths available, setting the reversible bit. */ u.path_rec.num_path = 0xFF; + /* Request only paths from the default partition */ + u.path_rec.pkey = cl_hton16(IB_DEFAULT_PKEY); query.pfn_query_cb = __path_rec_cb; -- 2.41.0