Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Nikolay Aleksandrov
Fri, 13 Nov 2026 09:35
Re: [PATCH net-next 1/2] bonding: 3ad: Receive packets in COLLECTING state
Author: Nikolay Aleksandrov
Date: Fri, 13 Nov 2026 09:35
Date: Fri, 13 Nov 2026 09:35
46 lines
12841 bytes
12841 bytes
On 11/11/2026 19:19, Ido Schimmel wrote:
> When coupled control is disabled, a port in COLLECTING state is supposed
> to receive packets, but it does not. The bond only delivers packets from
> slaves whose 'inactive' flag is cleared, whereas
> bond_set_slave_rx_enabled_flags() only clears 'rx_disabled'.
>
> Fix by clearing 'inactive' as well.
>
> Reviewed-by: Petr Machata <petrm@nvidia.com>
> Signed-off-by: Ido Schimmel <idosch@nvidia.com>
> ---
>
> Notes:
> Targeting at net-next since this never worked.
>
> Known issues that this patch does not address:
>
> 1. Changing 'all_slaves_active' from 1 to 0 while a port is in
> COLLECTING state sets its 'inactive' flag and the port stops
> receiving until the next mux state transition. This is not new,
> COLLECTING is a transient state and the option is off by default, so I
> do not think it is worth handling.
>
> 2. The 'inactive' flag shares a bitfield with other slave flags. The
> 802.3ad state machine writes them under the mode lock, while the
> 'all_slaves_active' handler writes 'inactive' under RTNL only. This is
> not new.
>
> include/net/bonding.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/net/bonding.h b/include/net/bonding.h
> index 598d56b1bc97..cb89aff437f4 100644
> --- a/include/net/bonding.h
> +++ b/include/net/bonding.h
> @@ -594,6 +594,7 @@ static inline void bond_set_slave_active_flags(struct slave *slave,
> static inline void bond_set_slave_rx_enabled_flags(struct slave *slave,
> bool notify)
> {
> + slave->inactive = 0;
> slave->rx_disabled = 0;
> }
>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads