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)
commit8043c845b63a2dd88daf2d2d268a33e1872800f0
treed6fba4346cd4a65f4bf7291a44b7759629dde603
parent373e13bc63639169708444c4918c65291ec8156f
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: 3922285d96e7 ("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