]> git.baikalelectronics.ru Git - kernel.git/commit
net: sparx5: mdb add/del handle non-sparx5 devices
authorCasper Andersson <casper.casan@gmail.com>
Thu, 30 Jun 2022 12:22:26 +0000 (14:22 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Jun 2022 18:32:54 +0000 (11:32 -0700)
commit01f703f32b07dc538c3a08e2f6d9624ed9d909ca
treefa4b8c52a657820624d37266f5d6ca62e65b0831
parent1257e3f81cd8cb05a0cc25beb4f4a28379c9003b
net: sparx5: mdb add/del handle non-sparx5 devices

When adding/deleting mdb entries on other net_devices, eg., tap
interfaces, it should not crash.

Fixes: b1e7d545051f ("net: sparx5: Add mdb handlers")
Signed-off-by: Casper Andersson <casper.casan@gmail.com>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Link: https://lore.kernel.org/r/20220630122226.316812-1-casper.casan@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c