net/mlx5e: Extract neigh-specific code from en_rep.c to rep/neigh.c
authorVlad Buslov <vladbu@mellanox.com>
Tue, 12 May 2020 14:29:22 +0000 (17:29 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 May 2020 23:46:10 +0000 (16:46 -0700)
commit549c243e4e010067a075e248f4d72e8dda844e12
tree14d8f160f901474c2e9d28fedc570f31de46888d
parent768c3667e6f36bc9db0dac854aa198651b27412f
net/mlx5e: Extract neigh-specific code from en_rep.c to rep/neigh.c

As a preparation for introducing new kconfig option that controls
compilation of all TC offloads code in mlx5, extract neigh-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/neigh.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
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_tc.c