bonding: convert mode setting to use the new option API
This patch makes the bond's mode setting use the new option API and adds support for dependency printing which relies on having an entry for the mode option in the bond_opts[] array. Also add the ability to print the mode name when mode dependency fails and fix some trivial/style errors. Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0911736245
commit
2b3798d5e1
@@ -452,7 +452,6 @@ void bond_setup(struct net_device *bond_dev);
|
||||
unsigned int bond_get_num_tx_queues(void);
|
||||
int bond_netlink_init(void);
|
||||
void bond_netlink_fini(void);
|
||||
int bond_option_mode_set(struct bonding *bond, int mode);
|
||||
int bond_option_active_slave_set(struct bonding *bond, struct net_device *slave_dev);
|
||||
int bond_option_miimon_set(struct bonding *bond, int miimon);
|
||||
int bond_option_updelay_set(struct bonding *bond, int updelay);
|
||||
@@ -563,7 +562,6 @@ static inline int bond_get_targets_ip(__be32 *targets, __be32 ip)
|
||||
/* exported from bond_main.c */
|
||||
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[];
|
||||
extern const struct bond_parm_tbl arp_validate_tbl[];
|
||||
extern const struct bond_parm_tbl arp_all_targets_tbl[];
|
||||
|
Reference in New Issue
Block a user