|
@@ -186,7 +186,7 @@ static const struct bond_opt_value bond_tlb_dynamic_lb_tbl[] = {
|
|
|
{ NULL, -1, 0}
|
|
{ NULL, -1, 0}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-static const struct bond_option bond_opts[] = {
|
|
|
|
|
|
|
+static const struct bond_option bond_opts[BOND_OPT_LAST] = {
|
|
|
[BOND_OPT_MODE] = {
|
|
[BOND_OPT_MODE] = {
|
|
|
.id = BOND_OPT_MODE,
|
|
.id = BOND_OPT_MODE,
|
|
|
.name = "mode",
|
|
.name = "mode",
|
|
@@ -379,8 +379,7 @@ static const struct bond_option bond_opts[] = {
|
|
|
.values = bond_tlb_dynamic_lb_tbl,
|
|
.values = bond_tlb_dynamic_lb_tbl,
|
|
|
.flags = BOND_OPTFLAG_IFDOWN,
|
|
.flags = BOND_OPTFLAG_IFDOWN,
|
|
|
.set = bond_option_tlb_dynamic_lb_set,
|
|
.set = bond_option_tlb_dynamic_lb_set,
|
|
|
- },
|
|
|
|
|
- { }
|
|
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/* Searches for an option by name */
|
|
/* Searches for an option by name */
|