diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-03-24 14:47:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-24 14:47:51 -0400 |
commit | 6f71d7927c9a9efb7d7e9e6d227d5e246a9c5bd7 (patch) | |
tree | 9ccd505ab547bdb9c196b12d3070b613962fd712 /drivers/net | |
parent | 54a4fe5499542f083ff282048c6a5afb8d4aca16 (diff) |
mlx4_en: Removing HW info from ethtool -i report.
Avoiding abuse of ethtool_drvinfo.driver field.
HW specific info can be retrieved using lspci.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mlx4/en_ethtool.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/net/mlx4/en_ethtool.c b/drivers/net/mlx4/en_ethtool.c index 62ace6c72b42..d54b7abf0225 100644 --- a/drivers/net/mlx4/en_ethtool.c +++ b/drivers/net/mlx4/en_ethtool.c | |||
@@ -45,20 +45,7 @@ mlx4_en_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo) | |||
45 | struct mlx4_en_priv *priv = netdev_priv(dev); | 45 | struct mlx4_en_priv *priv = netdev_priv(dev); |
46 | struct mlx4_en_dev *mdev = priv->mdev; | 46 | struct mlx4_en_dev *mdev = priv->mdev; |
47 | 47 | ||
48 | switch (mdev->dev->rev_id) { | 48 | strncpy(drvinfo->driver, DRV_NAME, 32); |
49 | case 0xa0: | ||
50 | if (dev->dev_id >= MLX4_EN_CX3_LOW_ID && dev->dev_id <= MLX4_EN_CX3_HIGH_ID) | ||
51 | sprintf(drvinfo->driver, DRV_NAME " (%s_CX-3)", mdev->dev->board_id); | ||
52 | else | ||
53 | sprintf(drvinfo->driver, DRV_NAME " (%s_CX)", mdev->dev->board_id); | ||
54 | break; | ||
55 | case 0xb0: | ||
56 | sprintf(drvinfo->driver, DRV_NAME " (%s_CX-2)", mdev->dev->board_id); | ||
57 | break; | ||
58 | default: | ||
59 | sprintf(drvinfo->driver, DRV_NAME " (%s)", mdev->dev->board_id); | ||
60 | break; | ||
61 | } | ||
62 | strncpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", 32); | 49 | strncpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", 32); |
63 | sprintf(drvinfo->fw_version, "%d.%d.%d", | 50 | sprintf(drvinfo->fw_version, "%d.%d.%d", |
64 | (u16) (mdev->dev->caps.fw_ver >> 32), | 51 | (u16) (mdev->dev->caps.fw_ver >> 32), |