1
0
Fork 0

net: bridge: add warning comments to avoid extending sysfs

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>
master
Nikolay Aleksandrov 2021-01-29 13:51:42 +02:00 committed by Jakub Kicinski
parent 7d0888d52f
commit 1e16f382ae
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,10 @@
#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)))
/*

View File

@ -17,6 +17,10 @@
#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 *);