]> 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)
commite237f7c675417128c1c019044be0f9583b2b8c0d
treeb745cb48a43b8c1c259996e1ea04263cd303d15b
parentd1a9bb4d7da9262d7b2cb280e233ae2b2f105b0a
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