]> git.droids-corp.org - dpdk.git/commit
net/mlx5: add Rx drop counters to xstats
authorRongwei Liu <rongweil@nvidia.com>
Thu, 26 May 2022 02:49:41 +0000 (05:49 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 1 Jun 2022 07:49:44 +0000 (09:49 +0200)
commit2bd03a4361ed6498555215fe57ba530616f0821f
tree8345c5f7e0ec570d10a6df79915baabd6c620b2e
parent1485d961e2c9d77dfa4900a16b5ba70cbaa4c7ce
net/mlx5: add Rx drop counters to xstats

Add two kinds of Rx drop counters to DPDK xstats which are
physical port scope.

1. rx_prio[0-7]_buf_discard
   The number of unicast packets dropped due to lack of shared
   buffer resources.
2. rx_prio[0-7]_cong_discard
   The number of packets that is dropped by the Weighted Random
   Early Detection (WRED) function.

Prio[0-7] is determined by VLAN PCP value which is 0 by default.
Both counters are retrieved from kernel ethtool API which calls
PRM command finally.

Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/linux/mlx5_ethdev_os.c
drivers/net/mlx5/mlx5_defs.h