[ofw] what's up with the OFA Windows project?
Leonid Keller
leonid at mellanox.co.il
Mon Feb 11 03:29:43 PST 2008
Done in rev.940, thank you.
> -----Original Message-----
> From: ofw-bounces at lists.openfabrics.org
> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of chas
> williams - CONTRACTOR
> Sent: Thursday, February 07, 2008 12:27 AM
> To: Gilad Shainer
> Cc: ofw at lists.openfabrics.org
> Subject: Re: [ofw] what's up with the OFA Windows project?
>
> In message
> <9FA59C95FFCBB34EA5E42C1A8573784FEEEDBD at mtiexch01.mti.com>,"Gi
> lad 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;
>
> _______________________________________________
> ofw mailing list
> ofw at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
>
More information about the ofw
mailing list