bridge: switchdev: Reflect MAB bridge port flag to device drivers
authorIdo Schimmel <idosch@nvidia.com>
Tue, 8 Nov 2022 10:47:09 +0000 (11:47 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Nov 2022 03:06:14 +0000 (19:06 -0800)
commit9c0ca02bace4837d123e1a5a30f6f44dbdc5fb92
tree404d370805ddb37b08a474dd595cb5200f39f9f9
parent27fabd02abf30a9df9899f92d467591c7eabb1ba
bridge: switchdev: Reflect MAB bridge port flag to device drivers

Reflect the 'BR_PORT_MAB' flag to device drivers so that:

* Drivers that support MAB could act upon the flag being toggled.
* Drivers that do not support MAB will prevent MAB from being enabled.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_switchdev.c