Skip to contentSkip to conversation

bonding: display xmit_hash_policy for non-dynamic-tlb mode

PATCH In review Mahesh Bandewar 1 participant 1 message Sep 3, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bonding: display xmit_hash_policy for non-dynamic-tlb mode

It's 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).

---
 drivers/net/bonding/bond_procfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/bonding/bond_procfs.c +2 -1
index de62c0385dfb..ebcf63a6ddf0 100644
@@ -84,7 +84,8 @@ static void bond_info_show_master(struct seq_file *seq)
 	seq_printf(seq, "\n");
 
 	if (BOND_MODE(bond) == BOND_MODE_XOR ||
-		BOND_MODE(bond) == BOND_MODE_8023AD) {
+		BOND_MODE(bond) == BOND_MODE_8023AD ||
+		bond_is_nondyn_tlb(bond)) {
 		optval = bond_opt_get_val(BOND_OPT_XMIT_HASH,
 					  bond->params.xmit_policy);
 		seq_printf(seq, "Transmit Hash Policy: %s (%d)\n",
Signature · 1 line
2.1.0.rc2.206.gedb03e5