bridge: switchdev: Notify about VLAN protocol changes
authorDanielle Ratson <danieller@nvidia.com>
Sun, 29 Nov 2020 12:54:05 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Dec 2022 16:39:57 +0000 (17:39 +0100)
commit89a7f155e6b2b7626fa1a978c7ec04a3a0b7ddef
tree6ad2348bf84f40c87fcd8a4e3cdaba1e3a33037a
parentf5cbd86ebf284be5d175d6e8aba67956ef16c44f
bridge: switchdev: Notify about VLAN protocol changes

[ Upstream commit 22ec19f3aee327806c37c9fa1188741574bc6445 ]

Drivers that support bridge offload need to be notified about changes to
the bridge's VLAN protocol so that they could react accordingly and
potentially veto the change.

Add a new switchdev attribute to communicate the change to drivers.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 9d45921ee4cb ("bridge: switchdev: Fix memory leaks when changing VLAN protocol")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/switchdev.h
net/bridge/br_vlan.c