net/mlx5e: Some cleanup in mlx5e_tc_stats_matchall()
authorAmir Tzin <amirtz@nvidia.com>
Wed, 6 Sep 2023 10:40:38 +0000 (13:40 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Nov 2023 19:34:29 +0000 (11:34 -0800)
commit312eb3fd624495fef4f1c987e21a44a5e4fb6088
tree14ce86be7094e386c0b5519c9e8a12e813191993
parentcecf44ea1a1ffcc9158f746f391aa12fba953453
net/mlx5e: Some cleanup in mlx5e_tc_stats_matchall()

Function mlx5e_tc_stats_matchall() is only called from one file:
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
Move it there and make it static as exposing it is unnecessary. Also
variable cur_stats is redundant. Remove it and avoid superfluous copy.

This patch does not change functionality.

Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Amir Tzin <amirtz@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h