diff options
-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 832739f38db4..85de1d04d1ee 100644 --- 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) | |||
2376 | continue; | 2376 | continue; |
2377 | 2377 | ||
2378 | case BOND_LINK_DOWN: | 2378 | case BOND_LINK_DOWN: |
2379 | if (slave->link_failure_count < UINT_MAX) | ||
2380 | slave->link_failure_count++; | ||
2381 | |||
2379 | slave->link = BOND_LINK_DOWN; | 2382 | slave->link = BOND_LINK_DOWN; |
2380 | 2383 | ||
2381 | if (bond->params.mode == BOND_MODE_ACTIVEBACKUP || | 2384 | if (bond->params.mode == BOND_MODE_ACTIVEBACKUP || |