bridge: switchdev: Notify about VLAN protocol changes
authorDanielle Ratson <danieller@nvidia.com>
Sun, 29 Nov 2020 12:54:05 +0000 (14:54 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Dec 2020 23:21:13 +0000 (15:21 -0800)
commit22ec19f3aee327806c37c9fa1188741574bc6445
treed2114c5b1bef4d6862c86a667fadfa269ec109cf
parent80dfeafd64792a634054bfde63018aa564d82f0f
bridge: switchdev: Notify about VLAN protocol changes

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>
include/net/switchdev.h
net/bridge/br_vlan.c