Re: [PATCH net-next 1/2] bonding: reseed the ARP monitor when it starts

From: Ramses

Date: Thu Dec 03 2026 - 10:23:08 EST


> [Severity: Medium]
>
> When a slave is not BOND_LINK_UP, this branch moves last_rx and
> target_last_arp_rx[] forward to jiffies - (2 * delta + 1) and leaves
> last_link_up alone. Can that make slave_last_rx() later than
> last_link_up for curr_active_slave?

You're right. At enslave time a slave that is not UP cannot be the active one, at reseed time it can. In v2 only a slave that is UP and has carrier gets a fresh seed. The timestamps of the other slaves are only moved back, out of the up window, never forward.

> [Severity: Low]
>
> bond_arp_seed_slave() decides the seed from slave->link alone.

v2 also requires netif_carrier_ok() for the fresh seed.

> [Severity: Low]
>
> This isn't a bug, but the commit message says systemd-networkd users
> hit this. Should the patch carry a Fixes: tag and Cc: stable?

The patch builds on the last_rx series, which is only in net-next, so it targets net-next without a Fixes: tag.

> [Severity: Low]
>
> The new bond_arp_reseed_slaves() has the comment "Call before
> recv_probe is set and arp_work is queued." Does this caller always
> meet that condition?

No, recv_probe stays set after a switch to miimon. With v2 the only slaves that get newer timestamps are UP slaves seeded to jiffies, so a racing receive loses nothing. I updated the comment.

pw-bot: cr