diff options
author | Moshe Shemesh <moshe@mellanox.com> | 2018-02-08 16:09:57 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-03-26 23:47:12 +0300 |
commit | 7cbaf9a3ea09ea36c7101e7b244f734f9c09c72b (patch) | |
tree | d3ee29e9741edb874478772576ea050104f69230 /drivers/net/ethernet/mellanox/mlx5/core/en_stats.h | |
parent | aaabd0783b1cf46569f5fc1c60d79709815497fc (diff) | |
download | linux-7cbaf9a3ea09ea36c7101e7b244f734f9c09c72b.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_stats.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_stats.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h index 847388ff8ca8..43a72efa28c0 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h @@ -97,6 +97,7 @@ struct mlx5e_sw_stats { struct mlx5e_qcounter_stats { u32 rx_out_of_buffer; + u32 rx_if_down_packets; }; struct mlx5e_vnic_env_stats { |