Re: [PATCH net 2/2] selftests: bonding: add test for passive LACP mode

From: Jakub Kicinski
Date: Fri Jul 25 2025 - 10:21:24 EST


On Fri, 25 Jul 2025 06:28:48 +0000 Hangbin Liu wrote:
> 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.

Strangely this test fails on a normal kernel build but passes with
debug options enabled:

https://netdev.bots.linux.dev/contest.html?branch=net-next-2025-07-25--09-00&test=bond-passive-lacp-sh