mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-26 01:29:33 +04:00
DSA numbers LAGs from 1 to num_lag_ids. The driver uses the id as it is to index its LAG arrays and as the hardware trunk group, both of which start at 0. Group 0 is therefore never used and the last id is refused, so one LAG fewer than the switch supports can be offloaded. Accept ids from 1 to num_lag_ids and subtract one where the id becomes a group. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Quinn O'Shea <qoshea@gmail.com> Link: https://github.com/openwrt/openwrt/pull/25792 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>