aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c')
-rw-r--r--sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
index c4edc940b1bc..91543d3878ef 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
@@ -2050,6 +2050,7 @@ static void cleanup_single_prio_root_ns(struct mlx5_core_dev *dev,
void mlx5_cleanup_fs(struct mlx5_core_dev *dev)
{
+ mlx5_cleanup_fc_stats(dev);
cleanup_root_ns(dev);
cleanup_single_prio_root_ns(dev, dev->sniffer_rx_root_ns);
cleanup_single_prio_root_ns(dev, dev->sniffer_tx_root_ns);
@@ -2423,6 +2424,10 @@ int mlx5_init_fs(struct mlx5_core_dev *dev)
if (err)
goto err;
+ err = mlx5_init_fc_stats(dev);
+ if (err)
+ goto err;
+
return 0;
err:
mlx5_cleanup_fs(dev);