]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix active-backup transition after link failure
authorMahesh Bandewar <maheshb@google.com>
Fri, 6 Dec 2019 23:44:55 +0000 (15:44 -0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 15 Dec 2019 00:22:34 +0000 (16:22 -0800)
commit0752c544094b3a38368dcec1bf034f5460c17c91
tree690090f164e7b8c9f28c3b5e05df5a58ead05853
parent344dfc5ab453c56a2b76e2cc9807060e6e3eb5dd
bonding: fix active-backup transition after link failure

After the recent fix in commit 83d4936fc468 ("bonding: fix state
transition issue in link monitoring"), the active-backup mode with
miimon initially come-up fine but after a link-failure, both members
transition into backup state.

Following steps to reproduce the scenario (eth1 and eth2 are the
slaves of the bond):

    ip link set eth1 up
    ip link set eth2 down
    sleep 1
    ip link set eth2 up
    ip link set eth1 down
    cat /sys/class/net/eth1/bonding_slave/state
    cat /sys/class/net/eth2/bonding_slave/state

Fixes: 83d4936fc468 ("bonding: fix state transition issue in link monitoring")
CC: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/bonding/bond_main.c