Hi Omar, On Sat, Nov 07, 2026 at 06:44:28PM +0000, Omar Ramadan wrote:
> This is an RFC and is NOT for merge. We are posting it to find a > provider: a Linux-attached device (DPU, SmartNIC, switch ASIC or P4 > target) whose driver would implement the contract below. We will not > post a for-merge version until one in-tree driver with a named > maintainer implements it, [...]
Per-patch comments are in the replies to each patch. Summary here. I built your amt-offload-rfc-v1 branch: W=1 is clean, and the amt KUnit suite passes 29/29 under KASAN and lockdep, with IPV6=y and =n. amt_offload.sh was not run, because it needs your unreleased iproute2 (?) patch. Series-level points: - The series does not apply to net-next, so it got no automated review: Sashiko skipped it [1], and NIPA can't build or test it. Reviewers have to rebuild your base by hand. Could you please post the prerequisites first, or rebase onto net-next? - The contract fixes a lot of policy in the core for an interface with no users: per-packet generations, epochs, an op budget, ENOSPC hysteresis, timeout/flush/replay, and an unimplemented ingress path. Most of the bugs below live in that policy. I'd shrink it to "member added/removed" notifications plus an offloaded state, and leave retry and capacity decisions to the driver...if that makes sense. - The performance section measures an unposted change on a 6.18 out-of-tree driver...Technically it tells us nothing about this series, so it can probably go.
> 1. This RFC registers providers in a registry keyed by the lower > netdev and adds nothing to struct net_device or net_device_ops. > Once a real driver exists, would you rather see a struct net_device > field or an ndo instead?
I think an ops pointer in struct net_device under IS_ENABLED(CONFIG_AMT), like macsec_ops, xfrmdev_ops and tlsdev_ops, would do. That removes the registry, the -EEXIST case, the registration lost on a netns move (see 1/9 and 2/9), and the provider's link dependency on amt.ko.
> 2. Is netdevsim the right home for the reference provider, given it > has no ingress classifier to simulate and so can only exercise the > TX path?
As a test vehicle next to a real driver, yes - it makes ense, and opt-in per device (see 7/9). On its own it only validates a contract shaped around it.
> 3. Is an in-kernel provider contract for a single tunnel driver > acceptable at all, or would you want it expressed through an > existing offload framework? We did not find one that models > one-to-N unicast replication with per-destination encapsulation.
TC flower with N tunnel_key + mirred actions is one-to-N replication with per-destination encap, and it is offloaded through flow_offload today. VXLAN head-end replication with MDB offload via switchdev is another "close" model. Please explain in the cover letter why neither fits. The possible gap I see is that AMT tunnels aren't netdevs and AMT isn't a known encap type, but that should be argued, not assumed?
> 4. The per-relay offload state and counters are exposed in a sysfs > offload/ group on the amt device for this RFC. We expect to move > them to netlink (link xstats) for a for-merge version, and would > like guidance on that.
As per your statement, I agree you should go netlink only: - the mode as an attribute with a policy range; - bound state and path as read-only attributes in fill_info; - counters through IFLA_STATS_LINK_XSTATS; - hardware counters through IFLA_STATS_LINK_OFFLOAD_XSTATS; - provider health and capacity through the driver's own devlink. No sysfs group and no module parameters should be required at that point. Please also describe the attributes in Documentation/netlink/specs/rt-link.yaml: a linkinfo-amt-attrs set and an "amt" entry in linkinfo-data-msg, as ovpn and the other link kinds have. amt has no entry there today, while with one, YNL can create and inspect relays, and the selftest doesn't have to wait for iproute2 (see 5/9 and 8/9). [1] https://sashiko.dev/#/patchset/2026…%40blockcast.net Best Regards, Antonio