Peter Memishian wrote: > > The default timeout for libdlpi operations is 5 seconds. However, in the > > case above it took 10 seconds as it first thought it was DLPI style1 > > device and was trying to process it and failed, then libdlpi tries to > > open it as style2. So it took 10seconds. > > I'm slightly confused by this. Presumably, libdlpi did a DL_INFO_REQ > after opening the device. Both style-1 and style-2 style links must > answer that request. If there's no answer to the DL_INFO_REQ, what's > the point in continuing on and trying style 2? > > That is correct the failure was while doing a DL_INFO_REQ. I agree that continuing with style 2 in this case is pointless. I can a check when dlpi_info() is done in dlpi_open of style1 and bailout in that case.
-sagun
