]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: bridge: Extract a helper to handle bridge_binding toggles
authorPetr Machata <petrm@nvidia.com>
Wed, 18 Dec 2024 17:15:56 +0000 (18:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 21:14:17 +0000 (13:14 -0800)
commitf284424dc17b57d779a03dfc9a66489a67150b30
tree489dfba650eaba81b32c9035b425cb0002749184
parent05dd04b218f42c57a14e330fd8583995f141ed6b
net: bridge: Extract a helper to handle bridge_binding toggles

Currently, the BROPT_VLAN_BRIDGE_BINDING bridge option is only toggled when
VLAN devices are added on top of a bridge or removed from it. Extract the
toggling of the option to a function so that it could be invoked by a
subsequent patch when the state of an upper VLAN device changes.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/a7455f6fe1dfa7b13126ed8a7fb33d3b611eecb8.1734540770.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_vlan.c