aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2005-11-09 13:35:13 -0500
committerJohn W. Linville <linville@tuxdriver.com>2005-11-13 14:48:18 -0500
commitc61b75ad03f3a30ef247cac27406f030c10628b0 (patch)
treede59b51dc8b2906981e360b48567d28ccbd14167 /drivers/net/bonding/bond_main.c
parent2ac47660f9b4d0ea1a2ab9becba03c14ef5d9b99 (diff)
[PATCH] bonding: Add transmit policy to /proc
Adds information about the recently-added transmit policy setting to each bond's /proc file. Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Acked-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 9a2d266a0abb..9d9f027a9af4 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3269,6 +3269,13 @@ static void bond_info_show_master(struct seq_file *seq)
3269 seq_printf(seq, "Bonding Mode: %s\n", 3269 seq_printf(seq, "Bonding Mode: %s\n",
3270 bond_mode_name(bond->params.mode)); 3270 bond_mode_name(bond->params.mode));
3271 3271
3272 if (bond->params.mode == BOND_MODE_XOR ||
3273 bond->params.mode == BOND_MODE_8023AD) {
3274 seq_printf(seq, "Transmit Hash Policy: %s (%d)\n",
3275 xmit_hashtype_tbl[bond->params.xmit_policy].modename,
3276 bond->params.xmit_policy);
3277 }
3278
3272 if (USES_PRIMARY(bond->params.mode)) { 3279 if (USES_PRIMARY(bond->params.mode)) {
3273 seq_printf(seq, "Primary Slave: %s\n", 3280 seq_printf(seq, "Primary Slave: %s\n",
3274 (bond->params.primary[0]) ? 3281 (bond->params.primary[0]) ?