summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorMoshe Shemesh2018-02-08 14:09:57 +0100
committerSaeed Mahameed2018-03-26 22:47:12 +0200
commit7cbaf9a3ea09ea36c7101e7b244f734f9c09c72b (patch)
treed3ee29e9741edb874478772576ea050104f69230 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentnet/mlx5: Add packet dropped while vport down statistics (diff)
downloadkernel-qcow2-linux-7cbaf9a3ea09ea36c7101e7b244f734f9c09c72b.tar.gz
kernel-qcow2-linux-7cbaf9a3ea09ea36c7101e7b244f734f9c09c72b.tar.xz
kernel-qcow2-linux-7cbaf9a3ea09ea36c7101e7b244f734f9c09c72b.zip
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.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h
index 4c9360b25532..48e0b2a747d9 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h
@@ -781,7 +781,8 @@ struct mlx5e_priv {
struct net_device *netdev;
struct mlx5e_stats stats;
struct hwtstamp_config tstamp;
- u16 q_counter;
+ u16 q_counter;
+ u16 drop_rq_q_counter;
#ifdef CONFIG_MLX5_CORE_EN_DCB
struct mlx5e_dcbx dcbx;
#endif