]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add interface down dropped packets statistics
authorMoshe Shemesh <moshe@mellanox.com>
Thu, 8 Feb 2018 13:09:57 +0000 (15:09 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:47:12 +0000 (13:47 -0700)
commit609a91499fc8d8a0f9a0168a9b3adaca80aa6bb8
treed3ee29e9741edb874478772576ea050104f69230
parentcbccc68275a7e23ac70abca2c3a8361c5a56b791
net/mlx5e: Add interface down dropped packets statistics

Added the following packets drop counter:
Rx interface down dropped packets - counts packets which were received
while the ETH interface was down.
This counter will be shown on ethtool as a new counter called
rx_if_down_packets.

The implementation allocates a q_counter for drop rq which gets all the
received traffic while the interface is down.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h