]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Move legacy code to a individual file
authorParav Pandit <parav@nvidia.com>
Fri, 26 Feb 2021 12:30:50 +0000 (14:30 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 14 Apr 2021 18:02:40 +0000 (11:02 -0700)
commitda9a299ab9a8575d4e2ae737d927149737c7506a
treeb745cb48a43b8c1c259996e1ea04263cd303d15b
parentd8a36972714d47b36dd1650a273fcdedef478707
net/mlx5: E-Switch, Move legacy code to a individual file

Currently eswitch offers two modes. Legacy and offloads.
Offloads code is already in its own file eswitch_offloads.c

However eswitch.c contains the eswitch legacy code and common
infrastructure  code.

To enable future extensions and to better manage generic common eswitch
infrastructure code, move the legacy code to its own legacy.c file.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h