Article View: linux.kernel.netdev
Article #2254[PATCH net v2 0/2] net/mlx5: HWS, fix modify header pattern compare
From: Alexandre Cassen
Date: Mon, 12 Oct 2026 10:19
Date: Mon, 12 Oct 2026 10:19
30 lines
6666 bytes
6666 bytes
The fs_hws modify header pools and the HWS pattern cache decide whether two modify headers can share a pattern. Two bugs let different patterns compare equal: - On big-endian the HWS core comparison checks the data dword of each action instead of its control dword. - The fs_hws pool match ignores the destination of copy and add_field actions. Patch 2 moves the pool match to the HWS core comparison that patch 1 fixes. v2: - Add patch 1 for the big-endian compare (Sashiko). - Reword patch 2 to stay true on big-endian. v1: https://lore.kernel.org/netdev/20261010120147.135825-1-acassen@corp.free.fr/ Alexandre Cassen (2): net/mlx5: HWS, fix modify header pattern compare on big-endian net/mlx5: HWS, fix modify header pool match for copy actions .../mlx5/core/steering/hws/fs_hws_pools.c | 10 +++------- .../mellanox/mlx5/core/steering/hws/mlx5hws.h | 15 +++++++++++++++ .../mellanox/mlx5/core/steering/hws/pat_arg.c | 12 ++++++------ 3 files changed, 24 insertions(+), 13 deletions(-) -- 2.43.0
Technical Details
Message-ID:
<20261012101937.1335231-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-344893-linux-kernel-netdev=dewy.ruShow 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-344893-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 modify header pattern compare Date: Mon, 12 Oct 2026 12:19:33 +0200 Organization: Usenet Network Message-ID: <20261012101937.1335231-1-acassen@corp.free.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1744081"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:4aLVOBMMy9KnUi8xljNb8Ld8Drc= sha256:GkT4/3sb27l28tXxPW9+X6kkyTvpXnefbKvmgmayy0E= sha1:qHh6VMhHlE7hesnvY96FWM+8ALk= sha256:bzYI1ki0kWPSsVQ6at7nwt9d5t9CMvuRus3D82kus58= 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 3327E10FB8D; Mon, 12 Oct 2026 13:25:02 +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 MGbhzJTDnY7O; Mon, 12 Oct 2026 13:24:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-344893-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 936F510FB62; Mon, 12 Oct 2026 13:24:49 +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 6F612602119; Mon, 12 Oct 2026 10:20:16 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E0CC3F329B; Mon, 12 Oct 2026 10:20:09 +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="LL18k3/4" 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 26D223E51F5; Mon, 12 Oct 2026 10:19:45 +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=1791800408; cv=none; b=Emv28GzIkJ0CFj+J1+kWM3JJpDBO/EnOPZgoEj2eqNDQtRWgWWoi9ZK0fltycWmmQuAHCvPkGV6LUsavXiWRIYKvPjowdCgMU/CnyadRHuNvObuovtjIjrCSDlz44ruykltaXTS1NcquZjCGGlJegPbiNvR6RyNaXOZGNnBagfA= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791800408; c=relaxed/simple; bh=U4s+GG5V2XJ4cj+9o4vFipLY9pxVY7PT0ptGOi9J/Q0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UowxymMftkxoSsXOoZ60g9Dla11TbAguReUrnrkwHSw0aAeFixmFfpRTPPGDMY+oros2XxIkgpel6WYfUmzrQ8WGo59arZ25u7upteiud3gzUUKqEXcPQX8RqyiY06EJ41vk6DN1WLf7IyGZJaDiv9IM8TXrNDjFdRZ/BMLyqVs= 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=LL18k3/4; 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=1791800384; bh=U4s+GG5V2XJ4cj+9o4vFipLY9pxVY7PT0ptGOi9J/Q0=; h=From:To:Cc:Subject:Date:From; b=LL18k3/4nq0uytSQqdAtTeBOSiF5MdBVCl+tQdvqvokbNDYqYv51V2wljLeXjxogp B5BV5pmuV3QYz1sZJCRL0soyHNrjVTMEGfyrvk2+IdL5LOPyfLyR95xyDjHiacxLGB cVSchMX31cV3GqpPHS9s4Wx5jZm7ywuYHQqHKcI90KLfKl2PEzinUOki0MMn69+ZIv qHRaLsnPlk27vJMn9mS8oMIlfNri2NOBvFBoH5HnpHdvxsqLU02HbrOSiHs0F12X71 jb6miPy++klQ6Lix8qul0FmRcJDPCjnkxbnyKRsCfVAcMSgWamcOSLzUh1256CNQtW rybg2oN69b7Nw== 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 05C2444C12AC; Mon, 12 Oct 2026 12:19:44 +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>, Hamdan Agbariya <hamdani@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>