aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2008-08-13 18:58:30 -0400
committerDavid S. Miller <davem@davemloft.net>2008-08-13 19:05:35 -0400
commitf0e53a847a4435f3226f5e385503f792f5f99ce2 (patch)
treeaf911f39a51099024527cb5950dfbfad9778a963
parent345b5d52b93113d3ce82f97c2a783319fbf0fdfd (diff)
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: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/bnx2x_main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 594b08aac93b..721db2957e26 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -7763,7 +7763,7 @@ static void bnx2x_get_drvinfo(struct net_device *dev,
7763 struct ethtool_drvinfo *info) 7763 struct ethtool_drvinfo *info)
7764{ 7764{
7765 struct bnx2x *bp = netdev_priv(dev); 7765 struct bnx2x *bp = netdev_priv(dev);
7766 char phy_fw_ver[PHY_FW_VER_LEN]; 7766 u8 phy_fw_ver[PHY_FW_VER_LEN];
7767 7767
7768 strcpy(info->driver, DRV_MODULE_NAME); 7768 strcpy(info->driver, DRV_MODULE_NAME);
7769 strcpy(info->version, DRV_MODULE_VERSION); 7769 strcpy(info->version, DRV_MODULE_VERSION);
@@ -7777,11 +7777,11 @@ static void bnx2x_get_drvinfo(struct net_device *dev,
7777 bnx2x_release_phy_lock(bp); 7777 bnx2x_release_phy_lock(bp);
7778 } 7778 }
7779 7779
7780 snprintf(info->fw_version, 32, "%d.%d.%d:%d BC:%x%s%s", 7780 snprintf(info->fw_version, 32, "BC:%d.%d.%d%s%s",
7781 BCM_5710_FW_MAJOR_VERSION, BCM_5710_FW_MINOR_VERSION, 7781 (bp->common.bc_ver & 0xff0000) >> 16,
7782 BCM_5710_FW_REVISION_VERSION, 7782 (bp->common.bc_ver & 0xff00) >> 8,
7783 BCM_5710_FW_COMPILE_FLAGS, bp->common.bc_ver, 7783 (bp->common.bc_ver & 0xff),
7784 ((phy_fw_ver[0] != '\0')? " PHY:":""), phy_fw_ver); 7784 ((phy_fw_ver[0] != '\0') ? " PHY:" : ""), phy_fw_ver);
7785 strcpy(info->bus_info, pci_name(bp->pdev)); 7785 strcpy(info->bus_info, pci_name(bp->pdev));
7786 info->n_stats = BNX2X_NUM_STATS; 7786 info->n_stats = BNX2X_NUM_STATS;
7787 info->testinfo_len = BNX2X_NUM_TESTS; 7787 info->testinfo_len = BNX2X_NUM_TESTS;