Skip to content

Commit

Permalink
bonding: fix miimon failure counter
Browse files Browse the repository at this point in the history
During the rework of the mii monitor for:

  commit f0c76d6
  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>
  • Loading branch information
Jay Vosburgh authored and Jeff Garzik committed Oct 31, 2008
1 parent 48e5eca commit fba4acd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit fba4acd

Please sign in to comment.