[patch 02/22] bonding: fix miimon failure counter

From: Greg KH
Date: Tue Dec 16 2008 - 19:05:59 EST


2.6.27-stable review patch. If anyone has any objections, please let us know.

------------------

From: Jay Vosburgh <fubar@xxxxxxxxxx>

commit fba4acda35f3119328bcba28aacefae14245d2bb upstream.

During the rework of the mii monitor for:

commit f0c76d61779b153dbfb955db3f144c62d02173c2
Author: Jay Vosburgh <fubar@xxxxxxxxxx>
Date: Wed Jul 2 18:21:58 2008 -0700

bonding: refactor mii monitor

I left out the increment of the link failure counter. This
patch corrects that omission.

Signed-off-by: Jay Vosburgh <fubar@xxxxxxxxxx>
Signed-off-by: Jeff Garzik <jgarzik@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

---
drivers/net/bonding/bond_main.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -2370,6 +2370,9 @@ static void bond_miimon_commit(struct bo
continue;

case BOND_LINK_DOWN:
+ if (slave->link_failure_count < UINT_MAX)
+ slave->link_failure_count++;
+
slave->link = BOND_LINK_DOWN;

if (bond->params.mode == BOND_MODE_ACTIVEBACKUP ||

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/