Re: [PATCH net-next 2/2] selftests: bonding: Add a test for 802.3ad with coupled control disabled

From
Nikolay Aleksandrov <razor@blackwall.org>
Date
2026-11-13 09:35:22
Reply to
Ido Schimmel, 2026-11-11
On 11/11/2026 19:19, Ido Schimmel wrote:
Test that with coupled control disabled, a port in COLLECTING state
receives packets.

In this mode, a port only transitions from COLLECTING to DISTRIBUTING
state if its partner sets the Collecting bit in its LACPDUs. Therefore,
keep the port in COLLECTING state by clearing the Collecting bit in
received LACPDUs.

Also test that ping works once the port moves to DISTRIBUTING state.

Use VRFs rather than network namespaces so that the test could be run
with a veth pair or a pair of physically connected ports.

Output without "bonding: 3ad: Receive packets in COLLECTING state":

  # ./bond_lacp_independent_control.sh
  TEST: Receive in COLLECTING state                                   [FAIL]
          Packets not received in COLLECTING state
  TEST: Ping in DISTRIBUTING state                                    [ OK ]

Output with the fix:

  # ./bond_lacp_independent_control.sh
  TEST: Receive in COLLECTING state                                   [ OK ]
  TEST: Ping in DISTRIBUTING state                                    [ OK ]

Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
  .../selftests/drivers/net/bonding/Makefile    |   1 +
  .../bonding/bond_lacp_independent_control.sh  | 144 ++++++++++++++++++
  .../selftests/drivers/net/bonding/config      |   6 +
  3 files changed, 151 insertions(+)
  create mode 100755 tools/testing/selftests/drivers/net/bonding/bond_lacp_independent_control.sh
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Thread (16 messages) 16 messages, 6 authors, last reply 1d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help