diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2011-09-27 13:30:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-27 13:30:27 -0400 |
commit | 04b71175f340d4081680440e1b9cbffcd3f4a13c (patch) | |
tree | 8b1b7c359a5cbb6537bf125652fde4f8a03a5f01 /drivers/net/ethernet/emulex/benet/be_main.c | |
parent | 8e7d3f681ef462e6aaa151f231310452dac409ca (diff) | |
download | lwn-04b71175f340d4081680440e1b9cbffcd3f4a13c.tar.gz lwn-04b71175f340d4081680440e1b9cbffcd3f4a13c.zip |
be2net: Show newly flashed FW ver in ethtool
This fix provides a newly flashed FW version (appended, in braces)
along with the currently running FW version via ethtool. The newly
flashed version runs only after a system reset.
Signed-off-by: Suresh Reddy <Suresh.Reddy@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_main.c')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 2b7d1ba1e13b..1a7b24cc5da7 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -2528,6 +2528,7 @@ static int be_setup(struct be_adapter *adapter) adapter->link_speed = -1; + be_cmd_get_fw_ver(adapter, adapter->fw_ver, NULL); return 0; rx_qs_destroy: @@ -3147,10 +3148,6 @@ static int be_get_config(struct be_adapter *adapter) int status; u8 mac[ETH_ALEN]; - status = be_cmd_get_fw_ver(adapter, adapter->fw_ver); - if (status) - return status; - status = be_cmd_query_fw_cfg(adapter, &adapter->port_num, &adapter->function_mode, &adapter->function_caps); if (status) |