]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Bridge, extract code to lookup and del/notify entry
authorVlad Buslov <vladbu@nvidia.com>
Tue, 19 Oct 2021 15:17:19 +0000 (18:17 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 25 Oct 2021 20:51:20 +0000 (13:51 -0700)
commitb9a12ff7fb4afcd3e163c9b7d185a36258573fb5
tree40f6f0a3b30eb4bbe3c6c72d33a98b9edbc711d3
parent61842d1f387df1fb65aa80b109c31054d77157c9
net/mlx5: Bridge, extract code to lookup and del/notify entry

Following two patterns in bridge code are used in multiple places where
similar code is duplicated:

- Lookup FDB entry from hashtable by address+vid pair.

- Notify software bridge and then delete existing FDB entry.

In order to improve code quality and prepare for following patch series
that also uses described patterns, extract the codes to dedicated helper
functions.

This commit doesn't change functionality.

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