net/mlx5: Move TTC logic to fs_ttc
authorMaor Gottlieb <maorg@nvidia.com>
Fri, 2 Jul 2021 07:38:32 +0000 (10:38 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 3 Aug 2021 02:26:26 +0000 (19:26 -0700)
commit371cf74e78f3468016e8c7a159fc288a71d4dc86
treeb7bde5b5d45b0af66ee499084eba71c7277a333e
parentbc29764ed9a2335a4f2453eba3f270ca84164a6e
net/mlx5: Move TTC logic to fs_ttc

Now that TTC logic is not dependent on mlx5e structs, move it to
lib/fs_ttc.c so it could be used other part of the mlx5 driver.

Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.h [new file with mode: 0644]
include/linux/mlx5/fs.h