diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2010-08-23 23:46:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-24 17:54:51 -0400 |
commit | 7699517db435fd24143bd32dd644275e3eeb4c86 (patch) | |
tree | e39bad6758eb4172cd4bafe481803c8f752a2630 /drivers/net/mlx4/main.c | |
parent | e7c1c2c46201e46f8ce817196507d2ffd3dafd8e (diff) |
mlx4_en: Fixing report in Ethtool get_settings
The report now based on query from FW, giving the correct tranciever type
and link speed.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/main.c')
-rw-r--r-- | drivers/net/mlx4/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 7390cdb19414..f4791fa2472f 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c | |||
@@ -184,6 +184,10 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) | |||
184 | dev->caps.eth_mtu_cap[i] = dev_cap->eth_mtu[i]; | 184 | dev->caps.eth_mtu_cap[i] = dev_cap->eth_mtu[i]; |
185 | dev->caps.def_mac[i] = dev_cap->def_mac[i]; | 185 | dev->caps.def_mac[i] = dev_cap->def_mac[i]; |
186 | dev->caps.supported_type[i] = dev_cap->supported_port_types[i]; | 186 | dev->caps.supported_type[i] = dev_cap->supported_port_types[i]; |
187 | dev->caps.trans_type[i] = dev_cap->trans_type[i]; | ||
188 | dev->caps.vendor_oui[i] = dev_cap->vendor_oui[i]; | ||
189 | dev->caps.wavelength[i] = dev_cap->wavelength[i]; | ||
190 | dev->caps.trans_code[i] = dev_cap->trans_code[i]; | ||
187 | } | 191 | } |
188 | 192 | ||
189 | dev->caps.num_uars = dev_cap->uar_size / PAGE_SIZE; | 193 | dev->caps.num_uars = dev_cap->uar_size / PAGE_SIZE; |