net/mlx5e: CT: Fix ct debugfs folder name
authorChris Mi <cmi@nvidia.com>
Mon, 28 Nov 2022 05:54:29 +0000 (13:54 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 28 Dec 2022 19:38:50 +0000 (11:38 -0800)
commit849190e3e4ccf452fbe2240eace30a9ca83fb8d2
tree6b1f57c58b4eafbc06b7506008d80d6eabf18fc4
parentf8c18a5749cf917096f75dd59885b7a0fe9298ba
net/mlx5e: CT: Fix ct debugfs folder name

Need to use sprintf to build a string instead of sscanf. Otherwise
dirname is null and both "ct_nic" and "ct_fdb" won't be created.
But its redundant anyway as driver could be in switchdev mode but
still add nic rules. So use "ct" as folder name.

Fixes: 77422a8f6f61 ("net/mlx5e: CT: Add ct driver counters")
Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c