Article View: linux.kernel.netdev
Article #24868Re: [RFC PATCH net-next 5/9] amt: add IFLA_AMT_OFFLOAD_MODE
From: Antonio Quartulli
Date: Tue, 01 Dec 2026 00:34
Date: Tue, 01 Dec 2026 00:34
36 lines
11227 bytes
11227 bytes
On Sat, Nov 07, 2026 at 06:44:28PM +0000, Omar Ramadan wrote:
> + [IFLA_AMT_OFFLOAD_MODE] = { .type = NLA_U32 },
Please use NLA_POLICY_MAX(NLA_U32, AMT_OFFLOAD_MODE_MAX) and drop the
hand-written range check in amt_validate(). The range then shows up in
policy dumps, and the extack comes for free.
> + if (nla_put_u32(skb, IFLA_AMT_OFFLOAD_MODE, amt->offload_mode))
> + goto nla_put_failure;
Only the requested mode is reported. Whether the relay is actually
bound, and on which path, is visible only in sysfs. Please add read-only
attributes for both.
amt has no changelink, so switching an existing relay to offload means
deleting it and dropping every tunnel. Is that intended?
The meaning of "required" is inconsistent. It refuses creation and
drops carrier when there is no provider, yet a bound relay keeps
carrier while it runs entirely in software after a desync, parked
groups or a reset loop. Either enforce "required" in those cases too,
or define it as "a provider is bound" and document that.
Please describe the new uapi in Documentation/netlink/specs/rt-link.yaml.
amt isn't there yet, so add:
- an amt-offload-mode enum under definitions;
- a linkinfo-amt-attrs set (name-prefix ifla-amt-) with the existing
IFLA_AMT_* attributes, offload-mode and the read-only state above;
- a "value: amt" entry in linkinfo-data-msg.
For rtnetlink the kernel policy isn't generated from the spec, so it
has to match the NLA_POLICY_MAX above.
Regards,
Antonio
Technical Details
Message-ID:
<20261201003458.3731956-6-antonio@mandelbit.com>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-374558-linux-kernel-netdev=dewy.ruReferences:
<20261107184437.2783174-1-omar@blockcast.net> <20261107184437.2783174-6-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-374558-linux-kernel-netdev=dewy.ru From: antonio@mandelbit.com (Antonio Quartulli) Newsgroups: linux.kernel.netdev Subject: Re: [RFC PATCH net-next 5/9] amt: add IFLA_AMT_OFFLOAD_MODE Date: Tue, 1 Dec 2026 01:34:52 +0100 Organization: Usenet Network Message-ID: <20261201003458.3731956-6-antonio@mandelbit.com> References: <20261107184437.2783174-1-omar@blockcast.net> <20261107184437.2783174-6-omar@blockcast.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="1576172"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ZsTlleGzXsqsxXy53SEJ8y8hLis= sha256:8tIZ4FvjbT9P2TNCtBFyzBSI0l+POPewMav8ayZGhXI= sha1:k+mEVlgkeYikIv4n1MWjUhFiE14= sha256:Vz4z0DGvDNAGpwbQVTubOTBnuwQawUJZOz6B2pyRZE0= 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 BC345126015; Tue, 1 Dec 2026 03:35:46 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.95 X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=mandelbit.com 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 LQ8AIsnIf9sV; Tue, 1 Dec 2026 03:35:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-374558-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id DA70B126017; Tue, 1 Dec 2026 03:35:35 +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 2C4722C22B; Tue, 1 Dec 2026 00:35:23 +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=1796085322; b=bUtqTY/AUzuB6bD0XzWoB+IYD8yq1dsJJXk5bfV1TIBexlRIPx8F8rs3MeIgHopJfBQT 4AdUKHUKvqb+LAXzFZIz2dRCgXQTUdj1BLzRsJKf+Nch7aalUNP+zmVy8GNVvKLtGEQqU p6SHpd2yU+hXJYM/I77mT9QASunUlcwo8o8zLtGnIjXJ9noOU2Vh0yFONuTgF+W4JAjD3 cT7+crEwcIDulzogeMO1Y7vjxbeh7DjHY/EDUzmpI+1LUNcqaz4s1qhNqC43bqAfHNhDD ifPjbKdII3/2bJXbBCi262Z2VXdF0o8BQ0k/B49nzZXCRiULCYz+PDjsUn8G9nv193w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796085322; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To: Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:X-Rspamd-Queue-Id; bh=lJGkAP7NyGilvh3zd/sJgycc3sk8miLYqx80kqIMYqA=; b=iNJl3+gHp81RvNec5BcdmMMub7uM5QXghrhMgpJM7rrSockahATy39RKAhMb799W2A1o EJSd0SQ/01CQ1obQs0hjggvb02hexwEk09LpdTNLfJ6Bk9maaBvkAiJlzSET9JZp0+Aev xRRTtWrRhga46lWvD5mGlIHSQ7Q30LwtjcCQGlRILTtiJOeZpzIZDMiTx7VyAqgOejAQ3 JEnnh5JdthJADttk9AoWM+L5jPwJjTQ1WqWpGLyLr30zyjVgVBy6MQtMuSpg/5zMaBY9/ hH+iM63ixY4jAxwfpLFMRgxI7aBEsTLvmyTqRlllMYR+45BPsvjkgpUUC0xcbhBo1ag== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=uJitJVEt; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; 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 0FEB4606A32F; Tue, 1 Dec 2026 00:35:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=uJitJVEt X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.40 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796085321; b=xJ7Gp7Y49iOo1WjJ+RSEnEQpgsCrTRh5hN5QXepKDwjAw+uh6j2YaGx1uvhV7RQ1QYBB BOFdJyjAU0QhUwgGLkS3/7F8jAPpyVbACVHwEZqj5YT/8TLhS9UyjawM5Qb0ouum5Q79L 7Yksp9N291mtXevrUK1TdBFfrNkagKKTw8Ke1XD3rWOnTNFPW/dzPeRtWsosLjs/Qn+rp HkoSTJmdeP03E2YoazRAcRp0bGUtcGcNpFVGCr/ajQnYb7aH0IXqC5sXhTjD3ahafDten Iq3Tg/XQXaiZosB82BnH9mEncRqtCWlbZcnNCOz80wV0sDftdzW5B+4Yur7fB0g+KQw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796085321; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Rspamd-Queue-Id; bh=lJGkAP7NyGilvh3zd/sJgycc3sk8miLYqx80kqIMYqA=; b=WApEbefkAmQCEh7wYGUQs9JGw6mE/g1kgwBtdp6klQrCbt8TFqvanUkhLUh0cAcNTizh o+TmsjDVxvhlEeNkZdVXQqHUei0wRZv1KH8uK5OOLKBG4zgksliM1xEhGUf5KOQ98vhb3 ZZqlfrzzfI+6jtN16peiaaNZOuyU4RLeFFkgYG7Jfh08qcsrazAFFCdwFxswRqR9xjdCU gF9t6EXSdr51SUgS37W5OxfVDKJTy8o0CSOytrPfLjDDIzWpL0muz/34mCaeqvPHfs5ps RkmLvxS2/EP293txuc1xOpY0qi4vmO5IFSGkkjigNd556TO+1YT5ag9fjxVtCv9a7kg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=mandelbit.com; spf=pass smtp.mailfrom=mandelbit.com; dkim=pass header.d=mandelbit.com header.i=@mandelbit.com header.a=rsa-sha256 header.s=MBO0001 header.b=uJitJVEt; arc=none smtp.remote-ip=195.10.208.40 X-Received: from mout-b-210.mailbox.org (mout-b-210.mailbox.org [195.10.208.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD7D2606A320; Tue, 1 Dec 2026 00:35:20 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AD7D2606A320 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com X-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-210.mailbox.org (Postfix) with ESMTPS id 4jdhkF3zdHzFpZl; Tue, 01 Dec 2026 01:35:17 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandelbit.com; s=MBO0001; t=1796085317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lJGkAP7NyGilvh3zd/sJgycc3sk8miLYqx80kqIMYqA=; b=uJitJVEtdGzEdUchaGFI6EaJfC+vS/asQXxfGuS0Ou85mHAgtikcvktXVd8fkqyim5QolA tJagYQz65r59qLtQthAJIJrm9W1N4ZG7RePE1mVKgvCaIwkHZOgP+UZzj+NWTj/SFA9jej INip6HtNdnXcGETGDcnsH/iEMhIDdJM9zqyK/H4aSkeOKRyUu1v7PDXKw/E/XkEyaPlBej 1oseCzc+YHNSGjwuYXrCxL3pOl2eXcINVi6O28DoVOeKLfX0BHVqFWq0rN4jx/CMNY+XB/ iInRBLOU3k4Ci9HS1yd74SIwEOXDAO1FD5aaGpR1BixaRUHBCh2PVncmzckNDw== X-Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of antonio@mandelbit.com designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=antonio@mandelbit.com X-Cc: Antonio Quartulli <antonio@mandelbit.com>, Taehee Yoo <ap420073@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, michael.chan@broadcom.com, pavan.chebbi@broadcom.com, saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com, brett.creeley@amd.com, sgoutham@marvell.com, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, intel-wired-lan@lists.osuosl.org, Ido Schimmel <idosch@nvidia.com>, Satish Kharat <satishkh@cisco.com>, Andrew Lunn <andrew+netdev@lunn.ch>, Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>, Kees Cook <kees@kernel.org>, "Gustavo A. R. Silva" <gustavoars@kernel.org>, linux-kselftest@vger.kernel.org, linux-hardening@vger.kernel.org X-Mailer: git-send-email 2.56.1 X-In-Reply-To: <20261107184437.2783174-6-omar@blockcast.net> 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 X-Rspamd-Queue-Id: 4jdhkF3zdHzFpZl