]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Add error path in mlxsw_sp_port_mc_disabled_set()
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Jun 2022 08:33:37 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:56:57 +0000 (12:56 +0100)
commitf7ceaa8f1cb90aaebc6eaf651a12a5a1e1f2282c
tree328bc8832232222cccc0cc18d5bd3b9b8528e946
parent2a663ca65151b5e21d02a9479a11716943c40cda
mlxsw: spectrum_switchdev: Add error path in mlxsw_sp_port_mc_disabled_set()

The above mentioned function just returns an error in case that
mlxsw_sp_bridge_ports_flood_table_set() fails. That means that the previous
configurations are not cleaned.

Fix it by adding error path to clean the configurations in case of error.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c