diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 08:53:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-22 18:38:41 -0500 |
commit | a4b32ce7f891d507aa663bc78118ef267f0d6d4c (patch) | |
tree | 292a816b471d2aac09e070835eaf6535b70df2f9 /drivers/net/bonding/bond_procfs.c | |
parent | aa59d8517d1017e571b803ba6302c4b693b324ab (diff) |
bonding: convert xmit_hash_policy to use the new option API
This patch adds the necessary changes so xmit_hash_policy would use the
new bonding option API. Also fix some trivial/style errors.
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c index 8515b3442583..edb7c184de39 100644 --- a/drivers/net/bonding/bond_procfs.c +++ b/drivers/net/bonding/bond_procfs.c | |||
@@ -65,6 +65,7 @@ static void bond_info_seq_stop(struct seq_file *seq, void *v) | |||
65 | static void bond_info_show_master(struct seq_file *seq) | 65 | static void bond_info_show_master(struct seq_file *seq) |
66 | { | 66 | { |
67 | struct bonding *bond = seq->private; | 67 | struct bonding *bond = seq->private; |
68 | struct bond_opt_value *optval; | ||
68 | struct slave *curr; | 69 | struct slave *curr; |
69 | int i; | 70 | int i; |
70 | 71 | ||
@@ -84,9 +85,10 @@ static void bond_info_show_master(struct seq_file *seq) | |||
84 | 85 | ||
85 | if (bond->params.mode == BOND_MODE_XOR || | 86 | if (bond->params.mode == BOND_MODE_XOR || |
86 | bond->params.mode == BOND_MODE_8023AD) { | 87 | bond->params.mode == BOND_MODE_8023AD) { |
88 | optval = bond_opt_get_val(BOND_OPT_XMIT_HASH, | ||
89 | bond->params.xmit_policy); | ||
87 | seq_printf(seq, "Transmit Hash Policy: %s (%d)\n", | 90 | seq_printf(seq, "Transmit Hash Policy: %s (%d)\n", |
88 | xmit_hashtype_tbl[bond->params.xmit_policy].modename, | 91 | optval->string, bond->params.xmit_policy); |
89 | bond->params.xmit_policy); | ||
90 | } | 92 | } |
91 | 93 | ||
92 | if (USES_PRIMARY(bond->params.mode)) { | 94 | if (USES_PRIMARY(bond->params.mode)) { |