Commit f0e53a84 authored by Eilon Greenstein's avatar Eilon Greenstein Committed by David S. Miller

bnx2x: Driver info

Driver info
The internal FW which is downloaded by the driver should not be
displayed - it is only causing confusion and it is redundant since it
can be concluded from the driver version. Display only FW which is
burned on the board nvram
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 345b5d52
...@@ -7763,7 +7763,7 @@ static void bnx2x_get_drvinfo(struct net_device *dev, ...@@ -7763,7 +7763,7 @@ static void bnx2x_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info) struct ethtool_drvinfo *info)
{ {
struct bnx2x *bp = netdev_priv(dev); struct bnx2x *bp = netdev_priv(dev);
char phy_fw_ver[PHY_FW_VER_LEN]; u8 phy_fw_ver[PHY_FW_VER_LEN];
strcpy(info->driver, DRV_MODULE_NAME); strcpy(info->driver, DRV_MODULE_NAME);
strcpy(info->version, DRV_MODULE_VERSION); strcpy(info->version, DRV_MODULE_VERSION);
...@@ -7777,11 +7777,11 @@ static void bnx2x_get_drvinfo(struct net_device *dev, ...@@ -7777,11 +7777,11 @@ static void bnx2x_get_drvinfo(struct net_device *dev,
bnx2x_release_phy_lock(bp); bnx2x_release_phy_lock(bp);
} }
snprintf(info->fw_version, 32, "%d.%d.%d:%d BC:%x%s%s", snprintf(info->fw_version, 32, "BC:%d.%d.%d%s%s",
BCM_5710_FW_MAJOR_VERSION, BCM_5710_FW_MINOR_VERSION, (bp->common.bc_ver & 0xff0000) >> 16,
BCM_5710_FW_REVISION_VERSION, (bp->common.bc_ver & 0xff00) >> 8,
BCM_5710_FW_COMPILE_FLAGS, bp->common.bc_ver, (bp->common.bc_ver & 0xff),
((phy_fw_ver[0] != '\0')? " PHY:":""), phy_fw_ver); ((phy_fw_ver[0] != '\0') ? " PHY:" : ""), phy_fw_ver);
strcpy(info->bus_info, pci_name(bp->pdev)); strcpy(info->bus_info, pci_name(bp->pdev));
info->n_stats = BNX2X_NUM_STATS; info->n_stats = BNX2X_NUM_STATS;
info->testinfo_len = BNX2X_NUM_TESTS; info->testinfo_len = BNX2X_NUM_TESTS;
......
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