On Fri, Sep 3, 2010 at 3:47 PM, Jeff Squyres <jsquyres_at_[hidden]> wrote:
> It might be worth having even a Linux-specific way to auto-detect, just for this use case (which is becoming more common -- 1GB LOM and a 10GB non-iWARP NIC).
should contain the current speed and is readable by any user; if it
contains 65535 there is no link so the speed is not defined. The
information should also be available through ethtool, but for root
only, which is not so useful in this case. The file might not always
exists, f.e. when /sys is not mounted, using an older kernel, the
driver doesn't expose this info, etc., but from what I understand this
is just a best effort to locate a realistic value.