mlx4_en: Fixed Ethtool statistics report
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Sun, 5 Sep 2010 22:20:24 +0000 (22:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 01:48:44 +0000 (18:48 -0700)
The values didn't match the title after removing the LRO
statistics in commit fa37a9586f92051de03a13e55e5ec3880bb6783e

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_ethtool.c
drivers/net/mlx4/mlx4_en.h

index 01634a3efe85eea830438120cdc79b9eaeb9687d..056152b3ff58fc051284a7d629f7876218e8b1de 100644 (file)
@@ -107,7 +107,7 @@ static const char main_strings[][ETH_GSTRING_LEN] = {
        "tx_prio_1", "tx_prio_2", "tx_prio_3", "tx_prio_4", "tx_prio_5",
        "tx_prio_6", "tx_prio_7",
 };
-#define NUM_MAIN_STATS 18
+#define NUM_MAIN_STATS 21
 #define NUM_ALL_STATS  (NUM_MAIN_STATS + NUM_PORT_STATS + NUM_PKT_STATS + NUM_PERF_STATS)
 
 static const char mlx4_en_test_names[][ETH_GSTRING_LEN]= {
index ce8e2338ee319f75bfd91c5a4636a35ed59edb7e..1fc16ab7ad2f0ebc0d6b7b6d604e593ceb223e69 100644 (file)
@@ -385,7 +385,7 @@ struct mlx4_en_port_stats {
        unsigned long rx_chksum_good;
        unsigned long rx_chksum_none;
        unsigned long tx_chksum_offload;
-#define NUM_PORT_STATS         11
+#define NUM_PORT_STATS         8
 };
 
 struct mlx4_en_perf_stats {