diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 14:53:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-23 00:38:43 +0100 |
commit | 0fff060877426f3faf6754c201e28cd5b34756c0 (patch) | |
tree | fa4c65b3091a5a8d244e1932c0ce27391aba4c84 /drivers/net/bonding/bond_netlink.c | |
parent | bonding: convert primary_reselect to use the new option API (diff) | |
download | linux-0fff060877426f3faf6754c201e28cd5b34756c0.tar.xz linux-0fff060877426f3faf6754c201e28cd5b34756c0.zip |
bonding: convert use_carrier to use the new option API
This patch adds the necessary changes so use_carrier 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 709e93861771..2175e1926e5a 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c @@ -156,7 +156,8 @@ static int bond_changelink(struct net_device *bond_dev, if (data[IFLA_BOND_USE_CARRIER]) { int use_carrier = nla_get_u8(data[IFLA_BOND_USE_CARRIER]); - err = bond_option_use_carrier_set(bond, use_carrier); + bond_opt_initval(&newval, use_carrier); + err = __bond_opt_set(bond, BOND_OPT_USE_CARRIER, &newval); if (err) return err; } |