]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d32e44542b551ba4ee90c0a2a0310ad9cdf11dd
tree40c3c0283d7396007333aa8a19600712bcb58b58
parent1d4a75b89cf163789b414b713a51f311a8d93f0b
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