net/mlx5: E-switch, move offloads mode callbacks to offloads file
authorParav Pandit <parav@nvidia.com>
Thu, 21 Oct 2021 15:21:30 +0000 (18:21 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:52 +0000 (20:31 -0800)
commite9d491a64755d11812b532fcf10b93b2f9535e45
tree40c3c0283d7396007333aa8a19600712bcb58b58
parentb22fd4381d15ae66e42a7fab6eedfbb72d714ebb
net/mlx5: E-switch, move offloads mode callbacks to offloads file

eswitch.c is mainly for common code between legacy and offloads mode.
MAC address get and set via devlink is applicable only in offloads mode.

Hence, move it to eswitch_offloads.c file.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c