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)
commitbf3d56d8f55f96024d18e94d2a87e31d9c1a6682
tree52097b4c9fa3751ed6474612e52bf4f770a855b8
parent3ee6233e61a1f95426101cfc35f35f7ed0e7ed66
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