🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #207

[PATCH net 2/2] net/mlx5: HWS, fix flow meter offset within its bulk

#207
From: Alexandre Cassen
Date: Wed, 07 Oct 2026 14:38
25 lines
6944 bytes
The flow meter action is bound to the first ASO object of the bulk but
the rule offset only indexes the meter within its own object. A rule
past the first object runs on the wrong meter.

Fixes: 82d3639ef7dc ("net/mlx5: fs, add support for flow meters HWS action")
Signed-off-by: Alexandre Cassen <acassen@corp.free.fr>
---
 drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
index 44b311b4532d..54761754e657 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
@@ -928,6 +928,7 @@ static int mlx5_fs_fte_get_hws_actions(struct mlx5_flow_root_namespace *ns,
 			goto free_actions;
 		}
 		(*ractions)[num_actions].aso_meter.offset =
+			(fte_action->exe_aso.object_id - fte_action->exe_aso.base_id) * 2 +
 			fte_action->exe_aso.flow_meter.meter_idx;
 		(*ractions)[num_actions].aso_meter.init_color =
 			fte_action->exe_aso.flow_meter.init_color;
-- 
2.43.0
Technical Details
Message-ID: <20261007143830.1733583-3-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-342374-linux-kernel-netdev=dewy.ru
References: <20261007143830.1733583-1-acassen@corp.free.fr>

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-342374-linux-kernel-netdev=dewy.ru
From: acassen@corp.free.fr (Alexandre Cassen)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 2/2] net/mlx5: HWS, fix flow meter offset within its bulk
Date: Wed,  7 Oct 2026 16:38:23 +0200
Organization: Usenet Network
Message-ID: <20261007143830.1733583-3-acassen@corp.free.fr>
References: <20261007143830.1733583-1-acassen@corp.free.fr>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="667039"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hMnDy7C1qglSP7fZ+sh8YcuDB14= sha256:tdFxHDUq8Bfhe6b15IupRLAsiVBSeRLwJDEMRYejmHA=
	sha1:xyU7fB3TysHQrMfZa6b/SIUKde8= sha256:+TNhmJpVBG2UCWDqYF43OOjS/cfk7kxUqVReE13K42I=
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 11E1610F193; Wed,  7 Oct 2026 17:48:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, RCVD_IN_DNSWL_MED=-2.3, 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 yrppwINvHRpn;
	Wed,  7 Oct 2026 17:48:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342374-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 2C3F310F148; Wed,  7 Oct 2026 17:48:24 +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 BF8CA3EB55; Wed,  7 Oct 2026 14:38:53 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 991F737EFFD;
	Wed,  7 Oct 2026 14:38:48 +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="T5YUeQCK"
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 7615E3F9F50;
	Wed,  7 Oct 2026 14:38:40 +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=1791383928; cv=none; b=VMSJx95Wgvi1H1wwESAWcql+z/hPNDqsufwVdeqAGd3OzfUkY6plMR/AE7YngP6/QvLYwvnA1HiZyEuYE742UalxJY2zw7+UDA3T8Nvh061XkncmxiILO02fKeNGQqLUkUY6w4r4ho/qcX7V3v/WE5uGqOgmflur/6EeO1Jsa9w=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791383928; c=relaxed/simple;
	bh=q5ZraEb90zjJzA8ZhRK7+hTfcqX2QdXYoM/jBIwazR8=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=uyIqvBit+A4OgBlj9OTJVLz0idvUoelF5qOyjOkqQddHXkWIeQCamL3fFXPBrcGaJgseuMgPSPKijU92kyOO+AVyQgHckSvisu8ZxHESrgaKuOFGEVxyvB9JcvVoaYrMM/yhjApJ1tAKcRKVPvzONrRR2zrnQpZio0qh7z/kvrA=
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=T5YUeQCK; 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=1791383918; bh=q5ZraEb90zjJzA8ZhRK7+hTfcqX2QdXYoM/jBIwazR8=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=T5YUeQCKo4FqstM3mYAAWdb4h+CuyJhpVtwXRfFiHVvYwJxvB9LBkDb63w9ukU3Ll
	 NX2jr7UTps8pR2kCBXBxGqZTBW2RTcC69EknezbF7yK3PK1jt9VXZjKWfFuN39dGN4
	 FwD7wMsUBxDj6O0LKQZxMy2vsyPe5XTqGGiSiRJ/1Uxuy/ooBCekc9bGPeQcRvyi1r
	 hUHAjq8ArK1mfFgMSFn7GputNAZXQjB915qBXXZ2KyFiGOvu1vYSTBgj0lhI5XOXst
	 SwnPniuE1VaTwCqFBjTo5rQ8drvnMsMLgLUd/JSePtRyHYZisKZlKeZDIQiiHK866B
	 OQdkUcoVqbIHg==
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 A687C44C1117;
	Wed,  7 Oct 2026 16:38:38 +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-In-Reply-To: <20261007143830.1733583-1-acassen@corp.free.fr>
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>