diff options
author | Mahesh Bandewar <maheshb@google.com> | 2014-10-04 20:44:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-06 17:13:07 -0400 |
commit | d7021325a2ea5aaf4458097341c988f9dc93491f (patch) | |
tree | 91b4f16185ebc7ec1c76aebeebde0ea6244f45e7 /drivers/net/bonding/bond_procfs.c | |
parent | 4e62ccd901062c532673f4fda16c484de2c3c8fc (diff) |
bonding: display xmit_hash_policy for non-dynamic-tlb mode
It's a trivial fix to display xmit_hash_policy for this new TLB mode
since it uses transmit-hash-poilicy as part of bonding-master info
(/proc/net/bonding/<bonding-interface).
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Reviewed-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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c index bb09d0442aa8..a3948f8d1e53 100644 --- a/drivers/net/bonding/bond_procfs.c +++ b/drivers/net/bonding/bond_procfs.c | |||
@@ -73,8 +73,7 @@ static void bond_info_show_master(struct seq_file *seq) | |||
73 | 73 | ||
74 | seq_printf(seq, "\n"); | 74 | seq_printf(seq, "\n"); |
75 | 75 | ||
76 | if (BOND_MODE(bond) == BOND_MODE_XOR || | 76 | if (bond_mode_uses_xmit_hash(bond)) { |
77 | BOND_MODE(bond) == BOND_MODE_8023AD) { | ||
78 | optval = bond_opt_get_val(BOND_OPT_XMIT_HASH, | 77 | optval = bond_opt_get_val(BOND_OPT_XMIT_HASH, |
79 | bond->params.xmit_policy); | 78 | bond->params.xmit_policy); |
80 | seq_printf(seq, "Transmit Hash Policy: %s (%d)\n", | 79 | seq_printf(seq, "Transmit Hash Policy: %s (%d)\n", |