diff options
author | Eric Dumazet <edumazet@google.com> | 2016-05-25 19:50:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-26 08:15:50 +0300 |
commit | f73a6f439fca0e14f228726e5647d5afe141bc32 (patch) | |
tree | 6e3812e2adf95c60c352e82e45186fde92c2a92a /drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | |
parent | 9ed17db17fb01a7be5b84558b768c091bdf8bb41 (diff) | |
download | linux-f73a6f439fca0e14f228726e5647d5afe141bc32.tar.xz |
net/mlx4_en: get rid of private net_device_stats
We simply can use the standard net_device stats.
We do not need to clear fields that are already 0.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c index c761194bb323..fc95affaf76b 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c @@ -362,7 +362,7 @@ static void mlx4_en_get_ethtool_stats(struct net_device *dev, for (i = 0; i < NUM_MAIN_STATS; i++, bitmap_iterator_inc(&it)) if (bitmap_iterator_test(&it)) - data[index++] = ((unsigned long *)&priv->stats)[i]; + data[index++] = ((unsigned long *)&dev->stats)[i]; for (i = 0; i < NUM_PORT_STATS; i++, bitmap_iterator_inc(&it)) if (bitmap_iterator_test(&it)) |