From: Or Gerlitz Date: Mon, 2 Apr 2012 14:45:20 +0000 (+0300) Subject: IB/mlx4: Don't return an invalid speed when a port is down X-Git-Tag: v3.4-rc3~39^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2ef406866620f0450ad0b4c7fb5c2796c7bf245;p=pandora-kernel.git 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 --- Reading git-diff-tree failed