diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 14:53:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-23 00:38:44 +0100 |
commit | 105c8fb6c55e9c5055798184cbb5ef61343139b4 (patch) | |
tree | 10ed2ce36463669b5404d871ded923884dd64ca4 /drivers/net/bonding/bond_netlink.c | |
parent | bonding: convert all_slaves_active to use the new option API (diff) | |
download | linux-105c8fb6c55e9c5055798184cbb5ef61343139b4.tar.xz linux-105c8fb6c55e9c5055798184cbb5ef61343139b4.zip |
bonding: convert resend_igmp to use the new option API
This patch adds the necessary changes so resend_igmp would use
the new bonding option API.
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_netlink.c')
-rw-r--r-- | drivers/net/bonding/bond_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c index 828013a16c52..1e099c6e5dda 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c @@ -265,7 +265,8 @@ static int bond_changelink(struct net_device *bond_dev, int resend_igmp = nla_get_u32(data[IFLA_BOND_RESEND_IGMP]); - err = bond_option_resend_igmp_set(bond, resend_igmp); + bond_opt_initval(&newval, resend_igmp); + err = __bond_opt_set(bond, BOND_OPT_RESEND_IGMP, &newval); if (err) return err; } |