From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.10.208.40 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AD7D2606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mandelbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mandelbit.com 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 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) 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== 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 From: Antonio Quartulli To: Omar Ramadan Cc: Antonio Quartulli , Taehee Yoo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , 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 , Satish Kharat , Andrew Lunn , Simon Horman , Shuah Khan , Kees Cook , "Gustavo A. R. Silva" , linux-kselftest@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [RFC PATCH net-next 5/9] amt: add IFLA_AMT_OFFLOAD_MODE Date: Tue, 1 Dec 2026 01:34:52 +0100 Message-ID: <20261201003458.3731956-6-antonio@mandelbit.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261107184437.2783174-6-omar@blockcast.net> References: <20261107184437.2783174-1-omar@blockcast.net> <20261107184437.2783174-6-omar@blockcast.net> 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 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4jdhkF3zdHzFpZl On Sat, Nov 07, 2026 at 06:44:28PM +0000, Omar Ramadan wrote:=0D > + [IFLA_AMT_OFFLOAD_MODE] =3D { .type =3D NLA_U32 },=0D =0D Please use NLA_POLICY_MAX(NLA_U32, AMT_OFFLOAD_MODE_MAX) and drop the=0D hand-written range check in amt_validate(). The range then shows up in=0D policy dumps, and the extack comes for free.=0D =0D > + if (nla_put_u32(skb, IFLA_AMT_OFFLOAD_MODE, amt->offload_mode))=0D > + goto nla_put_failure;=0D =0D Only the requested mode is reported. Whether the relay is actually=0D bound, and on which path, is visible only in sysfs. Please add read-only=0D attributes for both.=0D =0D amt has no changelink, so switching an existing relay to offload means=0D deleting it and dropping every tunnel. Is that intended?=0D =0D The meaning of "required" is inconsistent. It refuses creation and=0D drops carrier when there is no provider, yet a bound relay keeps=0D carrier while it runs entirely in software after a desync, parked=0D groups or a reset loop. Either enforce "required" in those cases too,=0D or define it as "a provider is bound" and document that.=0D =0D Please describe the new uapi in Documentation/netlink/specs/rt-link.yaml.=0D =0D amt isn't there yet, so add:=0D - an amt-offload-mode enum under definitions;=0D - a linkinfo-amt-attrs set (name-prefix ifla-amt-) with the existing=0D IFLA_AMT_* attributes, offload-mode and the read-only state above;=0D - a "value: amt" entry in linkinfo-data-msg.=0D For rtnetlink the kernel policy isn't generated from the spec, so it=0D has to match the NLA_POLICY_MAX above.=0D =0D Regards,=0D Antonio=0D