[ofw] what's up with the OFA Windows project?

chas williams - CONTRACTOR chas at cmf.nrl.navy.mil
Wed Feb 6 14:27:19 PST 2008


In message <9FA59C95FFCBB34EA5E42C1A8573784FEEEDBD at mtiexch01.mti.com>,"Gilad Sh
ainer" writes:
>Furthermore, since this is an open source development, I encourage
>people who needs new feature or fixes to write the patches and submit
>them to the mailing list. 

here's one.  we have two partitions, 0xffff and 0xfff2.  this causes
some confusion with the pnp layer.  when the pnp layer iterates the
nodes/paths to the hardware, the first path returned isnt always on the
default partition.  if this path is given to srp, then srp attempts to
login to the storage on the non-default pkey.

this patch makes the pnp layer only return the default paths.

Index: trunk/core/al/kernel/al_ioc_pnp.c
===================================================================
--- trunk/core/al/kernel/al_ioc_pnp.c	(revision 775)
+++ trunk/core/al/kernel/al_ioc_pnp.c	(working copy)
@@ -1569,13 +1569,15 @@
 	info.method = IB_MAD_METHOD_GETTABLE;
 	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;
 



More information about the ofw mailing list