From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.228 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796417654; b=gIDQuSDxeoYIwr18b8iiHmPZVN5ifJ4rB0EtomGLavOQ52z/ETxIkV1U4kazy5lyYsts gdWWulkhJkpoChQ71FRBzpQfL/ggM/G+4hcmNvZ3ETZRgEcHpQDIw22oPxbuAVzDPtDTv +SLbNr1D44RlN5uLEWorrjUYKUznx79nt1i1SkwL33wAzFCc1dFXsS7AJdylmImfBP1m/ Yjn3BN21/VQqtljtnnD01pim50Sfu7m4lbp25M8eU3GfjbdvAGrwDRwKCBb7x1WnAessO ZMNLEqAuVGK/fXtvC8Tg/A4FX6Ky+CffhNlDLi23BzPs6ilUgr3tHcwOBr1JjKpG08g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796417654; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:X-Relaying-Domain: X-CFilter-Loop:Received:DKIM-Signature:X-Forwarded-Encrypted: X-Received:X-Received:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:Autocrypt: In-Reply-To:Content-Type:Content-Transfer-Encoding: X-DetectorID-Processed; bh=IggZn1dEEIfal41LUwTv2/0XnBTyEo9hl3oRIMcH9AE=; b=rQRQ+aBsiz+bNor4QmsVFQOs5cJ6elG1ac9mMJPJO/GMHSZlyaaGPtMP+KplKGFnAhj7 RRs+6qMq8ls9OQI/iAEyTD8Bu7UesXXrezIxXfq2RqkxkzlNa9vZYbsQxu3Zp/a/vVcM1 oKFMkpnWaj2N1604Rdu1RIkczvg01JAxvmb+gJFpJ1z2ODTryCI05IFqgXJKKENSIR66m mo+C6KdnMbAYls2aZZZ1+fvOkfnZEhJFO5QkNiudwq9J1Vrdyby+SI4KyctYq3jNa/Rxn BGx6IL83GY1tgr1L+jhPVrq7fmQJGDF0Ndom+h8xv9juR5QBPdWjgq/SLmxVyecHyiw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=LewhiYge; arc=none smtp.remote-ip=209.85.215.228 Received: from mail-pg1-f228.google.com (mail-pg1-f228.google.com [209.85.215.228]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19C79606A322 for ; Fri, 4 Dec 2026 20:54:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 19C79606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=LewhiYge Received: by mail-pg1-f228.google.com with SMTP id 41be03b00d2f7-cd69954c755so1345319a12.3 for ; Fri, 04 Dec 2026 12:54:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796417653; x=1797022453; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=IggZn1dEEIfal41LUwTv2/0XnBTyEo9hl3oRIMcH9AE=; b=Q8VQpJRHgEjSnIGm1k2xSLn9+ruismXeZtz37McJCa4uC8RekJttYaxINs2Qwl1F6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AOFmFiFHwh0ORwVxuBoYiOXOqLEB 0vV8NyRl7Qw0gYaF/Nt6M5NVPGSK1Dv3uAQelESbGEWDnEg42+iuM8X2/mqWNNkv4AC5caUULdU 2L7cRgARdrY1mLYu2QHb7je3Ptmdb1cbXQID4QEaKu X-Received: by 2002:a17:90b:5291:b0:3b4:f260:72d8 with SMTP id 98e67ed59e1d1-3b5e06a473cmr2659186a91.58.1796417653175; Fri, 04 Dec 2026 12:54:13 -0800 (PST) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-28.dlp.protect.broadcom.com. [144.49.247.28]) by smtp-relay.gmail.com with ESMTPS id 98e67ed59e1d1-3b5c72ff2b4sm4358246a91.0.2026.12.04.12.54.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Dec 2026 12:54:13 -0800 (PST) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-921de759a01so32794656d6.1 for ; Fri, 04 Dec 2026 12:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1796417652; x=1797022452; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=IggZn1dEEIfal41LUwTv2/0XnBTyEo9hl3oRIMcH9AE=; b=LewhiYgeOsUxRtAbkcv/pygQUterDrfBxu3JoKbnMy1LxnZdmMJLbAAuvRWrxCbl5l 1F4PMvwBP9v66f70nhvE5VXdQR+Kcafb9H0WiCugu7uBbdSwFYvxfbml/qwsC0JD3xVT N3L62KloS1XX3kyz9DXJxgNA7A1XrxHTEFJwk= X-Forwarded-Encrypted: i=1; AL+hErH2eAL8fe0NUQr/qui+ndjmc9pYZjuta6CluK8SFvZriPlnXR4e9oxEmBFBsqi7Pwe8mxdadL38jM+M5SE=@vger.kernel.org X-Received: by 2002:a05:6214:2b81:b0:921:1ac1:34e2 with SMTP id 6a1803df08f44-921e269d0e2mr55972976d6.24.1796417651922; Fri, 04 Dec 2026 12:54:11 -0800 (PST) X-Received: by 2002:a05:6214:2b81:b0:921:1ac1:34e2 with SMTP id 6a1803df08f44-921e269d0e2mr55972496d6.24.1796417651311; Fri, 04 Dec 2026 12:54:11 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921e05a2469sm30933886d6.33.2026.12.04.12.54.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 12:54:10 -0800 (PST) Message-ID: <093dd092-0af5-46e3-888d-a897dc0b493c@broadcom.com> Date: Fri, 4 Dec 2026 12:54:08 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 1/2] net: ipv6: add strict RFC 4861 6.3.6 default router selection 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 References: <20261130222631.1786545-2-florian.fainelli@broadcom.com> <179635843084.3146.1303610985327893701@kernel.org> Content-Language: en-US, fr-FR From: Florian Fainelli Autocrypt: addr=florian.fainelli@broadcom.com; keydata= xsBNBFPAG8ABCAC3EO02urEwipgbUNJ1r6oI2Vr/+uE389lSEShN2PmL3MVnzhViSAtrYxeT M0Txqn1tOWoIc4QUl6Ggqf5KP6FoRkCrgMMTnUAINsIN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303610985327893701@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-DetectorID-Processed: b00c1d49-9d2e-4205-b15f-d015386d3d5e 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