diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2005-11-09 13:36:41 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2005-11-13 14:48:21 -0500 |
commit | b76cdba9cdb29b091cacb4c11534ffb2eac02f64 (patch) | |
tree | a9125448834fd8daf6ae50bfa376d6a6ee697425 /drivers/net/bonding/bonding.h | |
parent | 4756b02f558cbbbef5ae278fd3bbed778458c124 (diff) |
[PATCH] bonding: add sysfs functionality to bonding (large)
This large patch adds sysfs functionality to the channel bonding module.
Bonds can be added, removed, and reconfigured at runtime without having
to reload the module. Multiple bonds with different configurations are
easily configured, and ifenslave is no longer required to configure bonds.
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 863605aab204..903e60aa611e 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/timer.h> | 37 | #include <linux/timer.h> |
38 | #include <linux/proc_fs.h> | 38 | #include <linux/proc_fs.h> |
39 | #include <linux/if_bonding.h> | 39 | #include <linux/if_bonding.h> |
40 | #include <linux/kobject.h> | ||
40 | #include "bond_3ad.h" | 41 | #include "bond_3ad.h" |
41 | #include "bond_alb.h" | 42 | #include "bond_alb.h" |
42 | 43 | ||
@@ -262,6 +263,12 @@ struct vlan_entry *bond_next_vlan(struct bonding *bond, struct vlan_entry *curr) | |||
262 | int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev); | 263 | int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev); |
263 | int bond_create(char *name, struct bond_params *params, struct bonding **newbond); | 264 | int bond_create(char *name, struct bond_params *params, struct bonding **newbond); |
264 | void bond_deinit(struct net_device *bond_dev); | 265 | void bond_deinit(struct net_device *bond_dev); |
266 | int bond_create_sysfs(void); | ||
267 | void bond_destroy_sysfs(void); | ||
268 | void bond_destroy_sysfs_entry(struct bonding *bond); | ||
269 | int bond_create_sysfs_entry(struct bonding *bond); | ||
270 | int bond_create_slave_symlinks(struct net_device *master, struct net_device *slave); | ||
271 | void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave); | ||
265 | int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev); | 272 | int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev); |
266 | int bond_release(struct net_device *bond_dev, struct net_device *slave_dev); | 273 | int bond_release(struct net_device *bond_dev, struct net_device *slave_dev); |
267 | int bond_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev); | 274 | int bond_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev); |