Commit 6ab2c00
Hangbin Liu
bonding: do failover when high prio link up
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2092194
Upstream Status: net.git commit e95cc44
commit e95cc44
Author: Hangbin Liu <liuhangbin@gmail.com>
Date: Mon Dec 12 11:56:46 2022 +0800
bonding: do failover when high prio link up
Currently, when a high prio link enslaved, or when current link down,
the high prio port could be selected. But when high prio link up, the
new active slave reselection is not triggered. Fix it by checking link's
prio when getting up. Making the do_failover after looping all slaves as
there may be multi high prio slaves up.
Reported-by: Liang Li <liali@redhat.com>
Fixes: 0a2ff7c ("Bonding: add per-port priority for failover re-selection")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Hangbin Liu <haliu@redhat.com>1 parent 56eb9e4 commit 6ab2c00
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2653 | 2653 | | |
2654 | 2654 | | |
2655 | 2655 | | |
2656 | | - | |
2657 | 2656 | | |
| 2657 | + | |
| 2658 | + | |
2658 | 2659 | | |
2659 | 2660 | | |
2660 | 2661 | | |
| |||
2698 | 2699 | | |
2699 | 2700 | | |
2700 | 2701 | | |
2701 | | - | |
2702 | | - | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
2703 | 2705 | | |
2704 | 2706 | | |
2705 | 2707 | | |
| |||
2720 | 2722 | | |
2721 | 2723 | | |
2722 | 2724 | | |
2723 | | - | |
| 2725 | + | |
2724 | 2726 | | |
2725 | 2727 | | |
2726 | 2728 | | |
| |||
2731 | 2733 | | |
2732 | 2734 | | |
2733 | 2735 | | |
| 2736 | + | |
2734 | 2737 | | |
2735 | | - | |
| 2738 | + | |
2736 | 2739 | | |
2737 | 2740 | | |
2738 | 2741 | | |
| |||
3530 | 3533 | | |
3531 | 3534 | | |
3532 | 3535 | | |
| 3536 | + | |
3533 | 3537 | | |
3534 | 3538 | | |
3535 | 3539 | | |
| |||
3559 | 3563 | | |
3560 | 3564 | | |
3561 | 3565 | | |
3562 | | - | |
3563 | | - | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
3564 | 3569 | | |
3565 | 3570 | | |
3566 | 3571 | | |
| |||
3579 | 3584 | | |
3580 | 3585 | | |
3581 | 3586 | | |
3582 | | - | |
| 3587 | + | |
3583 | 3588 | | |
3584 | 3589 | | |
3585 | 3590 | | |
| |||
3603 | 3608 | | |
3604 | 3609 | | |
3605 | 3610 | | |
| 3611 | + | |
3606 | 3612 | | |
3607 | | - | |
| 3613 | + | |
3608 | 3614 | | |
3609 | 3615 | | |
3610 | 3616 | | |
| |||
0 commit comments