OSDN Git Service

net/mlx5e: Extract TC-specific code from en_rep.c to rep/tc.c
authorVlad Buslov <vladbu@mellanox.com>
Tue, 12 May 2020 13:41:41 +0000 (16:41 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 May 2020 23:46:08 +0000 (16:46 -0700)
commit768c3667e6f36bc9db0dac854aa198651b27412f
tree9322238cd88410ddec653e03cd2eec96b409f3d3
parent2639324a8fb69e1db88ef985e7def18a6bc106d1
net/mlx5e: Extract TC-specific code from en_rep.c to rep/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_rep.c to standalone file. 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_rep.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h