OSDN Git Service

net/mlx5e: IPoIB, Add ndo stats support for IPoIB netdevices
authorFeras Daoud <ferasda@mellanox.com>
Sun, 2 Sep 2018 19:12:08 +0000 (22:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Sep 2018 23:22:42 +0000 (16:22 -0700)
commitc57d2358ff0dfa09a05dea10d0ea1dd0895029b4
treeebfb926596ce5c9b4b794bcf7357904a82fb7e91
parent6dae6f06f0fc0096213dde2203c335938d3bde99
net/mlx5e: IPoIB, Add ndo stats support for IPoIB netdevices

Expose RX and TX counters by implementing ndo_get_stats64 operation for
both parent devices.
After this change, all the relevant statistics can be retrieved using
ifconfig.

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h