diff options
author | Eric W. Biederman <ebiederm@aristanetworks.com> | 2009-10-29 10:18:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-30 15:41:21 -0400 |
commit | ec87fd3b4e111e8bc367d247a963e27e5b86df26 (patch) | |
tree | 8c33611b3e0afb37bcad232c2ad8d8f52d469634 /drivers/net/bonding/bonding.h | |
parent | 88ead977109da926a03068e277869ea8fedd170d (diff) |
bond: Add support for multiple network namespaces
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 013be296f0da..a51ae7dc8d51 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -30,8 +30,6 @@ | |||
30 | 30 | ||
31 | #define BOND_MAX_ARP_TARGETS 16 | 31 | #define BOND_MAX_ARP_TARGETS 16 |
32 | 32 | ||
33 | extern struct list_head bond_dev_list; | ||
34 | |||
35 | #define IS_UP(dev) \ | 33 | #define IS_UP(dev) \ |
36 | ((((dev)->flags & IFF_UP) == IFF_UP) && \ | 34 | ((((dev)->flags & IFF_UP) == IFF_UP) && \ |
37 | netif_running(dev) && \ | 35 | netif_running(dev) && \ |
@@ -327,7 +325,7 @@ static inline void bond_unset_master_alb_flags(struct bonding *bond) | |||
327 | 325 | ||
328 | struct vlan_entry *bond_next_vlan(struct bonding *bond, struct vlan_entry *curr); | 326 | struct vlan_entry *bond_next_vlan(struct bonding *bond, struct vlan_entry *curr); |
329 | int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev); | 327 | int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev); |
330 | int bond_create(const char *name); | 328 | int bond_create(struct net *net, const char *name); |
331 | int bond_release_and_destroy(struct net_device *bond_dev, struct net_device *slave_dev); | 329 | int bond_release_and_destroy(struct net_device *bond_dev, struct net_device *slave_dev); |
332 | int bond_create_sysfs(void); | 330 | int bond_create_sysfs(void); |
333 | void bond_destroy_sysfs(void); | 331 | void bond_destroy_sysfs(void); |
@@ -346,8 +344,16 @@ void bond_change_active_slave(struct bonding *bond, struct slave *new_active); | |||
346 | void bond_register_arp(struct bonding *); | 344 | void bond_register_arp(struct bonding *); |
347 | void bond_unregister_arp(struct bonding *); | 345 | void bond_unregister_arp(struct bonding *); |
348 | 346 | ||
347 | struct bond_net { | ||
348 | struct net * net; /* Associated network namespace */ | ||
349 | struct list_head dev_list; | ||
350 | #ifdef CONFIG_PROC_FS | ||
351 | struct proc_dir_entry * proc_dir; | ||
352 | #endif | ||
353 | }; | ||
354 | |||
349 | /* exported from bond_main.c */ | 355 | /* exported from bond_main.c */ |
350 | extern struct list_head bond_dev_list; | 356 | extern int bond_net_id; |
351 | extern const struct bond_parm_tbl bond_lacp_tbl[]; | 357 | extern const struct bond_parm_tbl bond_lacp_tbl[]; |
352 | extern const struct bond_parm_tbl bond_mode_tbl[]; | 358 | extern const struct bond_parm_tbl bond_mode_tbl[]; |
353 | extern const struct bond_parm_tbl xmit_hashtype_tbl[]; | 359 | extern const struct bond_parm_tbl xmit_hashtype_tbl[]; |