Adds information about the recently-added transmit policy setting to each bond's /proc file.
Signed-off-by: Mitch Williams <[EMAIL PROTECTED]> diff -urpN -X dontdiff linux-2.6.14-release/drivers/net/bonding/bond_main.c linux-2.6.14/drivers/net/bonding/bond_main.c --- linux-2.6.14-release/drivers/net/bonding/bond_main.c 2005-11-08 11:12:21.000000000 -0800 +++ linux-2.6.14/drivers/net/bonding/bond_main.c 2005-11-08 11:12:31.000000000 -0800 @@ -3277,6 +3277,13 @@ static void bond_info_show_master(struct 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]) ? - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html