Re: [PATCH net v2 2/3] bonding: update slave array on link change for broadcast mode

From: Hangbin Liu

Date: Thu Dec 03 2026 - 03:40:00 EST


On Thu, Dec 03, 2026 at 06:29:52AM +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 2 (2) · Low: 0 (2)
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [Medium] In balance-rr, updelay is ignored for good after the bond has
> been switched from broadcast mode.

This issue has been noted in the commit description.

> - [Medium] bonding: stale usable_slaves in bond_change_active_slave() on
> LINK_BACK promotion

This is a valid concern. I'm think maybe we should remove usable arrays
for broadcast other than all these followup patches.

>
> Pre-existing issues:
> - [Medium] This problem wasn't introduced by this patch, but ALB mode and
> TLB with tlb_dynamic_lb=1 have the same stale usable_slaves problem…
> - [Medium] This problem wasn't introduced by this patch, but balance-rr
> never implements the rule in bonding.rst section 13.1 ('when a bonding…
> - [Low] This problem wasn't introduced by this patch, but two comments
> are stale.
> - [Low] This problem wasn't introduced by this patch, but
> bond_miimon_inspect() reads usable_slaves->count with a plain load…

I will add these on my todo list.

Thanks
Hangbin