]> 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)
commitf3538d5b1f79f0e20dd03b11a394f4ba6b83ffde
tree52097b4c9fa3751ed6474612e52bf4f770a855b8
parent50d05e8b941440ab06d44ccf36a02e00a51ab9b0
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