To calculate the active rate you need link_speed_active and
link_width_active.
There are no such fields in ib_ca_attr_t.
To add support to this one has to change QUERY_CA interface (which is
worth to be done IMO)

Today there is no kernel code that calculates port rate.
Vstat does it - see vstat_get_port_info() and printPortRate() in
vstat_main.c.
You can do the same from kerenel ...

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Sean Hefty
> Sent: Thursday, August 13, 2009 12:52 AM
> To: [email protected]
> Subject: [ofw] is there any way to determine what rate a port 
> is running at?
> 
> I can get the port's active speed from the port attributes.  
> The link_width_supported field is apparently set to 0.  Is 
> there some way to get the active width or determine a port's rate?
> 
> _______________________________________________
> ofw mailing list
> [email protected]
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
> 
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to