Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by netdev-bot+sashiko
Mon, 23 Nov 2026 03:59
Re: [PATCH net-next v2 10/11] netlink: specs: rt-link: add veth attributes
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads