mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
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>
This commit is contained in:
parent
7d0888d52f
commit
1e16f382ae
@ -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)))
|
||||
|
||||
/*
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user