diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 13:53:33 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-22 23:38:43 (GMT) |
commit | 388d3a6d4aa356b885bcd023c185060df9ea2484 (patch) | |
tree | 4d48b059fc62aac5d47907eca55cc1f10379636c /drivers/net/bonding/bond_procfs.c | |
parent | 180222f08861d8206b3ff1c6392101e29d4ae161 (diff) | |
download | linux-388d3a6d4aa356b885bcd023c185060df9ea2484.tar.xz |
bonding: convert primary_reselect to use the new option API
This patch adds the necessary changes so primary_reselect 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_procfs.c')
-rw-r--r-- | drivers/net/bonding/bond_procfs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c index d28c3d7..3ac20e7 100644 --- a/drivers/net/bonding/bond_procfs.c +++ b/drivers/net/bonding/bond_procfs.c @@ -97,9 +97,12 @@ static void bond_info_show_master(struct seq_file *seq) seq_printf(seq, "Primary Slave: %s", (bond->primary_slave) ? bond->primary_slave->dev->name : "None"); - if (bond->primary_slave) + if (bond->primary_slave) { + optval = bond_opt_get_val(BOND_OPT_PRIMARY_RESELECT, + bond->params.primary_reselect); seq_printf(seq, " (primary_reselect %s)", - pri_reselect_tbl[bond->params.primary_reselect].modename); + optval->string); + } seq_printf(seq, "\nCurrently Active Slave: %s\n", (curr) ? curr->dev->name : "None"); |