From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.227 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796417654; b=tmCjrWbWqjR2aBtfcmukCjo3hjD88Vd/H4IIY/Gq0ur0vZHblyoJTC8os7c+qfIme0ZL GOAUl2jWiIUuocvrOsFj5XVXl5PduFKSarQLCyE+N7DogEKVycGUgt3j0ST663C/U1r5a oOxlINBoIpR5K+HUzMRlGuloKYLqper5Mg6gVoEafr1+AO2OwONOfgC67ABACW0+66FXO OqtKQemD7gG47fkU+Y5uaK19Rl1aVNEfN3q/6E8XYn77KIygnnZYERvCHx5o0pXxzDEGY H4iTKTgwVCSc4AYfdJh8yfdxUH2sFkRHkUSbHvx7RLHhkYjguqmqzfWqNXMF7Qkp0Jg== 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-Gm-Message-State: X-Gm-Gg:X-Received:Received:X-Relaying-Domain:X-CFilter-Loop:Received: DKIM-Signature: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=tlQAIwbj89LVwmC0ud2QoUGx8xTd+d9n3tzGt5C79KbwlTIM22RECDXPp7/Ael9BiEcY 19Njx5oBLDq+Rnilxbhtr5JTREagOkhlzg1d12I/XyvnrJXBCRSx92Yv1/Wh8Z4c91cZU opFz26tMAoPt+TspK3b0t6owvQSI/R6du6MuMeuz3i00nB0cTPcCKTWFFeaA0ar24l6j9 gTnqsC1pkjAuoZuY55dRUWbT1rcCg+67ZVkmQ/Dq1ybkfIgGQr/0rv9VkCL5SCXV0TQ9f 6cdXTx6HLc+tVtkl0UNhP0nKDJJE+9Uyel2hvaUf0IRYDU67YMDKyepb9CS5nAwM0Ig== 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.210.227 Received: from mail-pf1-f227.google.com (mail-pf1-f227.google.com [209.85.210.227]) (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 542EB606A32C for ; Fri, 4 Dec 2026 20:54:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 542EB606A32C 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) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=LewhiYge Received: by mail-pf1-f227.google.com with SMTP id d2e1a72fcca58-8a06cc097c7so958215b3a.0 for ; Fri, 04 Dec 2026 12:54:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796417654; x=1797022454; 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=1fjgZsT0SqDFgDvIzRLyZ4/UXCEp0uK6oW+h89A/mOg7kyFyutw77Qw3x2g94ZwNVU TcspOQvApJZgJ4m5lmnWmVNNbX0xfV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:2810:dfd6 with SMTP id 98e67ed59e1d1-3b5e06c0621mr2817142a91.64.1796417653521; 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-100.dlp.protect.broadcom.com. [144.49.247.100]) by smtp-relay.gmail.com with ESMTPS id 98e67ed59e1d1-3b6166cc85fsm89078a91.2.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-f72.google.com with SMTP id 6a1803df08f44-921d32919a3so32801576d6.2 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-Received: by 2002:a05:6214:2b81:b0:921:1ac1:34e2 with SMTP id 6a1803df08f44-921e269d0e2mr55972886d6.24.1796417651903; 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: netdev@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 M0Txqn1tOWoIc4QUl6Ggqf5KP6FoRkCrgMMTnUAINsINYXK+3OLe7HjP10h2jDRX4Ajs4Ghs JrZOBru6rH0YrgAhr6O5gG7NE1jhly+EsOa2MpwOiXO4DE/YKZGuVe6Bh87WqmILs9KvnNrQ PcycQnYKTVpqE95d4M824M5cuRB6D1GrYovCsjA9uxo22kPdOoQRAu5gBBn3AdtALFyQj9DQ KQuc39/i/Kt6XLZ/RsBc6qLs+p+JnEuPJngTSfWvzGjpx0nkwCMi4yBb+xk7Hki4kEslABEB AAHNMEZsb3JpYW4gRmFpbmVsbGkgPGZsb3JpYW4uZmFpbm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bwgUbDAAAAMBdIAQZAQgABgUCU8AbwQAKCRCTYAaomC8PVQ0VCACWk3n+ obFABEp5Rg6Qvspi9kWXcwCcfZV41OIYWhXMoc57ssjCand5noZi8bKg0bxw4qsg+9cNgZ3P N/DFWcNKcAT3Z2/4fTnJqdJS//YcEhlr8uGs+ZWFcqAPbteFCM4dGDRruo69IrHfyyQGx16s CcFlrN8vD066RKevFepb/ml7eYEdN5SRALyEdQMKeCSf3mectdoECEqdF/MWpfWIYQ1hEfdm C2Kztm+h3Nkt9ZQLqc3wsPJZmbD9T0c9Rphfypgw/SfTf2/CHoYVkKqwUIzI59itl5Lze+R5 wDByhWHx2Ud2R7SudmT9XK1e0x7W7a5z11Q6vrzuED5nQvkhAAoJEIExtcQpvGagugcIAJd5 EYe6KM6Y6RvI6TvHp+QgbU5dxvjqSiSvam0Ms3QrLidCtantcGT2Wz/2PlbZqkoJxMQc40rb fXa4xQSvJYj0GWpadrDJUvUu3LEsunDCxdWrmbmwGRKqZraV2oG7YEddmDqOe0Xm/NxeSobc MIlnaE6V0U8f5zNHB7Y46yJjjYT/Ds1TJo3pvwevDWPvv6rdBeV07D9s43frUS6xYd1uFxHC 7dZYWJjZmyUf5evr1W1gCgwLXG0PEi9n3qmz1lelQ8lSocmvxBKtMbX/OKhAfuP/iIwnTsww 95A2SaPiQZA51NywV8OFgsN0ITl2PlZ4Tp9hHERDe6nQCsNI/Us= In-Reply-To: <179635843084.3146.1303610985327893701@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