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

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Thu Jan 22 16:09:32 PST 2009


On Thu, Jan 22, 2009 at 07:28:57PM +0200, Dotan Barak wrote:
> Try to check the value of the MAC address using "ip addr" (i don't remember 
> the full command) and not using ifconfig.
> This will be more accurate.

ip link show ib0

You can also just look in /sys/class/net/ib0/address and 
/sys/class/net/ib0/device will at least tell you which HCA has the
port.

I wonder if it would be hard to add a sysfs link to something like
/sys/class/infiniband/mthca0/ports/1/  ??

Jason



More information about the general mailing list