summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEran Ben Elisha <eranbe@mellanox.com>2015-03-18 16:51:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 13:59:34 +0100
commit7e1df1a11cc1cc993b924400e46d48085eb281b2 (patch)
tree29956335010623bf7cd082090752b5e9986f3209 /drivers
parent3bff11ddef64820ea8920e850ef0681734527c27 (diff)
downloadlwn-7e1df1a11cc1cc993b924400e46d48085eb281b2.tar.gz
lwn-7e1df1a11cc1cc993b924400e46d48085eb281b2.zip
net/mlx4_en: Fix off-by-one in ethtool statistics display
[ Upstream commit a16f3565703cfc3094938fb3c979cbb90f6d9eb4 ] NUM_PORT_STATS was 9 instead of 10, which caused off-by-one bug when displaying the statistics starting from tx_chksum_offload in ethtool. Fixes: f8c6455bb04b ('net/mlx4_en: Extend checksum offloading by CHECKSUM COMPLETE') Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/mlx4_en.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
index 944a112dff37..8805ef1a4c75 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
+++ b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
@@ -451,7 +451,7 @@ struct mlx4_en_port_stats {
unsigned long rx_chksum_none;
unsigned long rx_chksum_complete;
unsigned long tx_chksum_offload;
-#define NUM_PORT_STATS 9
+#define NUM_PORT_STATS 10
};
struct mlx4_en_perf_stats {