Netdev List
 help / color / mirror / Atom feed
From: Ramses <ramses@well-founded.dev>
To: Netdev Bot+sashiko <netdev-bot+sashiko@kernel.org>
Cc: Jv <jv@jvosburgh.net>, Andrew+netdev <andrew+netdev@lunn.ch>,
	Davem <davem@davemloft.net>, Kuba <kuba@kernel.org>,
	Pabeni <pabeni@redhat.com>, Jbohac <jbohac@suse.cz>,
	Edumazet <edumazet@kernel.org>, Willemb <willemb@google.com>,
	Horms <horms@kernel.org>, Netdev <netdev@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Kselftest <linux-kselftest@vger.kernel.org>,
	Razor <razor@blackwall.org>, Hangbin Liu <hangbin.liu@linux.dev>,
	Shuah <shuah@kernel.org>
Subject: Re: [PATCH net-next 1/2] bonding: reseed the ARP monitor when it starts
Date: Thu, 3 Dec 2026 16:22:58 +0100 (CET)	[thread overview]
Message-ID: <P7wV1nk--F-9@well-founded.dev> (raw)
In-Reply-To: <179626889957.3146.496772262611026903@kernel.org>

> [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


  reply	other threads:[~2026-12-03 15:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 10:20 [PATCH net-next 0/2] bonding: reseed the ARP monitor when it starts Ramses de Norre via B4 Relay
2026-12-01 10:20 ` [PATCH net-next 1/2] " Ramses de Norre via B4 Relay
2026-12-03  3:18   ` Hangbin Liu
2026-12-03  3:34   ` netdev-bot+sashiko
2026-12-03 15:22     ` Ramses [this message]
2026-12-01 10:20 ` [PATCH net-next 2/2] selftests: bonding: test that the ARP monitor keeps UP slaves " Ramses de Norre via B4 Relay
2026-12-03  3:23   ` Hangbin Liu
2026-12-03 15:23     ` Ramses
2026-12-03  3:35   ` netdev-bot+sashiko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=P7wV1nk--F-9@well-founded.dev \
    --to=ramses@well-founded.dev \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hangbin.liu@linux.dev \
    --cc=horms@kernel.org \
    --cc=jbohac@suse.cz \
    --cc=jv@jvosburgh.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=razor@blackwall.org \
    --cc=shuah@kernel.org \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox