🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2245

[PATCH net v2 0/2] net/mlx5: HWS, fix pool creation races

#2245
From: Alexandre Cassen
Date: Mon, 12 Oct 2026 10:05
26 lines
6394 bytes
This series fixes two pool creation races in fs_hws hit when two
callers create the first pool for a reformat size or a modify header
pattern at once:

- Reformat pools keep the pool inserted first.
- Modify header pools serialize the pool creation while keeping a new
  pool on error.

v2:
- Keep the pattern lookup out of the mutex and look again under it on
  a miss (Moshe).
- Add Moshe's Reviewed-by to patch 1.

v1: https://lore.kernel.org/netdev/20261008204230.3222198-1-acassen@corp.free.fr/

Alexandre Cassen (2):
  net/mlx5: HWS, fix reformat pool creation race
  net/mlx5: HWS, fix modify header pool creation race

 .../mellanox/mlx5/core/steering/hws/fs_hws.c  | 66 +++++++++++--------
 .../mellanox/mlx5/core/steering/hws/fs_hws.h  |  1 +
 2 files changed, 40 insertions(+), 27 deletions(-)

-- 
2.43.0
Technical Details
Message-ID: <20261012100555.1317878-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-344882-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-344882-linux-kernel-netdev=dewy.ru
From: acassen@corp.free.fr (Alexandre Cassen)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net v2 0/2] net/mlx5: HWS, fix pool creation races
Date: Mon, 12 Oct 2026 12:05:52 +0200
Organization: Usenet Network
Message-ID: <20261012100555.1317878-1-acassen@corp.free.fr>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1741052"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iNlYo19prU04TO2HHyUEcN7YfmM= sha256:3Q/qRSjPLgeLXLqK+ZA6MsWuq9osL9Dr67So64hbCLk=
	sha1:61fpdsm3VPW867HE74bTDuTiU90= sha256:Ez7FDpXR7HENx9b4P9oByXJN5pUS54WAKEE6jdGlZV8=
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 918CE10FB84; Mon, 12 Oct 2026 13:11:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.85
X-Spam-Status: No, score=-0.85 tagged_above=-9999 required=6.31
	tests=[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 SbAfXhZRLtXk;
	Mon, 12 Oct 2026 13:11:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-344882-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id E563F10FB72; Mon, 12 Oct 2026 13:11:04 +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 CA4BC607B0E; Mon, 12 Oct 2026 10:07:00 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 88223479864;
	Mon, 12 Oct 2026 10:06:22 +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="R3GV+BsK"
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 CEFE647206F;
	Mon, 12 Oct 2026 10:06:04 +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=1791799582; cv=none; b=NPZ6OuTLv9oGnTNnsO/eVTVpcfnokUTvUZPlkVmUGczRZ54GKiLhVz9wYEac/My+HgMPiThi4g1DTQYy2cUGF5gUUaA6MKs52fMn+OJLIPEqCcd69BJFD4SjVJCh0H9BtQwfNmHkX1J1xuihe8Mlm7bfQg6WPEZzvV8c9tEEbdo=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791799582; c=relaxed/simple;
	bh=tHNHraEPZAMKF+UIoRjW7/z+zXnRWkv9w9GLrm/TpG0=;
	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WjeDXas+MtfeLvPu/EpwiBzOyzR5lujvrQ0CvRwVe7zxBIORBOml6erPjCwQ2SkODlgbn7aZfBqwOWRbQ8yTKaS1qmBLfZp/W56o+1ZsLs/Il/r5Js6HQ4jHfnoNnDyOK/Sqp1eaJQzkGtu9I3HeEcN7JKHF0aQaCQwKal/n0A0=
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=R3GV+BsK; 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=1791799562; bh=tHNHraEPZAMKF+UIoRjW7/z+zXnRWkv9w9GLrm/TpG0=;
	h=From:To:Cc:Subject:Date:From;
	b=R3GV+BsK/dHxOGpQCMC3N8j8egQvBZ9JwrnD6I3Hc/oTx+7hYkbpQ3yuX0FAGdCcA
	 65hSlHPnlZ+nEsVBIn6BU2lWwBVqG9oVQz/Wl83C5wg7KBM/TxCaq2RBeopOkT6lFm
	 TSW1O+rZbTT1HhqRatcW94H2S5xAq77lSRnG8M5zRbPY1ryF6mu1B3yIFucW00wot2
	 5ibG4XPt/IiB35vM1aR1HQEPd1jy5LKZ33iIz0INKWg4H52+N93jrMv66YPddv6Xgv
	 gNUiLEuCzdkKbhcATAe6gnTlt4p7atXIANrjsnWm5LNvxHDd/kzJ/8dEMgPIrzs8ki
	 xzcj9OwUmsIuA==
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 08A0E44C2B6C;
	Mon, 12 Oct 2026 12:06:02 +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>