]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit2deda2f1bf4e4778dc6ff62e37cedee92098cc2c
tree40f6f0a3b30eb4bbe3c6c72d33a98b9edbc711d3
parent5a1023deeed02a2078bcc11eec1c4be31e85892d
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