Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242658
b: refs/heads/master
c: 6f71d79
h: refs/heads/master
v: v3
  • Loading branch information
Yevgeny Petrilin authored and David S. Miller committed Mar 24, 2011
1 parent 7c5ef9e commit 39066a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54a4fe5499542f083ff282048c6a5afb8d4aca16
refs/heads/master: 6f71d7927c9a9efb7d7e9e6d227d5e246a9c5bd7
15 changes: 1 addition & 14 deletions trunk/drivers/net/mlx4/en_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_dev *mdev = priv->mdev;

switch (mdev->dev->rev_id) {
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->driver, DRV_NAME, 32);
strncpy(drvinfo->version, DRV_VERSION " (" DRV_RELDATE ")", 32);
sprintf(drvinfo->fw_version, "%d.%d.%d",
(u16) (mdev->dev->caps.fw_ver >> 32),
Expand Down

0 comments on commit 39066a8

Please sign in to comment.