mlx4: improve accuracy of link status information
authorOlga Shern <olgas@mellanox.com>
Tue, 30 Jun 2015 09:27:53 +0000 (11:27 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Jul 2015 08:58:11 +0000 (10:58 +0200)
commite947d2ec8b2a45af30d6b79cb6fefe60b2cbc063
tree80cec8c30f270e2b8efeddb507d7c43c3fcf380d
parent643777a171acc19b578ba867db12774986585a4d
mlx4: improve accuracy of link status information

Query interface properties using the ethtool API instead of Verbs
through ibv_query_port(). The returned information is more accurate for
Ethernet links since several link speeds cannot be mapped to Verbs
semantics.

Signed-off-by: Olga Shern <olgas@mellanox.com>
Signed-off-by: Alex Rosenbaum <alexr@mellanox.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c