From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9FD42FE0F for ; Mon, 22 Jun 2026 08:32:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782117153; cv=none; b=WTReMYPsX8JOx1Qjv71DAR8uZ6/IBm6r0GIvxHGognAG48B+T++z+flv5BNAAbRog2UE98zFYsNKOoDkMf1bDpUrpKO1zCWg4EWBlv6KHWPdLW83ZGZ7R0o1WPZWPgLNzA0MBGpWbT3fvNDd2AiLIYXzDjNawKTg3frLXakbNDQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782117153; c=relaxed/simple; bh=DBN/8LG+p04HamuRQZ7d4P+IeoeyPwSQTAa76Ct7epw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hfIrB7+BcEI5RJjCUMhnE9D1Z1Bhis8sxQAjkojJjQeFI6DceAAvX95FPBagPX87I19uUdC3wphaPGG0j193HdNY6go5Rz6AVxbRJgbtLXzdfn8kBJqCv2wt4NgELpj0bMExHuHvQR951yXyCYdEWiDbFskWps8mi/bXbLwlO8w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=H6bb/gzD; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=RonTxDXl; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="H6bb/gzD"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="RonTxDXl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1782117149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dtU4LEzvpIG16gvT3mw9H8YsfN3Y3PRH6FHNr5E7SNo=; b=H6bb/gzDeLIrK9VWzVuDR/KDqaX9WxgqonSAEA35iWZ9sZdccD8jYQyMErC2rV2o5Erj70 eNGLsMIuqCirJ49E5lgtBrKzva3sVHc1s2bNwsqy8xDNp/Mofn55PpewJI6mb0MfE0aiDO dgzbhKhIIAAeI/9WphCJnLOC0hvAAOM= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-625-3I-6huSuOM-ZC09Zl5FZcw-1; Mon, 22 Jun 2026 04:32:28 -0400 X-MC-Unique: 3I-6huSuOM-ZC09Zl5FZcw-1 X-Mimecast-MFC-AGG-ID: 3I-6huSuOM-ZC09Zl5FZcw_1782117147 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-490aeaa6517so4112925e9.1 for ; Mon, 22 Jun 2026 01:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1782117147; x=1782721947; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=dtU4LEzvpIG16gvT3mw9H8YsfN3Y3PRH6FHNr5E7SNo=; b=RonTxDXleHn678FMPFdcu3rfZ8nsOPX6bPeO8FibQs8HD7WUFYiy5izB5/acD7XIhY KFpsxbDiKBfeAGf7yYGu2h1hcL1bbyAU/wn6xxWhqn5gFTKD0jof5+gHj5ubhfN3jM4h 8dBAaLuep07F4+6uBvYb6KINSKXtqci+iDrVQuzsXGwHQRWP/9LWzTHKfnpDmIS5ckiS ptPWMEAATBZGA5b+9NJtheAqTa7S1krokCRntFIPxkyIcgn34Eu81Z+4O8vfugA9o8Qi DdDyRXBVVY3YX9RHDgo2fOWJVCXjnB4+JM38cg7M4EKR0nacT9vPbCzvhphCROKGgyPK z5Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782117147; x=1782721947; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dtU4LEzvpIG16gvT3mw9H8YsfN3Y3PRH6FHNr5E7SNo=; b=dj8Jdy5AnTol9vT7sshh9+5iekkMWjIBy/hY4BElMfQd0feZ2iWI9vAUlwOSFIDK67 3tBc0Yie0u6gdhJ/YHlS+ELXNdUfA5FnNZImTU0h2CwgWU8otWVtu75pBlz4xDrnvDah JH6vb+/7D8ebFdffk5OC9k3CA4o4MUGUWbgWiS0JgBHm8xvZ2MWvxj1KrQuGztwz0Q7z k2EXfyb93hXECGFKBhGNLRzZF/RViTOZzE4Gq6uFVECRBiowiSvIIj+uFzmXfgEUa3YB +mTfMiOi3MeSvr98SttZqh0Ysr/IopLVWN7wOUidYrVyb1TP6Otns0BBoJux2z5I+UYx wglw== X-Forwarded-Encrypted: i=1; AFNElJ9T99vdAInNcve7ZHMb8oceFU0SKyXB8vQjfkoOCyywZBJv4DpX+Nr+s1BGXLKBJEn94TbWE/s=@vger.kernel.org X-Gm-Message-State: AOJu0Yw7vVY1YyhgRrXw+rEaz8AI+UBy1VDkZZpclqFcjf9bvQof1L23 77ZjB7B4K/uCU0nSUb1e7qELxqXv1Z1Bo3m3ZyDcOYKjq0sn/Bheg+Zb+qxgTxDwxQAXC9jXTyp W4xU5GXpRD4ehK8AVJ5vXCm4kiLtvSC2MkxFluSVSdJe1ubtMhfLr73mM X-Gm-Gg: AfdE7ckCvvhC4ZAdPv4Yr6hH2xBRk5IYkeAR59P6npL9fRFcObsJLnp/c1Y/SGL/IQJ hj8ZjLGOlodoj4Ak/t6Jk4ndwd5N+UiV0bXd6U6c3UbWygQlfteJFQvknvfFxwTHoV96bf5DjIF jVc/HxCwPq02WwNp1oHdg9at0X0aDZG1aevjLEvuvT3kMBqei9Khrdih8fk2b6mX35azkLku5Fj w3p4IxtGGS4q1Ul+sROD2I+0oNoW36fvzfOvahCW2hMpaQx+fBtH3MMMqEIW0BIOT7Ounu4x/69 YngpOToWHDVbZV9PQQxW6B2LQRICZ7C/Gjhc8K72XIrHi3r0pee6pA6RkAsb9H1bj+QIaL3tAS3 q X-Received: by 2002:a05:600c:8b74:b0:490:ade7:9ca4 with SMTP id 5b1f17b1804b1-4923ef5c3aemr98702315e9.2.1782117147079; Mon, 22 Jun 2026 01:32:27 -0700 (PDT) X-Received: by 2002:a05:600c:8b74:b0:490:ade7:9ca4 with SMTP id 5b1f17b1804b1-4923ef5c3aemr98701815e9.2.1782117146523; Mon, 22 Jun 2026 01:32:26 -0700 (PDT) Received: from tp ([2a02:29e1:404:f800:9fbc:ecd8:5c1a:509c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49240f054e3sm283362245e9.2.2026.06.22.01.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2026 01:32:26 -0700 (PDT) Date: Mon, 22 Jun 2026 10:32:23 +0200 From: Beniamino Galvani To: Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= Cc: Ralf Lici , netdev@vger.kernel.org, Daniel =?iso-8859-1?Q?Gr=F6ber?= , Antonio Quartulli , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Subject: Re: [RFC net-next 08/15] ipxlat: add translation engine and dispatch core Message-ID: References: <20260319151230.655687-1-ralf@mandelbit.com> <20260319151230.655687-9-ralf@mandelbit.com> <87a4tab1vs.fsf@toke.dk> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a4tab1vs.fsf@toke.dk> On Thu, Jun 04, 2026 at 08:23:51PM +0200, Toke Høiland-Jørgensen wrote: > Ralf Lici writes: > > > This commit introduces the core start_xmit processing flow: validate, > > select action, translate, and forward. It centralizes action resolution > > in the dispatch layer and keeps per-direction translation logic separate > > from device glue. The result is a single data-path entry point with > > explicit control over drop/forward/emit behavior. > > > > Signed-off-by: Ralf Lici > > This is very cool! Going quickly through the series, this seems like > thorough work that will be cool to have available in the kernel, so > thanks for doing this! I'll be quite happy to retire my barebones > BPF-based implementation once this lands :) Hi, 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. Beniamino [1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.57.2-dev/src/core/bpf/clat.bpf.c [2] https://github.com/systemd/systemd/pull/41412