From: Zhefu Peng <ilskdw@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, kuniyu@google.com,
mschiffer@universe-factory.net, nicolas.dichtel@6wind.com,
shuah@kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net v6 1/2] vxlan: reset the remote's dst cache when snooping moves a MAC
Date: Tue, 24 Nov 2026 00:58:11 +0600 [thread overview]
Message-ID: <20261123185811.53107-1-ilskdw@gmail.com> (raw)
In-Reply-To: <179542917290.3135.7119976710700884013@kernel.org>
> [Severity: Low]
> Is this check order intended? The lockless path in vxlan_snoop() calls
> vxlan_snoop_same_remote() before the NUD_PERMANENT | NUD_NOARP test. Here
> the static-state test runs first.
No, it should match the fast path. I'll swap the two checks, keeping
the nexthop check first, if there is another revision.
> [Severity: Medium]
> Does this fully close the stale dst_cache window the patch is meant to
> fix?
No. This is the window discussed for v2 and v5:
https://lore.kernel.org/netdev/20261115040600.61033-1-ilskdw@gmail.com/
https://lore.kernel.org/netdev/20261119095246.41685-1-ilskdw@gmail.com/
A transmit that copied the old remote into its key before the reset
can refill the cache in a later jiffy. vxlan_fdb_replace() and the
other dst_cache_reset() users have the same window. Closing it needs a
generation check in the transmit path or replacing the remote through
RCU, which would change vxlan_fdb_replace() as well, so I would rather
propose it separately for net-next. This patch fixes the deterministic
case, where every move keeps the stale route.
next prev parent reply other threads:[~2026-11-23 18:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 9:52 [PATCH net v6 0/2] vxlan: reset the remote's dst cache when snooping moves a MAC Zhefu Peng
2026-11-19 9:52 ` [PATCH net v6 1/2] " Zhefu Peng
2026-11-23 10:19 ` netdev-bot+sashiko
2026-11-23 18:58 ` Zhefu Peng [this message]
2026-11-19 9:52 ` [PATCH net v6 2/2] selftests: net: add a test for vxlan snooping moving " Zhefu Peng
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=20261123185811.53107-1-ilskdw@gmail.com \
--to=ilskdw@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kselftest@vger.kernel.org \
--cc=mschiffer@universe-factory.net \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
/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