projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48e5eca
)
bonding: fix miimon failure counter
author
Jay Vosburgh
<
[email protected]
>
Fri, 31 Oct 2008 00:41:14 +0000
(17:41 -0700)
committer
Jeff Garzik
<
[email protected]
>
Fri, 31 Oct 2008 04:45:51 +0000
(
00:45
-0400)
During the rework of the mii monitor for:
commit
f0c76d61779b153dbfb955db3f144c62d02173c2
Author: Jay Vosburgh <
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Jeff Garzik <
[email protected]
>
drivers/net/bonding/bond_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/bond_main.c
b/drivers/net/bonding/bond_main.c
index 832739f38db4cd43adef5cb922430f2b86fb9ceb..85de1d04d1ee236990685d52b29b3934007ff395 100644
(file)
--- a/
drivers/net/bonding/bond_main.c
+++ b/
drivers/net/bonding/bond_main.c
@@
-2376,6
+2376,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 ||