mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +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
2 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue