linux-yocto/tools
Aahil Awatramani 45b70352d1 bonding: Add independent control state machine
[ Upstream commit 240fd40552 ]

Add support for the independent control state machine per IEEE
802.1AX-2008 5.4.15 in addition to the existing implementation of the
coupled control state machine.

Introduces two new states, AD_MUX_COLLECTING and AD_MUX_DISTRIBUTING in
the LACP MUX state machine for separated handling of an initial
Collecting state before the Collecting and Distributing state. This
enables a port to be in a state where it can receive incoming packets
while not still distributing. This is useful for reducing packet loss when
a port begins distributing before its partner is able to collect.

Added new functions such as bond_set_slave_tx_disabled_flags and
bond_set_slave_rx_enabled_flags to precisely manage the port's collecting
and distributing states. Previously, there was no dedicated method to
disable TX while keeping RX enabled, which this patch addresses.

Note that the regular flow process in the kernel's bonding driver remains
unaffected by this patch. The extension requires explicit opt-in by the
user (in order to ensure no disruptions for existing setups) via netlink
support using the new bonding parameter coupled_control. The default value
for coupled_control is set to 1 so as to preserve existing behaviour.

Signed-off-by: Aahil Awatramani <aahila@google.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20240202175858.1573852-1-aahila@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: 0599640a21e9 ("bonding: send LACPDUs periodically in passive mode after receiving partner's LACPDU")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-28 16:28:49 +02:00
..
accounting
arch x86/rdrand: Disable RDSEED on AMD Cyan Skillfish 2025-07-17 18:35:15 +02:00
bootconfig tools/bootconfig: Fix the wrong format specifier 2025-02-08 09:52:28 +01:00
bpf bpftool: Fix JSON writer resource leak in version command 2025-08-28 16:28:24 +02:00
build perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation 2025-07-17 18:35:11 +02:00
certs
cgroup
counter
crypto/ccp
debugging
edid
firewire
firmware
gpio
hv tools: hv: change permissions of NetworkManager configuration file 2024-12-27 13:58:46 +01:00
iio
include bonding: Add independent control state machine 2025-08-28 16:28:49 +02:00
kvm/kvm_stat
laptop
leds
lib perf tools: Fix use-after-free in help_unknown_cmd() 2025-08-15 12:08:53 +02:00
memory-model
mm
net/ynl tools: ynl-gen: validate 0 len strings from kernel 2025-06-04 14:42:16 +02:00
objtool objtool: Fix error handling inconsistencies in check() 2025-06-04 14:41:58 +02:00
pci
pcmcia
perf perf tools: Remove libtraceevent in .gitignore 2025-08-15 12:08:56 +02:00
power pm: cpupower: Fix the snapshot-order of tsc,mperf, clock in mperf_stop() 2025-08-28 16:28:18 +02:00
rcu
scripts tools/build: Fix s390(x) cross-compilation with clang 2025-08-28 16:28:17 +02:00
spi
testing selftests: mptcp: pm: check flush doesn't reset limits 2025-08-28 16:28:44 +02:00
thermal
time
tracing rtla/timerlat_top: Set OSNOISE_WORKLOAD for kernel threads 2025-03-07 16:45:49 +01:00
usb
verification tools/rv: Do not skip idle in trace 2025-08-15 12:08:49 +02:00
virtio
wmi
workqueue
Makefile