[1/2] net/mlx5: add global hairpin out of buffer counter
Checks
Commit Message
Exposing ethtool dev_internal_queue_oob counter which counts
the number of hairpin dropped packets in xstats.
Signed-off-by: Shani Peretz <shperetz@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
doc/guides/rel_notes/release_24_07.rst | 1 +
drivers/net/mlx5/linux/mlx5_ethdev_os.c | 4 ++++
2 files changed, 5 insertions(+)
@@ -98,6 +98,7 @@ New Features
* Added match with external Tx queue.
* Added match with E-Switch manager.
* Added flow item and actions validation to async flow API.
+ * Added global out of buffer counter for hairpin queues.
* **Updated TAP driver.**
@@ -1420,6 +1420,10 @@ static const struct mlx5_counter_ctrl mlx5_counters_init[] = {
.ctr_name = "out_of_buffer",
.dev = 1,
},
+ {
+ .dpdk_name = "dev_internal_queue_oob",
+ .ctr_name = "dev_internal_queue_oob",
+ },
{
.dpdk_name = "tx_phy_packets",
.ctr_name = "tx_packets_phy",