diff options
author | Shahed Shaikh <shahed.shaikh@qlogic.com> | 2013-03-08 10:53:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-09 22:09:18 +0100 |
commit | 1075822c871b56eb1e77cff82fae7bc9d7876d0a (patch) | |
tree | 3576adafedee7e3f7e86e83317e2cd782ede78a9 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | |
parent | qlcnic: Enable LED test support for 83xx adapter (diff) | |
download | linux-1075822c871b56eb1e77cff82fae7bc9d7876d0a.tar.xz linux-1075822c871b56eb1e77cff82fae7bc9d7876d0a.zip |
qlcnic: Fix ethtool statistics for 82xx adapter
o Fix miscalculation of statistics length
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c index ba1502acc84a..f687a6354e4a 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c @@ -149,7 +149,8 @@ static const char qlcnic_gstrings_test[][ETH_GSTRING_LEN] = { static inline int qlcnic_82xx_statistics(void) { - return QLCNIC_STATS_LEN + ARRAY_SIZE(qlcnic_83xx_mac_stats_strings); + return ARRAY_SIZE(qlcnic_device_gstrings_stats) + + ARRAY_SIZE(qlcnic_83xx_mac_stats_strings); } static inline int qlcnic_83xx_statistics(void) |