diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2012-04-02 16:45:20 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-04-02 19:55:24 +0200 |
commit | d2ef406866620f0450ad0b4c7fb5c2796c7bf245 (patch) | |
tree | 0d44c40c7da3b28f4edfb371cf782ae3f0c5c4c1 /drivers/infiniband/core/sysfs.c | |
parent | Linux 3.4-rc1 (diff) | |
download | linux-d2ef406866620f0450ad0b4c7fb5c2796c7bf245.tar.xz linux-d2ef406866620f0450ad0b4c7fb5c2796c7bf245.zip |
IB/mlx4: Don't return an invalid speed when a port is down
When the IB port is down, the active_speed value returned by the
MAD_IFC command is seven (7) which isn't among the defined IB speeds
in enum ib_port_speed, and this invalid speed value is passed up to
higher layers or applications who do port query.
Fix that by setting the speed to be SDR -- the lowest possible -- when
the port is down.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/core/sysfs.c')
0 files changed, 0 insertions, 0 deletions