]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit472ba818853cdc7c0008404aabdc7da2f7d865de
treeebfb926596ce5c9b4b794bcf7357904a82fb7e91
parent81c295b6f9ba9c5494758ff86954d2f751b7fed0
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