bonding: fix miimon failure counter
[linux-2.6.git] / drivers / net / bonding / bond_main.c
index 832739f..85de1d0 100644 (file)
@@ -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 ||