[ofw][patch] port_info record

Slava Strebkov slavas at voltaire.com
Tue Aug 26 22:23:17 PDT 2008


When SM configures port to have more than one LID (according to LID mask
control), the query of IB_MAD_ATTR_PORTINFO_RECORD fails. That's because
of IB switch has more information to answer, but query configured as
IB_MAD_METHOD_GET. So IB switch return error. Consequently, port becomes
inactive (see ipoib_port_up) and Network properties show adapter as
disconnected.
Setting  info.method = IB_MAD_METHOD_GETTABLE fixed the problem.

Slava
 

-----Original Message-----
From: Hefty, Sean [mailto:sean.hefty at intel.com] 
Sent: Tuesday, August 26, 2008 7:50 PM
To: Slava Strebkov; ofw at lists.openfabrics.org
Subject: RE: [ofw][patch] port_info record

>The following fixes IPoIB connectivity when IB switch is configured
with lmc >
>0.

Can you provide more details _how_ it fixes the problem?  I can't tell
just by looking at the patch.

>Index: ulp/ipoib/kernel/ipoib_port.c
>
>===================================================================
>
>--- ulp/ipoib/kernel/ipoib_port.c   (revision 1506)
>
>+++ ulp/ipoib/kernel/ipoib_port.c (working copy)
>
>@@ -4939,7 +4939,7 @@
>
>            KeResetEvent( &p_port->sa_event );
>
>            cl_obj_unlock( &p_port->obj );
>
>
>
>-           info.method = IB_MAD_METHOD_GET;
>
>+          info.method = IB_MAD_METHOD_GETTABLE;

Is IPoIB ready to handle an RMPP response to this request?

- Sean




More information about the ofw mailing list