OSDN Git Service

net/mlx5e: Move TC-specific code from en_main.c to en_tc.c
authorVlad Buslov <vladbu@mellanox.com>
Tue, 12 May 2020 15:08:41 +0000 (18:08 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 May 2020 23:46:12 +0000 (16:46 -0700)
commite2394a61d243d74ec7d0bfd4c6e25171fba54caa
tree7954dce127d2d1e78e0296a50530f95f135f79c1
parent549c243e4e010067a075e248f4d72e8dda844e12
net/mlx5e: Move TC-specific code from en_main.c to en_tc.c

As a preparation for introducing new kconfig option that controls
compilation of all TC offloads code in mlx5, extract TC-specific code from
en_main.c to en_tc.c. This allows easily compiling out the code by
only including new source in make file when corresponding kconfig is
enabled instead of adding multiple ifdef blocks to en_main.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h