Netdev List
 help / color / mirror / Atom feed
From: Florian Fainelli <florian.fainelli@broadcom.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, yoshfuji@linux-ipv6.org,
	dsahern@kernel.org, shuah@kernel.org, kuniyu@google.com,
	jiayuan.chen@linux.dev, angus.peng@broadcom.com,
	maoyi.xie@ntu.edu.sg, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org,
	bcm-kernel-feedback-list@broadcom.com
Subject: Re: [PATCH net-next 1/2] net: ipv6: add strict RFC 4861 6.3.6 default router selection
Date: Fri, 4 Dec 2026 12:54:08 -0800	[thread overview]
Message-ID: <093dd092-0af5-46e3-888d-a897dc0b493c@broadcom.com> (raw)
In-Reply-To: <179635843084.3146.1303610985327893701@kernel.org>

On 12/3/26 20:27, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 9 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 0 · Medium: 4 · Low: 5
> 
> 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] The commit message, the block comment over
>    rt6_strict_router_select() and the sysctl documentation all say strict…

Right, the wording was wrong. Strict mode ranks a router without a 
neighbour entry below a reachable one whatever its preference, which is 
the opposite of the "assume reachable" rule that 3630d40067a2 implements 
from RFC 4191. v2 describes the mode as RFC 4861 host behaviour with the
RFC 4191 reachability assumption turned off, in all three places.


> - [Medium] The commit message says that with probing suppressed,
>    "unreachable routers are recovered through round-robin and traffic-…

Agreed, and the commit message claim was inaccurate: round-robin and 
traffic-driven resolution only recover routers while no router is 
reachable. v2 states that a router which is unreachable while another 
one is valid carries no traffic and is not solicited, and is used again
once it sends an RA with a Source Link-Layer Address option or an NS.

It si correct that probing it would be harmless while a valid router 
exists, since INCOMPLETE ranks below VALID. v2 keeps probing suppressed
unconditionally to keep the mode simple, and documents the consequence
rather than hiding it. When no router is valid, a probe would put the
probed router in INCOMPLETE, which outranks the round-robin candidates
and defeats rule 2, which is why it cannot simply be left on.

> - [Medium] In strict mode, rt6_score_route() returns RT6_NUD_FAIL_DO_RR
>    (-1) for any gateway nexthop whose neighbour is missing, NUD_NONE or…

The mode is meant for netns whose routers are learned from RAs, which 
are never ECMP siblings. For legacy multipath routes, v2 documents the
behaviour in the commit message and in ip-sysctl.rst: a sibling whose 
score is negative (unresolved or failed) is skipped, and otherwise the
flow hash decides, so neither the ranking of INCOMPLETE below VALID nor
the router preference applies among siblings. Nexthop objects keep their 
existing ipv6_good_nh() behaviour.


> - [Medium] The strict reachability rank (0x100 for INCOMPLETE, 0x200 for
>    VALID) is only added in rt6_score_route() for routes with a gateway…

Same answer: the ranking applies to routes with a gateway and gateway-
less routes are not ranked, so they lose to any gateway that is 
reachable or being resolved. This is now stated in the sysctl 
documentation and in the commit message instead of being implied.

> - [Low] RFC 4861 6.3.6 rule 1 puts routers in INCOMPLETE state and
>    routers with no Neighbor Cache entry in the same "unknown or suspect"…
> - [Low] The in-tree documentation and code comment describe value 0 as
>    "upstream default router selection" (Documentation/networking/ip-…
> - [Low] The sysctl is documented as "strict default router selection" for
>    a CPE learning default routers from RAs on its WAN, but the code is…
> - [Low] The block comment above rt6_strict_router_select() says that
>    ranking NUD_INCOMPLETE routers above DO_RR keeps selection on the…
> - [Low] ip6_rt_strict_router_select is read with READ_ONCE() several
>    times during a single route lookup: once in ip6_pol_route() to decide…

- the documentation and comment no longer call value 0 "upstream 
behaviour", they describe what it does

- the scope (every route with a gateway, not only default routes) and 
the INCOMPLETE rank (a departure from rule 1, and no rotation while such 
a router exists) are documented, and the "round-robin" sentence now says 
"none known reachable and none being resolved"

- the comment no longer claims a guarantee under concurrent lookups

- the sysctl is sampled once in ip6_pol_route() and passed down as 
RT6_LOOKUP_F_STRICT_RTR, which also drops the per-candidate dev_net() 
lookups and the rt6_probe() early return.

pw-bot: cr
-- 
Florian

  reply	other threads:[~2026-12-04 20:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 22:26 [PATCH net-next 0/2] net: ipv6: add strict RFC 4861 6.3.6 default router selection Florian Fainelli
2026-11-30 22:26 ` [PATCH net-next 1/2] " Florian Fainelli
2026-12-04  4:27   ` netdev-bot+sashiko
2026-12-04 20:54     ` Florian Fainelli [this message]
2026-11-30 22:26 ` [PATCH net-next 2/2] selftests: net: add test for ipv6 strict_router_selection Florian Fainelli
2026-12-04  4:27   ` netdev-bot+sashiko
2026-12-04 19:52     ` Florian Fainelli
2026-12-02  8:29 ` [PATCH net-next 0/2] net: ipv6: add strict RFC 4861 6.3.6 default router selection Ido Schimmel
2026-12-02 23:37   ` Florian Fainelli
2026-12-03  8:08     ` Ido Schimmel
2026-12-03 17:25       ` Florian Fainelli
2026-12-03 22:37         ` Nicolai Buchwitz

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=093dd092-0af5-46e3-888d-a897dc0b493c@broadcom.com \
    --to=florian.fainelli@broadcom.com \
    --cc=angus.peng@broadcom.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=jiayuan.chen@linux.dev \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=maoyi.xie@ntu.edu.sg \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=yoshfuji@linux-ipv6.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