diff options
author | Jay Vosburgh <fubar@us.ibm.com> | 2008-10-30 17:41:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-12-18 09:13:35 -0800 |
commit | a552aa81bff628f609dd2df579af703646b1a80c (patch) | |
tree | f99ec95913516e41f30fd4f804b7c712f8d01294 | |
parent | 771b8e4021178328d9c431d0b3ee7a5246fad856 (diff) | |
download | lwn-a552aa81bff628f609dd2df579af703646b1a80c.tar.gz lwn-a552aa81bff628f609dd2df579af703646b1a80c.zip |
bonding: fix miimon failure counter
commit fba4acda35f3119328bcba28aacefae14245d2bb upstream.
During the rework of the mii monitor for:
commit f0c76d61779b153dbfb955db3f144c62d02173c2
Author: Jay Vosburgh <fubar@us.ibm.com>
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@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/net/bonding/bond_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index c792138511e6..1b9c4dc6f0cf 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -2370,6 +2370,9 @@ static void bond_miimon_commit(struct bonding *bond) 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 || |