🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1053

[PATCH net-next 0/2] net/mlx5: less memory per offloaded tc rule

#1053
From: Alexandre Cassen
Date: Fri, 09 Oct 2026 05:20
20 lines
6347 bytes
Two mlx5 allocations hold more memory than an offloaded tc rule needs.
A NIC flow keeps a 4 KB allocation for parse attributes that nothing
reads after offload. An FTE under hardware steering keeps the 1 KB
action array it was built in while a rule rarely needs more than three
entries.

Freeing the first after offload saves 4 KB per NIC flow. Shrinking the
second saves about 1 KB per FTE under hardware steering.

Alexandre Cassen (2):
  net/mlx5e: TC, free NIC flow parse attributes after offload
  net/mlx5: HWS, shrink FTE action array to fit

 .../net/ethernet/mellanox/mlx5/core/en_tc.c    | 18 +++++++++++++-----
 .../mellanox/mlx5/core/steering/hws/fs_hws.c   | 10 +++++++++-
 2 files changed, 22 insertions(+), 6 deletions(-)

-- 
2.43.0
Technical Details
Message-ID: <20261009052103.3621855-1-acassen@corp.free.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343443-linux-kernel-netdev=dewy.ru

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-343443-linux-kernel-netdev=dewy.ru
From: acassen@corp.free.fr (Alexandre Cassen)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 0/2] net/mlx5: less memory per offloaded tc rule
Date: Fri,  9 Oct 2026 07:20:59 +0200
Organization: Usenet Network
Message-ID: <20261009052103.3621855-1-acassen@corp.free.fr>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1038584"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:UK7JUN5CPD7c5dEjVOdz85dVHp4= sha256:nDMlDL4v1Xuqb2AZg4hJYO4rNIMsAJIYIDzh49zh51s=
	sha1:pygf6HI0jOj7ZZLS9UeZ3jibDFY= sha256:Iy+ohWQ7yNf6wkcFaQfAGy9dP2KyFKTXG2UPxto/dSY=
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 A42E810F5C2; Fri,  9 Oct 2026 08:27:10 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=corp.free.fr
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 TFUm6LmUC_7C;
	Fri,  9 Oct 2026 08:27:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-343443-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=corp.free.fr
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id D627B10F5B0; Fri,  9 Oct 2026 08:27:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 084AA80E54; Fri,  9 Oct 2026 05:21:13 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id B016D3DDAFC;
	Fri,  9 Oct 2026 05:21:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=corp.free.fr header.i=@corp.free.fr header.b="ICjkJM54"
X-Received: from rcs.proxad.net (rcs.proxad.net [212.27.60.169])
	(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 439A23BC680;
	Fri,  9 Oct 2026 05:21:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.27.60.169
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791523272; cv=none; b=Ha2S1Je9ZGVcGsSca/Rg7GJT/OLfIpDKKHF7SFkq/5MG8yPiEpOhvV8K/2vPCoRNvImXVMX3UvAZi3itCuSbqOzTWRlFNVpUfXoVVvRYr2yFsWtxj/Qlp+oMisQ4b8U1njZ8GpHSllIEW3u+S7dJnoz23Zp24ldlPS5ajPmpL9Y=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791523272; c=relaxed/simple;
	bh=Aoi+FScMs1oXrwhDzPRYaLIBrjXVMZKX9oIxsz6BQAg=;
	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FE7ejZ299scqF7CXjWckAVt8phdirxeFu5wawcoaap8wmKrCoAZbTng6bSrQas8kiWqm4A9d1P2gdOt27TJzXLcBzYn6OqvTeIx9xiwGy/bFwSsRvgTIj9ud9fvnot24VlGSdPxW29sc0rgRHQqNbou+9ql+Mv2gU2vPw/0K2L8=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corp.free.fr; spf=pass smtp.mailfrom=corp.free.fr; dkim=pass (2048-bit key) header.d=corp.free.fr header.i=@corp.free.fr header.b=ICjkJM54; arc=none smtp.client-ip=212.27.60.169
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corp.free.fr
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corp.free.fr
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corp.free.fr; s=rcs;
	t=1791523269; bh=Aoi+FScMs1oXrwhDzPRYaLIBrjXVMZKX9oIxsz6BQAg=;
	h=From:To:Cc:Subject:Date:From;
	b=ICjkJM54cV7R6lqcTyO7ldcjtJuoXROmq2l0nkA/OTyq39tG3AUlQauhrZDvyulOK
	 YX4r2Z6YjusVtKA6BJ4Q4hGDUC0M0QhZK84/D2TMismZTRa/m0rPL/C9ZcjtO8chDQ
	 4HXh5zciGG+d2VzemHIwvx4RgfHSS/iuSoz6+CJj/n2lrxAYvyiQ+X+W4/jEzYdQ96
	 6PPiz46egZ8o1qJvGOTZmnjubrJEHcN3N7aOgaENPA1yC5ao1Zr/MekfR8lAeSsCzT
	 0fje8VAvQ9stoxv1R79sT6ud+LniFSK6wADdb1ASAQt1Xj76vHLxD0dzIILuPUaIfe
	 JA55NKHdmnkZw==
X-Received: from lnxos-dev.home (82-66-150-212.subs.proxad.net [82.66.150.212])
	by rcs.proxad.net (Postfix) with ESMTPSA id 171DD44C0B4E;
	Fri,  9 Oct 2026 07:21:09 +0200 (CEST)
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Moshe Shemesh <moshe@nvidia.com>,
	Yevgeny Kliteynik <kliteyn@nvidia.com>,
	netdev@vger.kernel.org,
	linux-rdma@vger.kernel.org
X-Mailer: git-send-email 2.43.0
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>