openwrt/target/linux/realtek
Harshal Gohel 89322b4d69 rtl93xx: dsa: Handle lag_change properly
LACP frequently changes active/backup links. driver must also handle
dp->lag_tx_enabled.

This should only affect egress LAG table, ingress should not be touched.
To test, connect a known working 802.3ad compatible switch (Mikrotik).
Configure bond with 802.3ad on openwrt as well as mikrotik.
Observer active/backup links on openwrt with
```
for iface in <list of bond participants>; do
ip -d link show $iface
done
```
This should show ACTIVE/BACKUP status which must be synchronized with
the partner's ACTIVE/BACKUP status if LACP is working correctly.

Backup interface must not be chosen by the distribution algorithm to
transmit egress packet

At the moment, we have two parties involved in the selection of active LAG TX
ports:
- the bonding/DSA code which informs about activated/deactivated ports using
  .port_lag_change
- the HW which is deactivating ports based on the link state see
  RTL93XX_TRK_CTRL_LINK_DOWN_AVOID

In our case, the software is supposed to manage everything

Co-developed-by: Sven Eckelmann <se@simonwunderlich.de>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Signed-off-by: Harshal Gohel <hg@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/21740
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-07 20:33:22 +01:00
..
base-files realtek: use nvmem for mac address for XikeStor SKS8310-8X 2026-03-01 14:46:12 +01:00
dts realtek: dts: drop SYS LED of XikeStor SKS8310-8X 2026-03-01 14:46:12 +01:00
files-6.12 rtl93xx: dsa: Handle lag_change properly 2026-03-07 20:33:22 +01:00
image realtek: dts: add monitor IC node for XikeStor SKS8310-8X 2026-03-01 14:46:12 +01:00
patches-6.12 kernel: net: sfp: improve Huawei MA5671a fixup 2026-03-06 14:00:03 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00
rtl839x kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00
rtl930x kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00
rtl930x_nand kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00
rtl931x kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00
rtl931x_nand kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00
modules.mk kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00