]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/bonding/bond_procfs.c
bonding: display xmit_hash_policy for non-dynamic-tlb mode
[karo-tx-linux.git] / drivers / net / bonding / bond_procfs.c
index bb09d0442aa88e0d7a989bf4594551f5d66bbee5..a3948f8d1e533d86502c3efa4eac839dcba0e557 100644 (file)
@@ -73,8 +73,7 @@ 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) {
+       if (bond_mode_uses_xmit_hash(bond)) {
                optval = bond_opt_get_val(BOND_OPT_XMIT_HASH,
                                          bond->params.xmit_policy);
                seq_printf(seq, "Transmit Hash Policy: %s (%d)\n",