diff options
author | sfeldma@cumulusnetworks.com <sfeldma@cumulusnetworks.com> | 2013-12-18 00:30:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-19 18:32:09 -0500 |
commit | 7d1010082785b2020b1e2e1211b76209976a33df (patch) | |
tree | 94015cde239f0866b52c4b12167552db3a245264 /drivers/net/bonding/bond_options.c | |
parent | 1cc0b1e30c662d84a89690f42826cf49e2278b97 (diff) |
bonding: add min_links attribute netlink support
Add IFLA_BOND_MIN_LINKS to allow get/set of bonding parameter
min_links via netlink.
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_options.c')
-rw-r--r-- | drivers/net/bonding/bond_options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c index cbd832293da4..da49ac4a8d8e 100644 --- a/drivers/net/bonding/bond_options.c +++ b/drivers/net/bonding/bond_options.c | |||
@@ -611,3 +611,12 @@ int bond_option_all_slaves_active_set(struct bonding *bond, | |||
611 | 611 | ||
612 | return 0; | 612 | return 0; |
613 | } | 613 | } |
614 | |||
615 | int bond_option_min_links_set(struct bonding *bond, int min_links) | ||
616 | { | ||
617 | pr_info("%s: Setting min links value to %u\n", | ||
618 | bond->dev->name, min_links); | ||
619 | bond->params.min_links = min_links; | ||
620 | |||
621 | return 0; | ||
622 | } | ||