net/mlx5: Bridge, Only handle registered netdev bridge events
authorRoi Dayan <roid@nvidia.com>
Tue, 11 Jul 2023 10:23:27 +0000 (13:23 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 17:53:52 +0000 (10:53 -0700)
commitb56fb19c337951fc4daba646fab2c50bb4c41c58
tree111aeeefdaa4b44503518dafac4b233430857683
parentd602be220cf97aa581a9b34a7780a889bc3dd25c
net/mlx5: Bridge, Only handle registered netdev bridge events

Don't handle bridge events for a netdev that doesn't belong to
an eswitch that registered for bridge events.

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