net: bridge: add warning comments to avoid extending sysfs
authorNikolay Aleksandrov <nikolay@nvidia.com>
Fri, 29 Jan 2021 11:51:42 +0000 (13:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Jan 2021 05:33:02 +0000 (21:33 -0800)
We're moving to netlink-only options, so add comments in the bridge's
sysfs files to warn against adding any new sysfs entries.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_sysfs_br.c
net/bridge/br_sysfs_if.c

index 7db06e3f642a093a41e22bb72e339d91b854b731..71f0f671c4ef4a5d4cacf1531c1df645b767d88e 100644 (file)
 
 #include "br_private.h"
 
+/* IMPORTANT: new bridge options must be added with netlink support only
+ *            please do not add new sysfs entries
+ */
+
 #define to_bridge(cd)  ((struct net_bridge *)netdev_priv(to_net_dev(cd)))
 
 /*
index 7a59cdddd3ce3b64a9a6899e6d0d14f0fd79e91c..96ff63cde1beb194a1788d11d38b494f7d1374a5 100644 (file)
 
 #include "br_private.h"
 
+/* IMPORTANT: new bridge port options must be added with netlink support only
+ *            please do not add new sysfs entries
+ */
+
 struct brport_attribute {
        struct attribute        attr;
        ssize_t (*show)(struct net_bridge_port *, char *);