Commit 6f71d792 authored by Yevgeny Petrilin's avatar Yevgeny Petrilin Committed by David S. Miller

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: default avatarYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 54a4fe54
...@@ -45,20 +45,7 @@ mlx4_en_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo) ...@@ -45,20 +45,7 @@ mlx4_en_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *drvinfo)
struct mlx4_en_priv *priv = netdev_priv(dev); struct mlx4_en_priv *priv = netdev_priv(dev);
struct mlx4_en_dev *mdev = priv->mdev; struct mlx4_en_dev *mdev = priv->mdev;
switch (mdev->dev->rev_id) { strncpy(drvinfo->driver, DRV_NAME, 32);
case 0xa0:
if (dev->dev_id >= MLX4_EN_CX3_LOW_ID && dev->dev_id <= MLX4_EN_CX3_HIGH_ID)
sprintf(drvinfo->driver, DRV_NAME " (%s_CX-3)", mdev->dev->board_id);
else
sprintf(drvinfo->driver, DRV_NAME " (%s_CX)", mdev->dev->board_id);
break;
case 0xb0:
sprintf(drvinfo->driver, DRV_NAME " (%s_CX-2)", mdev->dev->board_id);
break;
default:
sprintf(drvinfo->driver, DRV_NAME " (%s)", mdev->dev->board_id);
break;
}
strncpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", 32); strncpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", 32);
sprintf(drvinfo->fw_version, "%d.%d.%d", sprintf(drvinfo->fw_version, "%d.%d.%d",
(u16) (mdev->dev->caps.fw_ver >> 32), (u16) (mdev->dev->caps.fw_ver >> 32),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment