* [PATCH]-bonding: Fix slave link failure count update failure
@ 2008-12-15 14:22 Narendra_K
2008-12-15 17:05 ` Jay Vosburgh
0 siblings, 1 reply; 2+ messages in thread
From: Narendra_K @ 2008-12-15 14:22 UTC (permalink / raw)
To: fubar; +Cc: netdev
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
Hello,
The "bonding: refactor mii monitor" patch (
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=co
mmit;h=f0c76d61779b153dbfb955db3f144c62d02173c2) misses updating the
slave link failure count. So "cat /proc/net/bonding/bond0" doesn't
reflect the no of slave link failures. The patch addresses it.
Signed-off-by: Narendra K <narendra_k@dell.com>
With regards,
Narendra K
[-- Attachment #2: bond_slave_link_failure_count.patch --]
[-- Type: application/octet-stream, Size: 471 bytes --]
--- linux-2.6.27.9/drivers/net/bonding/bond_main.c 2008-12-14 05:26:16.000000000 +0530
+++ linux-2.6.27.9-new/drivers/net/bonding/bond_main.c 2008-12-15 19:06:48.000000000 +0530
@@ -2241,6 +2241,11 @@
slave->link = BOND_LINK_FAIL;
slave->delay = bond->params.downdelay;
+
+ if (slave->link_failure_count < UINT_MAX) {
+ slave->link_failure_count++;
+ }
+
if (slave->delay) {
printk(KERN_INFO DRV_NAME
": %s: link status down for %s"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]-bonding: Fix slave link failure count update failure
2008-12-15 14:22 [PATCH]-bonding: Fix slave link failure count update failure Narendra_K
@ 2008-12-15 17:05 ` Jay Vosburgh
0 siblings, 0 replies; 2+ messages in thread
From: Jay Vosburgh @ 2008-12-15 17:05 UTC (permalink / raw)
To: Narendra_K; +Cc: netdev
<Narendra_K@Dell.com> wrote:
[...]
>The "bonding: refactor mii monitor" patch (
>http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=co
>mmit;h=f0c76d61779b153dbfb955db3f144c62d02173c2) misses updating the
>slave link failure count. So "cat /proc/net/bonding/bond0" doesn't
>reflect the no of slave link failures. The patch addresses it.
This is already fixed in mainline by:
commit fba4acda35f3119328bcba28aacefae14245d2bb
Author: Jay Vosburgh <fubar@us.ibm.com>
Date: Thu Oct 30 17:41:14 2008 -0700
bonding: fix miimon failure counter
Note that the two patches add the increment to different places,
so applying both of them will result in double increments.
-J
---
-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-15 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 14:22 [PATCH]-bonding: Fix slave link failure count update failure Narendra_K
2008-12-15 17:05 ` Jay Vosburgh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).