[ofa-general] Does ib0 always map to port1?

Dotan Barak dotanba at gmail.com
Thu Jan 22 00:18:03 PST 2009


On Thu, Jan 22, 2009 at 9:45 AM, Or Gerlitz <ogerlitz at voltaire.com> wrote:
> Sumeet Lahorani wrote:
>>
>> I see that ib0 always maps to port1 and ib1 always maps to port2 on the
>> HCA. I'm trying to find out if this will always be the case and if so which
>> script ensures this mapping?
>
> Yes, on a dual ported HCA, ib0 maps to port1 and ib1 to port2, this is a
> property of the ipoib driver regardless of which HW is used, see
> drivers/infiniband/ulps/ipoib/ipoib_main :: ipoib_add_one()
>

Part of the "MAC" address of the I/F is the port GUID, so you can use
this value to determine which HCA.port is mapped to that I/Fs...
(if there are several HCAs in the same host, this can be very useful ...)

Dotan



More information about the general mailing list