summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_options.c
diff options
context:
space:
mode:
authorsfeldma@cumulusnetworks.com2013-12-18 06:30:09 +0100
committerDavid S. Miller2013-12-20 00:32:09 +0100
commit2c9839c143bbc8c6612f56351dae8d57111aee37 (patch)
tree94e73e0c75f6c83cd00ff5dc03e61dba3b440cca /drivers/net/bonding/bond_options.c
parentMerge branch 'for-davem' of git://gitorious.org/linux-can/linux-can-next (diff)
downloadkernel-qcow2-linux-2c9839c143bbc8c6612f56351dae8d57111aee37.tar.gz
kernel-qcow2-linux-2c9839c143bbc8c6612f56351dae8d57111aee37.tar.xz
kernel-qcow2-linux-2c9839c143bbc8c6612f56351dae8d57111aee37.zip
bonding: add num_grat_arp attribute netlink support
Add IFLA_BOND_NUM_PEER_NOTIF to allow get/set of bonding parameter num_grat_arp via netlink. Bonding parameter num_unsol_na is synonymous with num_grat_arp, so add only one netlink attribute to represent both bonding parameters. 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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c
index 1ed7dff9a679..01a966916dcb 100644
--- a/drivers/net/bonding/bond_options.c
+++ b/drivers/net/bonding/bond_options.c
@@ -576,3 +576,9 @@ int bond_option_resend_igmp_set(struct bonding *bond, int resend_igmp)
return 0;
}
+
+int bond_option_num_peer_notif_set(struct bonding *bond, int num_peer_notif)
+{
+ bond->params.num_peer_notif = num_peer_notif;
+ return 0;
+}