[ofa-general] vendor_id in struct ib_device_attr

Roland Dreier rdreier at cisco.com
Mon Jun 23 12:17:01 PDT 2008


It seems there is some confusion about struct ib_device_attr.vendor_id:
mthca and mlx4 are using an OUI for vendor_id, while ipath and cxgb3 use
the PCI vendor ID (and I don't know what ehca does).  Since these
namespaces are not coordinated, there is the (remote) chance of a
collision.  As far as I can tell, the ipath usage at least is a bug,
since the IB spec says that NodeInfo:VendorID should be "device vendor,
per IEEE" suggesting that OUI is the right thing to use.  If that is the
case, then it makes sense for iWARP devices to use OUI as well.

However changing this means that any apps that look at the vendor_id
field need to be updated to handle both the old and new value.

This comes up because iw_nes currently doesn't set vendor_id at all, and
I wonder what we should stick in there.

What do other people think the way forward is?

 - R.




More information about the general mailing list