]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Bridge, extract FDB delete notification to function
authorVlad Buslov <vladbu@nvidia.com>
Fri, 23 Jul 2021 08:15:13 +0000 (11:15 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 16 Aug 2021 23:17:31 +0000 (16:17 -0700)
commit5c73602dfd70e03b211af918dbf3c9ddb463f473
tree52097b4c9fa3751ed6474612e52bf4f770a855b8
parent12678bb1be9af4d5abc182bc20f2d4c379c8e0c6
net/mlx5: Bridge, extract FDB delete notification to function

SWITCHDEV_FDB_DEL_TO_BRIDGE notification is generated in multiple places in
bridge code. Following patch in series changes the condition for the
notification. Extract the notification into dedicated helper function
mlx5_esw_bridge_fdb_del_notify() to only modify it in single place in the
future changes.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c