net/mlx5e: Add port buffer's congestion counters
authorAya Levin <ayal@mellanox.com>
Wed, 4 Sep 2019 08:03:20 +0000 (11:03 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 5 Sep 2019 21:44:43 +0000 (14:44 -0700)
commit1297d97f4862ad690d882ae5b0487e3d1ff15953
tree1265152bf47ff397c99517648df45083b6590dda
parent948d3f90e9e2f385556f9ebbf792713e5b497b7a
net/mlx5e: Add port buffer's congestion counters

Add 3 counters per priority to ethtool using PPCNT:
1) rx_prio[p]_buf_discard - the number of packets discarded by device
   due to lack of per host receive buffers
2) rx_prio[p]_cong_discard - the number of packets discarded by device
   due to per host congestion
3) rx_prio[p]_marked - the number of packets ECN marked by device due
   to per host congestion

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