[ofa-general] RE: new API for the rdma-cma
    Steve Wise 
    swise at opengridcomputing.com
       
    Wed Jan 16 11:26:58 PST 2008
    
    
  
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.
    
    
More information about the general
mailing list