]> 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)
commitd958d52e7237fd504f407853e6fcb8433a5aca31
tree6e3812e2adf95c60c352e82e45186fde92c2a92a
parentbb567fc612caf040dcbe2b590884e79771f2d751
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