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>
此提交包含在:
@@ -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;
|
||||
}
|
||||
|
新增問題並參考
封鎖使用者