]> 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)
commit18635bef5a1d644d62cc89d5149701460c9504d0
tree40f6f0a3b30eb4bbe3c6c72d33a98b9edbc711d3
parent87b4196fc4258d4ec7cd048dc78041089fd214e2
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