diff options
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 79a13d1c2573..0f4a74bc6a9b 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -139,6 +139,10 @@ struct net_bridge_port | |||
139 | struct hlist_head mglist; | 139 | struct hlist_head mglist; |
140 | struct hlist_node rlist; | 140 | struct hlist_node rlist; |
141 | #endif | 141 | #endif |
142 | |||
143 | #ifdef CONFIG_SYSFS | ||
144 | char sysfs_name[IFNAMSIZ]; | ||
145 | #endif | ||
142 | }; | 146 | }; |
143 | 147 | ||
144 | struct br_cpu_netstats { | 148 | struct br_cpu_netstats { |
@@ -480,6 +484,7 @@ extern void br_ifinfo_notify(int event, struct net_bridge_port *port); | |||
480 | /* br_sysfs_if.c */ | 484 | /* br_sysfs_if.c */ |
481 | extern const struct sysfs_ops brport_sysfs_ops; | 485 | extern const struct sysfs_ops brport_sysfs_ops; |
482 | extern int br_sysfs_addif(struct net_bridge_port *p); | 486 | extern int br_sysfs_addif(struct net_bridge_port *p); |
487 | extern int br_sysfs_renameif(struct net_bridge_port *p); | ||
483 | 488 | ||
484 | /* br_sysfs_br.c */ | 489 | /* br_sysfs_br.c */ |
485 | extern int br_sysfs_addbr(struct net_device *dev); | 490 | extern int br_sysfs_addbr(struct net_device *dev); |
@@ -488,6 +493,7 @@ extern void br_sysfs_delbr(struct net_device *dev); | |||
488 | #else | 493 | #else |
489 | 494 | ||
490 | #define br_sysfs_addif(p) (0) | 495 | #define br_sysfs_addif(p) (0) |
496 | #define br_sysfs_renameif(p) (0) | ||
491 | #define br_sysfs_addbr(dev) (0) | 497 | #define br_sysfs_addbr(dev) (0) |
492 | #define br_sysfs_delbr(dev) do { } while(0) | 498 | #define br_sysfs_delbr(dev) do { } while(0) |
493 | #endif /* CONFIG_SYSFS */ | 499 | #endif /* CONFIG_SYSFS */ |