device: fix bonding primary port selection
authorNicolò <[email protected]>
Sun, 4 May 2025 15:19:50 +0000 (17:19 +0200)
committerRobert Marko <[email protected]>
Sat, 17 May 2025 09:33:16 +0000 (11:33 +0200)
commita1b6386a20a6352fea626345a044b538c1473a49
tree5c3440e3b9f234dbcb2fe68e9a05e9235d664566
parentd610d68c71b82b987c665a922c10084d5cf89f8c
device: fix bonding primary port selection

The confuguration of the primary port was read
 but never used to properly configure the right port.

This patch fix this, and another small fix suggested
 by nbd to properly handle the "reload" of the
 primary interface when is changed.

Co-developed-by: Felix Fietkau <[email protected]>
Signed-off-by: Nicolò Veronese <[email protected]>
Link: https://github.com/openwrt/netifd/pull/49
Signed-off-by: Robert Marko <[email protected]>
bonding.c