Article View: linux.kernel.netdev
Article #20700Re: [PATCH net-next v2 10/11] netlink: specs: rt-link: add veth attributes
From: netdev-bot+sashiko
Date: Mon, 23 Nov 2026 03:59
Date: Mon, 23 Nov 2026 03:59
79 lines
11567 bytes
11567 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] In Documentation/netlink/specs/rt-link.yaml, the new `tx-extra-
headroom` attribute in the `linkinfo-veth-attrs` attribute set (addedโฆ
--
netlink: specs: rt-link: add veth attributes
This adds a linkinfo-veth-attrs attribute set to rt-link.yaml, so YNL can
set and read the veth attributes, including tx-extra-headroom. It also
renames the guard in include/uapi/linux/veth.h to _UAPI__NET_VETH_H_, so
that YNL's get_hdr_inc can pick up the source tree header.
> diff --git a/Documentation/netlink/specs/rt-link.yaml b/Documentation/netlink/specs/rt-link.yaml
> index 81b58633911d6..36dece2517789 100644
> --- a/Documentation/netlink/specs/rt-link.yaml
> +++ b/Documentation/netlink/specs/rt-link.yaml
> @@ -2368,6 +2368,17 @@ attribute-sets:
> name: mode
> type: u8
> enum: ovpn-mode
> + -
> + name: linkinfo-veth-attrs
> + name-prefix: veth-info-
> + header: linux/veth.h
> + attributes:
> + -
> + name: peer
> + type: binary
> + -
> + name: tx-extra-headroom
> + type: uint
[Severity: Low]
Should this attribute carry a checks block that matches the kernel policy?
The kernel caps the value in veth_policy in drivers/net/veth.c:
[VETH_INFO_TX_EXTRA_HEADROOM] =
NLA_POLICY_MAX(NLA_UINT, NETDEV_TX_EXTRA_HEADROOM_MAX),
include/linux/netdevice.h defines the limit:
#define NETDEV_TX_EXTRA_HEADROOM_MAX 512
As written, the spec allows any 64-bit value. The kernel rejects anything
above 512 with -ERANGE.
NETDEV_TX_EXTRA_HEADROOM_MAX is not part of uAPI, so the spec can't refer
to it by name. Other attributes in this spec already state kernel limits
as literals, for example txqlen:
name: txqlen
type: u32
checks:
max: 32767
Would something like this work here?
name: tx-extra-headroom
type: uint
checks:
max: 512
The selftest later in the series (tx_extra_headroom.py) hardcodes
TX_EXTRA_HEADROOM_MAX = 512 with a comment naming
NETDEV_TX_EXTRA_HEADROOM_MAX. The spec still lists only type: uint at the
end of the series.
[ ... ]
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261119013830.36935-1-tianyi%40cloudflare.com
Technical Details
Message-ID:
<179540636572.3135.16989356517509282876@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-369013-linux-kernel-netdev=dewy.ruReferences:
<20261119013830.36935-11-tianyi@cloudflare.com>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-369013-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 10/11] netlink: specs: rt-link: add veth attributes Date: Mon, 23 Nov 2026 03:59:25 +0000 Organization: Usenet Network Message-ID: <179540636572.3135.16989356517509282876@kernel.org> References: <20261119013830.36935-11-tianyi@cloudflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3785870"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:SeLm0HdB8HvPzWKzrefhn3nsmVg= sha256:BW9XzRFkvdm5VZUHJkoKDO383YNefHhw9MhH99SI8Rc= sha1:S9ZDesq+Y/ImyZLMdK+h6qpICpc= sha256:R/DTfORzW7gtufa6NHOH+qhw8zPEreB8b9/C/4gWSeY= 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 76C10125D8E; Mon, 23 Nov 2026 06:59:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 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] 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 VldgE2gEn-ZU; Mon, 23 Nov 2026 06:59:47 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369013-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 C59FB125D8D; Mon, 23 Nov 2026 06:59:38 +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 A16252C440; Mon, 23 Nov 2026 03:59:31 +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=1795406370; b=Dk1uGq9MSGQ7MB8a0vaQq9/TtKWXqlsg6C10NZ0BmILS1DQX5gxeYp0EYtq+sATKvCIn O9E9QpJp/PurHHkh4VFLCh9jVat/jNpa6yiPHzanvdUT9WKwTZbRDAmUhEekwTJEGwzdV YdyJxYMOyndTxj7iShIMLCRuqTkoQ0E+WFFH8jSU0+MW5aundKBdH9gdCa3k9Z2IY1czC T1vDGgjnsfWH2WGctmX2MUL2ZalmlDMTYNO//fl1WvT75/y9lR4RYuTS+QD1Wgk9u9lxi ozGDiUTIZtbbeny6lYjEiUdXKlHAT81pheQRdr7eFfESBi9ISpn35ye4YHvPkfuHvtw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795406370; 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=h/OFAzdpxrl003vwQjCZSPpInQ04oC6dMNVi1B39uzE=; b=VMJrtFGikMhPNKc7f83hpmYVM4Ax583P0mHUkl8qW/yl3uflZDd7h3Ki8KPcGnpJQT4b GsLs7xLPBJDWwXhU/Yg7hiGY0mE9MPJvGARMShyfp1936za7aJS5rjXvHJjpjh7+j7SPu fyUvN/GpeMGKn7HJjkED91GPNGSuuXkYsjvtlLxW3htH6tpR8yE1KxyrTXnhPcuEt4Xxk iasHD2lqEudvNPV/PSpB7QdiRolYR7lzlphGsIHgdHni+O4pveKqTOYP1y5gPRKI8T5Tf yei3U8ebh9nEjWXAlxkjBreFQc/gijxUqjm5K//RFo+OvtvfEtSNor6vYSaniFnuYOA== 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="P9nonK/D"; 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 B6168606A337; Mon, 23 Nov 2026 03:59:30 +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=P9nonK/D 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=1795406369; b=1jFPXJuqFMAC0d+g8cQR/tPn3Lz98V7Obd7u5Po5GEQWVYUtbgqF2Ms32uzFOQHuNlZT 2R1AYnDj34t/9Du0BMc0CQr94YubeuKxNUC4Ge6YqmUcl83AKN9uwSZpjuGuuggCDmEFC JhS7thZsFQRhOhl/fvZArAzvR92IxdGXBQJRtVGYp/aHZvekg4z+JI3qZJYcW9aBq8C+H wFqxhcfb6qBXAISx3ZEn24PssYKZ78mp9NUZam3jCVCXKP6s5PvkKvCh7c8wesykOU0md 6MoDAzhRbaLiz+9NqSLpI7EZSaZWmTZhPzt0DMJzycH0Te/hFBWaInZWiZQKEQUAwZw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795406369; 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=h/OFAzdpxrl003vwQjCZSPpInQ04oC6dMNVi1B39uzE=; b=eZLka0ixtR3K8d1aS4LyjThqW1AOH9Gugok6zDwvwad4RHPhXs0KH4NlDZgSM4DL4t8n 3ZmVrdy6ukbjsy+HkH8hqZd0vk0SZ4t4JVvm3LTiGGzJ2MXwC8ZbnQSvHRaQqRdig450N gp0lQELYi9KJixLXNqzFcV47W1fvnuwgY1Jg7yVmvFvJT0vNzgipXnlo9a/kx0BDaylFL IUB8cq2mI25qD+oVjnwZWbt1nfzwrTuifbRdUBQXvLOFXOdcWxvMGrd52WuZMON91ew8v EM5KNqWR7mCau+SardpHzS/04OQqO3YSLW1VwxpOCUz3uNpJe4UtSA7EAQx7Gd0gs1g== 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="P9nonK/D"; 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 CFB9C606A31A; Mon, 23 Nov 2026 03:59:29 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2523B1F000CA; Mon, 23 Nov 2026 03:59:26 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795406369; bh=h/OFAzdpxrl003vwQjCZSPpInQ04oC6dMNVi1B39uzE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=P9nonK/DKTt9rPNOhwE0lkc/2wnEDWJrqk/1fnJCD69UP9qi0DoDwLFhs6U+FQyHo Zxv8TglY91xCyjkeIaKgozLcTp+Yz2PpeUHTUVKe86jI5dIAF3MahUo3Hp+bJnMX+b En4BTmVSZlMYVoWDO+izrMFE0LLynZxY1Bh1TwKQu35tWkIKfta/Lywvpoph6p4i0n TryRcREA12nkx+i0KpWTOzHjgeCK/QDzMhVpX2/tFcc0qs6eEKGiKGYd7W8sERq+Gs gTjm35Xw/qP5umUm9KsqG+GWhdF3E4y06w3d4NL5oejlCRxMZpXRUt7/G8CNtJyvJK F5afNo8Ixkt7w== X-Cc: netdev@vger.kernel.org, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, davem@davemloft.net, horms@kernel.org, dkeogh@amazon.com, hawk@kernel.org, daniel@iogearbox.net, dwmw2@infradead.org, dtatulea@nvidia.com, noren@nvidia.com, alasdair@mcwilliam.dev, willemdebruijn.kernel@gmail.com, maciej.fijalkowski@intel.com, sdf@fomichev.me, magnus.karlsson@intel.com, dsahern@kernel.org, idosch@nvidia.com, ast@kernel.org, john.fastabend@gmail.com, donald.hunter@gmail.com, andrew+netdev@lunn.ch, corbet@lwn.net, skhan@linuxfoundation.org, shuah@kernel.org, rdunlap@infradead.org, leitao@debian.org, ast@fiberby.net, danieller@nvidia.com, kuniyu@google.com, bpf@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@cloudflare.com, nh-open-source@amazon.com, stephen@networkplumber.org, gustavoars@kernel.org, one-d-wide@protonmail.com, ameryhung@gmail.com, andrii@kernel.org, aroulin@nvidia.com, anilkaushikwireless@gmail.com, demosthenes.ra@gmail.com, eddyz87@gmail.com, emil@etsalapatis.com, hangbin.liu@linux.dev, ihor.solodrai@linux.dev, jiayuan.chen@linux.dev, jolsa@kernel.org, joe@dama.to, memxor@gmail.com, lirongqing@baidu.com, louis.scalbert@6wind.com, mkl@pengutronix.de, martin.lau@linux.dev, mkarsten@uwaterloo.ca, mattbobrowski@google.com, michael.bommarito@gmail.com, razor@blackwall.org, runyu.xiao@seu.edu.cn, song@kernel.org, linux@leemhuis.info, wang.zhan@smartx.com, yonghong.song@linux.dev, n0ps1edzz@gmail.com, tianyi.gao@linux.dev X-In-Reply-To: <20261119013830.36935-11-tianyi@cloudflare.com> 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