]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: use switchdev for port flags set through sysfs too
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 7 Feb 2021 19:47:33 +0000 (21:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Feb 2021 23:43:19 +0000 (15:43 -0800)
commit8037870cd9fc39421bf207eb27c656dc01ddcc7d
treed6fba4346cd4a65f4bf7291a44b7759629dde603
parentf0e90f9f7897b95ffdc5e853794c6ffafcf1528d
net: bridge: use switchdev for port flags set through sysfs too

Looking through patchwork I don't see that there was any consensus to
use switchdev notifiers only in case of netlink provided port flags but
not sysfs (as a sort of deprecation, punishment or anything like that),
so we should probably keep the user interface consistent in terms of
functionality.

http://patchwork.ozlabs.org/project/netdev/patch/20170605092043.3523-3-jiri@resnulli.us/
http://patchwork.ozlabs.org/project/netdev/patch/20170608064428.4785-3-jiri@resnulli.us/

Fixes: 3cccb5d07e11 ("net: bridge: Add support for offloading port attributes")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_sysfs_if.c