]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: CT: Add ct driver counters
authorSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 May 2022 03:13:09 +0000 (20:13 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 May 2022 06:41:48 +0000 (23:41 -0700)
commitc137d1799f6231569c34dacc711458f913163da2
treedeaa2fa9d3ef89012c1ddab64e22f5d3b69942a2
parent0931ae7694835922b31b1849b197cc14cfbf204b
net/mlx5e: CT: Add ct driver counters

Connection offload is translated to multiple rules over several
hardware flow tables. Unhandled end-cases may cause a hardware
resource leak causing multiple system symptoms such as a host
memory leak, decreased performance and other scale related issues.

Export the current number of firmware FTEs related to the CT table
as a debugfs counter. Also add a dropped packets counter to help
debug packets dropped on restore failure.

To show the offloaded count:
cat /sys/kernel/debug/mlx5/<PCI>/ct_nic/offloaded

To show the dropped count:
cat /sys/kernel/debug/mlx5/<PCI>/ct_nic/rx_dropped

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Roi Dayan <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c