[ofa-general] [ipoib]patch for ipoib failure during startup with non-default pkey set.

Alex Estrin alex.estrin at qlogic.com
Sat Dec 20 04:46:27 PST 2008


Hello,

Ipoib uses the first pkey in the pkey table for its ib0 interface.
Race is possible during normal boot, when ipoib starts before the port is Active and has a
default pkey table with 0xffff as the only pkey. SM can program the pkey table differently
when moves port to Active, bit at this point ipoib already started using default pkey.
However there is no race, if ipoib started after the port is Active, 
then ipoib will find the first pkey as the SM programmed it.

Proposed patch will delay ib0 initialization until port is Active.
After port is Active, patch code will pickup correct pkey and fix broadcast mgid (earlier generated using default pkey)
before interface start joining multicast groups.
Please note, the patch is not intended to touch sub-interfaces with locally programmed pkeys.

Thanks,
Alex.


> -----Original Message-----
> From: Roland Dreier [mailto:rdreier at cisco.com] 
> Sent: Friday, December 19, 2008 6:51 PM
> To: Alex Estrin
> Cc: general at lists.openfabrics.org
> Subject: Re: [ofa-general] [ipoib]patch for ipoib failure 
> during startup with non-default pkey set.
> 
> Can you provide some detail about what this patch is doing?  What
> exactly is the bug, and how does this fix it?  (Please always provide
> that with all patches -- it's too hard to reverse engineer 
> every patch I
> see before I apply it)
> 


More information about the general mailing list