bonding: convert ad_select to use the new option API

This patch adds the necessary changes so ad_select would use
the new bonding option API.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
Nikolay Aleksandrov
2014-01-22 14:53:29 +01:00
提交者 David S. Miller
父節點 633ddc9e9b
當前提交 9e5f5eebe7
共有 7 個檔案被更改,包括 41 行新增50 行删除

查看文件

@@ -320,7 +320,8 @@ static int bond_changelink(struct net_device *bond_dev,
int ad_select =
nla_get_u8(data[IFLA_BOND_AD_SELECT]);
err = bond_option_ad_select_set(bond, ad_select);
bond_opt_initval(&newval, ad_select);
err = __bond_opt_set(bond, BOND_OPT_AD_SELECT, &newval);
if (err)
return err;
}