]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Extract tc tunnel encap/decap code to dedicated file
authorVlad Buslov <vladbu@nvidia.com>
Sun, 24 Jan 2021 20:07:04 +0000 (22:07 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 6 Feb 2021 04:53:37 +0000 (20:53 -0800)
commitc40de89474abd28a9cb3daecbcf4bde5dbc5921d
tree9b93b6d1d88b3803512a534146dec26e41d790d4
parent2a0a78fe86173eedb60963dbcb8f232a693e0335
net/mlx5e: Extract tc tunnel encap/decap code to dedicated file

Following patches in series extend the extracted code with routing
infrastructure. To improve code modularity created a dedicated
tc_tun_encap.c source file and move encap/decap related code to the new
file. Export code that is used by both regular TC code and encap/decap code
into tc_priv.h (new header intended to be used only by TC module). Rename
some exported functions by adding "mlx5e_" prefix to their names.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h