]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Mar 2021 10:27:43 +0000 (11:27 +0100)
commitd3edbf396d543abf347cd31cd2b087e8cbf8fae9
tree90867aefad8a37725c0f476a4dfc6fada05ff26c
parentd982111073ca39e93ccacdf3e5e4260a27b0f806
net: bridge: use switchdev for port flags set through sysfs too

commit 8043c845b63a2dd88daf2d2d268a33e1872800f0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_sysfs_if.c