]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: get rid of private net_device_stats
authorEric Dumazet <edumazet@google.com>
Wed, 25 May 2016 16:50:39 +0000 (09:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 May 2016 05:15:50 +0000 (22:15 -0700)
commit941e31739fa49174ffefb3be599ecba38c820385
tree6e3812e2adf95c60c352e82e45186fde92c2a92a
parentf6d92a1df5c7b0149ecc522ec56c67c89c446e9f
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>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/en_port.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h