]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/bonding/bond_main.c
[PATCH] bonding: Add transmit policy to /proc
[linux-2.6-omap-h63xx.git] / drivers / net / bonding / bond_main.c
index 9a2d266a0abb6c648c993af173996da7a8cd675c..9d9f027a9af4848b28d5b548efaf377f60ce869c 100644 (file)
@@ -3269,6 +3269,13 @@ static void bond_info_show_master(struct seq_file *seq)
        seq_printf(seq, "Bonding Mode: %s\n",
                   bond_mode_name(bond->params.mode));
 
+       if (bond->params.mode == BOND_MODE_XOR ||
+               bond->params.mode == BOND_MODE_8023AD) {
+               seq_printf(seq, "Transmit Hash Policy: %s (%d)\n",
+                       xmit_hashtype_tbl[bond->params.xmit_policy].modename,
+                       bond->params.xmit_policy);
+       }
+
        if (USES_PRIMARY(bond->params.mode)) {
                seq_printf(seq, "Primary Slave: %s\n",
                           (bond->params.primary[0]) ?