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>
This commit is contained in:

committed by
David S. Miller

parent
88ead97710
commit
ec87fd3b4e
@@ -30,8 +30,6 @@
|
||||
|
||||
#define BOND_MAX_ARP_TARGETS 16
|
||||
|
||||
extern struct list_head bond_dev_list;
|
||||
|
||||
#define IS_UP(dev) \
|
||||
((((dev)->flags & IFF_UP) == IFF_UP) && \
|
||||
netif_running(dev) && \
|
||||
@@ -327,7 +325,7 @@ static inline void bond_unset_master_alb_flags(struct bonding *bond)
|
||||
|
||||
struct vlan_entry *bond_next_vlan(struct bonding *bond, struct vlan_entry *curr);
|
||||
int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev);
|
||||
int bond_create(const char *name);
|
||||
int bond_create(struct net *net, const char *name);
|
||||
int bond_release_and_destroy(struct net_device *bond_dev, struct net_device *slave_dev);
|
||||
int bond_create_sysfs(void);
|
||||
void bond_destroy_sysfs(void);
|
||||
@@ -346,8 +344,16 @@ void bond_change_active_slave(struct bonding *bond, struct slave *new_active);
|
||||
void bond_register_arp(struct bonding *);
|
||||
void bond_unregister_arp(struct bonding *);
|
||||
|
||||
struct bond_net {
|
||||
struct net * net; /* Associated network namespace */
|
||||
struct list_head dev_list;
|
||||
#ifdef CONFIG_PROC_FS
|
||||
struct proc_dir_entry * proc_dir;
|
||||
#endif
|
||||
};
|
||||
|
||||
/* exported from bond_main.c */
|
||||
extern struct list_head bond_dev_list;
|
||||
extern int bond_net_id;
|
||||
extern const struct bond_parm_tbl bond_lacp_tbl[];
|
||||
extern const struct bond_parm_tbl bond_mode_tbl[];
|
||||
extern const struct bond_parm_tbl xmit_hashtype_tbl[];
|
||||
|
Reference in New Issue
Block a user