]> git.hungrycats.org Git - linux/commit
dpaa2-switch: fix VLAN upper check not rejecting bridge join
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 16 Jun 2026 10:54:30 +0000 (13:54 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Jun 2026 00:52:52 +0000 (17:52 -0700)
commited2294f94e34e97342850c40b320833d881c3819
tree9329bc713b4c8183fd124eb34efade0eb1b92233
parent9e5ad06ea826322ce8c58b4a68442a96f600c3c4
dpaa2-switch: fix VLAN upper check not rejecting bridge join

The blamed commit refactored the prechangeupper event handling but
failed to actually return an error in case
dpaa2_switch_prevent_bridging_with_8021q_upper() detected a 802.1q upper
on a port which tries to join a bridge. Fix this by returning err
instead of 0.

Fixes: 45035febc495 ("net: dpaa2-switch: refactor prechangeupper sanity checks")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://patch.msgid.link/20260616105430.3725910-1-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c