]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Reuse mlx5_eswitch_set_vport_mac
authorParav Pandit <parav@nvidia.com>
Thu, 21 Oct 2021 15:17:52 +0000 (18:17 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:51 +0000 (20:31 -0800)
commit1d4a75b89cf163789b414b713a51f311a8d93f0b
treef6e81c172dc2a5000b6d6977e958351bf42a737b
parent651100ae9e92d9d924b238baff979dfd56416e37
net/mlx5: E-switch, Reuse mlx5_eswitch_set_vport_mac

mlx5_eswitch_set_vport_mac() routine already does necessary checks which
are duplicated in implementation of
mlx5_devlink_port_function_hw_addr_set().

Hence, reuse mlx5_eswitch_set_vport_mac() and cut down the code.

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