🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2421

Re: [RFC PATCH net-next] netfilter: nf_conntrack: add ct expression support for netdev egress chains

#2421
From: Florian Westphal
Date: Mon, 12 Oct 2026 16:13
31 lines
5750 bytes
Hari Chandrakanthan <hari.chandrakanthan@oss.qualcomm.com> wrote:
> I agree that enabling inet/bridge conntrack solely for netdev/egress 
> would be unnecessary overhead.

Not following.  What is 'netdev egress only'?
Where are the skbs coming from, i.e. though what pipeline?

Bridge?
Routing?

> To address this, as suggested by Pablo, we are considering enabling 
> conntrack lookup/creation at
> netdev/ingress. This would allow netdev chains to access conntrack state 
> without requiring conntrack
> to be enabled for the inet or bridge families, avoiding unnecessary 
> overhead for netdev-only use cases.

FWIW bridge conntrack is already problematic (see recent RFC patch
to refag in INPUT, conntrack is pretty much routing-only.

> Kindly share your thoughts on this approach.

I think you'd have to explain your use case.

I thought you only want

skb-> mark = ct->mark

from egress. That would imply something else already enabled conntrack
anyway, else you'd have no conntrack marks set that you could read.
Technical Details
Message-ID: <as0HMjsgUvKd7dAo@strlen.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345102-linux-kernel-netdev=dewy.ru
References: <20261006085844.2694120-1-hari.chandrakanthan@oss.qualcomm.com> <asTd69Buuk6PisMl@strlen.de> <fe6fe48c-df09-41be-acff-bbae33454bd9@oss.qualcomm.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345102-linux-kernel-netdev=dewy.ru
From: fw@strlen.de (Florian Westphal)
Newsgroups: linux.kernel.netdev
Subject: Re: [RFC PATCH net-next] netfilter: nf_conntrack: add ct expression
 support for netdev egress chains
Date: Mon, 12 Oct 2026 18:13:38 +0200
Organization: Usenet Network
Message-ID: <as0HMjsgUvKd7dAo@strlen.de>
References: <20261006085844.2694120-1-hari.chandrakanthan@oss.qualcomm.com>
 <asTd69Buuk6PisMl@strlen.de>
 <fe6fe48c-df09-41be-acff-bbae33454bd9@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1821485"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:fH54D3V0w6Vczt2xi+PVUM36LTY= sha256:+naT7CduNnvSBNAi5PnZiYUdMx1Wvj5G6yUQWgQPGq0=
	sha1:vbEqqo52TttXxOnuOverQTG3KfA= sha256:3Dni2xwPHWlrbTJ1+xZOegPbdnJ9rJZ5b2cVvKIpbTY=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 898B810FC56; Mon, 12 Oct 2026 19:14:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.751
X-Spam-Status: No, score=-0.751 tagged_above=-9999 required=6.31
	tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 6mK2aqpHbf4U;
	Mon, 12 Oct 2026 19:14:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-345102-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=strlen.de
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 1B4BD10FC2D; Mon, 12 Oct 2026 19:14:43 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sto.lore.kernel.org (Postfix) with ESMTP id 3B420605BDC; Mon, 12 Oct 2026 16:14:07 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AC474AD7D6;
	Mon, 12 Oct 2026 16:13:52 +0000 (UTC)
X-Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30])
	(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 CA9B249A3D6;
	Mon, 12 Oct 2026 16:13:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791821632; cv=none; b=jhPUJFnGYmzmjqOxC15/OL9uS4KZqBSS28yz0gN4TOwKQUgy6LHle2sHR4sDLULI28oWSSOv6a+fLQGV5GHR0S787jyXG8OiOSBtY5eiUtm2Znt21bQb7nF97A5GKVN9VEDbVYihgYdqWSWyt7s0jmxWfniIVJhmAlbIM48NdU0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791821632; c=relaxed/simple;
	bh=UpTCKSzAb1uzcZnKeQMJ3Ny8uiDLbdNLjHKmwZ6y+U8=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=sMXq18HilGyP+snXZ3vml96X6yPfE4k1wtJWbAYwDNt0Vsnjkfg6xaG3mCPwDsC8o27TFpox9qxSfNStIvs1aj+O9N/JKVOaSzizyVkQykAkKA53m/GuZmTs9zqML62zK4jQMH8xkrv6C1qa6+XHYf2RmRoM1h7HvPUYCiaGc7Q=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.client-ip=91.216.245.30
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de
X-Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003)
	id A8C9F60293; Mon, 12 Oct 2026 18:13:41 +0200 (CEST)
X-Cc: pablo@netfilter.org, phil@nwl.cc, netfilter-devel@vger.kernel.org,
	coreteam@netfilter.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <fe6fe48c-df09-41be-acff-bbae33454bd9@oss.qualcomm.com>