OSDN Git Service

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)
commitb55b35382e51c84bcddc45bd87cf8fa16621452b
treeb745cb48a43b8c1c259996e1ea04263cd303d15b
parentb16f2bb6b6ca926e303273913288461091ba8cd8
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