]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: bonding: add test for passive LACP mode
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 15 Aug 2025 06:20:00 +0000 (06:20 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 Aug 2025 07:35:21 +0000 (09:35 +0200)
commit87951b566446da04eed1fe8100f99a512ef02756
treef80026dbf29b9a4d94eed29fd85642781fc6eddb
parent0599640a21e98f0d6a3e9ff85c0a687c90a8103b
selftests: bonding: add test for passive LACP mode

Add a selftest to verify bonding behavior when `lacp_active` is set to `off`.

The test checks the following:
- The passive LACP bond should not send LACPDUs before receiving a partner's
  LACPDU.
- The transmitted LACPDUs must not include the active flag.
- After transitioning to EXPIRED and DEFAULTED states, the passive side should
  still not initiate LACPDUs.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20250815062000.22220-4-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/bonding/Makefile
tools/testing/selftests/drivers/net/bonding/bond_passive_lacp.sh [new file with mode: 0755]
tools/testing/selftests/drivers/net/bonding/config