mbox series

[net-next,v2,0/2] bonding: fix bond recovery in mode 2

Message ID cover.1669147951.git.jtoppins@redhat.com (mailing list archive)
Headers show
Series bonding: fix bond recovery in mode 2 | expand

Message

Jonathan Toppins Nov. 22, 2022, 8:25 p.m. UTC
When a bond is configured with a non-zero updelay and in mode 2 the bond
never recovers after all slaves lose link. The first patch adds
selftests that demonstrate the issue and the second patch fixes the
issue by ignoring the updelay when there are no usable slaves.

v2:
 * repost to net tree, suggested by Paolo Abeni
 * reduce number of icmp echos used in test, suggested by Paolo Abeni

Jonathan Toppins (2):
  selftests: bonding: up/down delay w/ slave link flapping
  bonding: fix link recovery in mode 2 when updelay is nonzero

 drivers/net/bonding/bond_main.c               |  11 +-
 .../selftests/drivers/net/bonding/Makefile    |   4 +-
 .../selftests/drivers/net/bonding/lag_lib.sh  | 106 ++++++++++++++++++
 .../net/bonding/mode-1-recovery-updelay.sh    |  45 ++++++++
 .../net/bonding/mode-2-recovery-updelay.sh    |  45 ++++++++
 .../selftests/drivers/net/bonding/settings    |   2 +-
 6 files changed, 210 insertions(+), 3 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh
 create mode 100755 tools/testing/selftests/drivers/net/bonding/mode-2-recovery-updelay.sh

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 24, 2022, 4:20 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 22 Nov 2022 15:25:03 -0500 you wrote:
> When a bond is configured with a non-zero updelay and in mode 2 the bond
> never recovers after all slaves lose link. The first patch adds
> selftests that demonstrate the issue and the second patch fixes the
> issue by ignoring the updelay when there are no usable slaves.
> 
> v2:
>  * repost to net tree, suggested by Paolo Abeni
>  * reduce number of icmp echos used in test, suggested by Paolo Abeni
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/2] selftests: bonding: up/down delay w/ slave link flapping
    https://git.kernel.org/netdev/net-next/c/d43eff0b85ae
  - [net-next,v2,2/2] bonding: fix link recovery in mode 2 when updelay is nonzero
    https://git.kernel.org/netdev/net-next/c/f8a65ab2f3ff

You are awesome, thank you!