Commit 548d28bd authored by Nikolay Aleksandrov's avatar Nikolay Aleksandrov Committed by David S. Miller

bonding: fix ad_select module param check

Obvious copy/paste error when I converted the ad_select to the new
option API. "lacp_rate" there should be "ad_select" so we can get the
proper value.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: David S. Miller <davem@davemloft.net>

Fixes: 9e5f5eeb ("bonding: convert ad_select to use the new option
API")
Reported-by: default avatarKarim Scheik <karim.scheik@prisma-solutions.at>
Signed-off-by: default avatarNikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a8a3e41c
...@@ -4068,7 +4068,7 @@ static int bond_check_params(struct bond_params *params) ...@@ -4068,7 +4068,7 @@ static int bond_check_params(struct bond_params *params)
} }
if (ad_select) { if (ad_select) {
bond_opt_initstr(&newval, lacp_rate); bond_opt_initstr(&newval, ad_select);
valptr = bond_opt_parse(bond_opt_get(BOND_OPT_AD_SELECT), valptr = bond_opt_parse(bond_opt_get(BOND_OPT_AD_SELECT),
&newval); &newval);
if (!valptr) { if (!valptr) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment