Re: [RFC net-next 08/15] ipxlat: add translation engine and dispatch core
From: Ralf Lici <hidden>
Date: 2026-06-22 16:05:12
Also in:
lkml
On Mon, 22 Jun 2026 10:32:23 +0200, Beniamino Galvani [off-list ref] wrote:
Hi,
Hi Beniamino,
speaking as a maintainer of NetworkManager, I would also like to see this feature in the kernel! In NetworkManager currently we are using a BPF program [1] to implement the CLAT, but that approach comes with limitations: for example, we can't fragment v4->v6 packets if needed, and it's not possible to recompute checksums in certain cases (e.g. for v4->v6 UDP packets with zero checksum, and for fragmented ICMP). systemd-networkd is also adding CLAT support via BPF [2], with a fallback to userspace for the cases that can't be handled in kernel. It would be very useful to have a native in-kernel CLAT that solves the limitations of BPF-based solutions, and can be used by different tools without having to re-implement everything from scratch.
Thanks, this is really useful context. CLAT is exactly the kind of consumer ipxlat aims to serve, and the gaps you hit in BPF line up directly with paths ipxlat already handles. I'll cite this as motivation in the next cover letter, if that's alright. While reading the BPF programs, two things stood out that would help shape v2. On addressing, both implementations use a single NAT64/PLAT prefix for destinations plus an explicit local_v4<>local_v6 mapping for the host itself. ipxlat today maps both source and destination through one RFC 6052 prefix, so this suggests v2 should probably support explicit 1:1 address mappings (EAM, RFC 7757) alongside prefix embedding. Is a single local mapping enough for your case, or do you foresee needing several? On the consumer side, is there anything in how NM models a connection that would make a particular kernel model awkward to drive, e.g. needing to attach to an already-managed interface, or conversely being able to create and own a dedicated device? We're still settling the kernel-facing model for v2, so consumer input here is genuinely valuable. Thanks, -- Ralf Lici Mandelbit Srl