Steve Wise wrote:

if_index is constant once the device is created until it is
destroyed. Renames do not affect if_index. I suppose it is possible
that with enough device creation/destruction if_index will wrap, and
then it won't have port1 < port2 anymore..

Jason

Perhaps the best way is to add a new sysfs entry that makes it explicit which if_index maps to which rdma device port. Or maybe add if_index to the ibv_port_attr structure...



So we could add a net:if_name link in

/sys/class/infiniband/<device_name>/ports/<port_num>/

Just like the net:if_name link that's currently in:

/sys/class/infiniband_verbs/uverbs_<device_index>/device/

Steve.
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to