Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Antonio Quartulli
Tue, 01 Dec 2026 00:34
Re: [RFC PATCH net-next 5/9] amt: add IFLA_AMT_OFFLOAD_MODE
Author: 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
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