Article View: linux.kernel.netdev
Article #25014Re: [PATCH net-next v5 02/12] amt: send the Relay Advertisement over IPv6
From: netdev-bot+sashiko
Date: Tue, 01 Dec 2026 06:46
Date: Tue, 01 Dec 2026 06:46
79 lines
10913 bytes
10913 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Both the commit message and the new comment above struct
amt_header_advertisement_v6 in include/net/amt.h ("s5.2 selects theβ¦
--
amt: send the Relay Advertisement over IPv6
This adds struct amt_header_advertisement_v6 and
amt_send_advertisement_v6(), which send the 24-byte IPv6 form of the
Relay Advertisement. They use a new amt_send_ctrl_v6()/amt_route6() pair
built on udp_tunnel6_xmit_skb(). On an IPv6 device, amt_discovery_handler()
answers a Discovery with this form, sent from the address the Discovery
was sent to; amt_v6() is still false for every device, so there is no
functional change yet.
> diff --git a/include/net/amt.h b/include/net/amt.h
> index ca35782f8d3a2..52d77bc6b4193 100644
> --- a/include/net/amt.h
> +++ b/include/net/amt.h
> @@ -133,6 +133,27 @@ struct amt_header_advertisement {
> __be32 ip4;
> } __packed;
>
> +/* The IPv6 form of the Relay Advertisement (RFC 7450 s5.1.2): the same
> + * header and nonce, followed by a 16-byte relay address. s5.2 selects the
> + * form from the IP version of the outer header, not from a field in the
> + * message, so it is a type of its own.
> + */
[Severity: Low]
Is this an accurate reading of RFC 7450?
As far as I can tell, section 5.1.2.1 says the Relay Address field holds
either an IPv4 or an IPv6 address, and the length of the Advertisement
tells you which. Section 5.2 is about gateway operation. It doesn't seem
to tie the Advertisement family to the outer header version.
The commit message makes the same claim:
... and s5.2 selects the form from the IP
version of the outer header rather than from a field in the message.
An amt relay on an IPv6 outer transport therefore has to answer with
the 24-byte IPv6 form.
So does the new comment in amt_discovery_handler():
/* The Advertisement takes the form of the outer IP version, and
* RFC 7450 s5.1.2 sources it from the address the Discovery was
...
A later patch in this series, "amt: receive the AMT gateway control plane
over IPv6", describes it differently in amt_advertisement_handler():
/* The two forms differ only in their length. An IPv6 device's family
* picks one, so a message of the other form is not accepted; an IPv4
* device keeps the minimum-length check it always had.
*/
That comment reads as though length is what tells the two forms apart,
and matching the Advertisement family to the device's outer family is a
choice this driver makes.
The code looks fine. Could this header comment, the comment in
amt_discovery_handler() and the commit message describe this as driver
policy rather than something RFC 7450 s5.2 requires?
> +struct amt_header_advertisement_v6 {
[ ... ]
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130064249.1874523-1-omar%40blockcast.net
Technical Details
Message-ID:
<179610757665.3146.10077245653924427699@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374755-linux-kernel-netdev=dewy.ruReferences:
<20261130064249.1874523-3-omar@blockcast.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374755-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 02/12] amt: send the Relay Advertisement over IPv6 Date: Tue, 01 Dec 2026 06:46:16 +0000 Organization: Usenet Network Message-ID: <179610757665.3146.10077245653924427699@kernel.org> References: <20261130064249.1874523-3-omar@blockcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1639617"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uvaw0TULhZCf4k9h5AVztdu+lz4= sha256:y0p1aQeRN3p8NQ+adSS9shuOw7ZMVmtLCXFeJuXK46g= sha1:qGVxvWn1PawStPSY69RfDiZY55I= sha256:5xPN69143TyXRy6FNLJmi0HcID48LHvuNtH8cwX4Y8U= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 96EC9117266; Tue, 1 Dec 2026 09:47:03 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LjmWe3qxhv8p; Tue, 1 Dec 2026 09:47:00 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374755-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id DBFEF117273; Tue, 1 Dec 2026 09:46:51 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id C917D2E5F4; Tue, 1 Dec 2026 06:46:25 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796107579; b=B32hs4X22SbNHE/fk5RPCp2aeSYOpU3XU4YxXi0002dSBwnAzG4meZLZ/KQFVgvz2FiA fLbKQQoX6k0QvgVB1LgvYHcQl5Qm5kO+k1v7RcZVUBuA87lrFMEmbhfC1pNr8kLc/Vm7w Puo69mpgTa8kHX+j8/G33/B7LiDghFUe4g8zRuY+dPST+2mwlLKXtAD9DMY84OkbDHSkK 30cAGb1OsDCY+uV6tGVtdX6Ibf6rvOOaWyuk4bNCk4/7zdjSHhTBCX8R0Xafoil/2SGMF T89hN2zbaStH8fqt1DhAdfQB7sWuI3kEJEhhRuVBngfyyzc9ckhwxchrm91+RSRz4Rg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107579; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=eM8a2EoLPJaUP6pWhsbfxKY7SuPgnmQ7KslHf85iHA8=; b=PATwG5tBFh7yGTxXSaHBdbl6H2MX5mMIx7Wqgj4aw230/wl9CEMGXf/3Z9WTyT/qgDyx 1IHyU5Y99iP8r03dCCpU+zBnzCIkRDisae2A4ZIdiy5ke2SMbpU7+DZ+JDPJGXucFtrYH Zr8ZB31Yvfw/niD++5D2fHf6WGKE83cRqYVnFoPWCOynyBcoh/RN0s6SXuv82NB7h955F B91/tnFLXj7N3//d50rPtCKeuEBb14+I/vU6AVgHFn3bes3dowSZzLQToE17RGhjPZP+M R3uhQ/SSqZ/yTeuWiiYVN7UlUZ5g+LVJnnhLUCT7nyd4Xgs92/MtTo9vBglZxt9lAkg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="AaE110/5"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2104A606A686; Tue, 1 Dec 2026 06:46:19 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AaE110/5 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107578; b=vHY2Vx9nHfIn6hoG0ESQSmXacXnqUB3+dVnOgTOBLqhSqOWp2W2Ncf1i8HblUtnSeK3g zo4SAi3op+6Uz9ZSWWwuG8qj8mmZNJ4DJzzUN+mdTA/b34/Ftz8i9ZuiKmfO99sjEVLV2 WsJphzl5aT/Fwr8y3LVjAozPVpWiGcQ7oBzgSxlvFXtfvKTyu+Bcalk4YXtKORpMURFgu 407b71vrFZS/9GskmhaJmdvZjgtGOvCAqSx4QnMvLrrrer3ti17lb4QJ9Tzi2zMFL7WcR ReRan6MxKLsS6G0Eei3o0FB/2M1xSYwA+1Q/Zn4nZDy+WdrPgUwZ9B2+qM8VuVa48aQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107578; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=eM8a2EoLPJaUP6pWhsbfxKY7SuPgnmQ7KslHf85iHA8=; b=ja9GqxT3FknxQD1Coum84KenbExWUsR6Eh1mIT/ttCnzeNHLC3ds7+ZDklzc1pJKyVxN u2dtpnn+B0eCiV1GSNbjcFZDSCRX0CIJv6L/ZeHuN7d89YAQpdjodSnlTGoKoi1U7pmGu +ebeIEXbQ96g3zmMWOtrbjzD/tnrHdyoQl7pojnZMJ8dZB+vUsElqRRcsgvQOPiBiwkqh v9KyQIykkL617fCK6KTavi6FNuylZZgXF3L8Z24GRARCXT1e0HowYP95QD0jSI3zEIE7G cPWf1D2j1+tBauZn1w8jFiCGH2HiK4N2R0SaIMQZbDGazGXCSOvQiUtRoh6eoOG+1SQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="AaE110/5"; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43240606A339; Tue, 1 Dec 2026 06:46:18 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21D2F1F0089F; Tue, 1 Dec 2026 06:46:17 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796107577; bh=eM8a2EoLPJaUP6pWhsbfxKY7SuPgnmQ7KslHf85iHA8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=AaE110/5S8Jt5j6lOsZmQwy+V4ktYfiw4h8zAcEpQQmeCz5cyNJWIEPuW92BWfWiq ZFYvCb70cH62VrVrpe6nfNaP1EMxCCTl+wOq6OEAawP+iLVQ1IswEbIM6TWoj+uBc7 Ttq4L3H8xxAuGq8w8bfmTYDBq2ipBoIPsC/eov+N6Twdrg34iLx1H3Ch67ESoDEGqw PApU9wx7ymuJGzA2kDKv1qaSa3d9XMNtqJ5WSUKnpF7hQ+uGWIeADfkCg84wKSTzJq 0nESEzO82DahyfsO9cLomIOufsDWvB21olmfCzPaHAEXJQpHRELKqCezdYguj2uZZB 8O5YpJjWMQVrQ== X-Cc: ap420073@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org, horms@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, willemb@google.com X-In-Reply-To: <20261130064249.1874523-3-omar@blockcast.net> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list