Netdev List
 help / color / mirror / Atom feed
* [PATCH net v3 0/2] net/mlx5: HWS, fix modify header pattern compare
@ 2026-10-19 13:31 Alexandre Cassen
  2026-10-19 13:31 ` [PATCH net v3 1/2] net/mlx5: HWS, fix modify header pattern compare on big-endian Alexandre Cassen
  2026-10-19 13:31 ` [PATCH net v3 2/2] net/mlx5: HWS, fix modify header pool match for copy actions Alexandre Cassen
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Cassen @ 2026-10-19 13:31 UTC (permalink / raw)
  To: Saeed Mahameed, Leon Romanovsky, Tariq Toukan, Mark Bloch
  Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Moshe Shemesh, Yevgeny Kliteynik,
	Hamdan Agbariya, netdev, linux-rdma

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.

v3:
- Declare mlx5hws_pat_compare_pattern() in pat_arg.h instead of the HWS
  API header (Yevgeny).
- Name the test hardware in the commit messages.
- Add Simon's and Yevgeny's Reviewed-by to patch 1.
- Drop Simon's Reviewed-by from patch 2 since its code changed.

v2:
- Add patch 1 for the big-endian compare (Sashiko).
- Reword patch 2 to stay true on big-endian.

v2: https://lore.kernel.org/netdev/20261012101937.1335231-1-acassen@corp.free.fr/
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

 .../mellanox/mlx5/core/steering/hws/fs_hws_pools.c   | 11 ++++-------
 .../mellanox/mlx5/core/steering/hws/pat_arg.c        | 12 ++++++------
 .../mellanox/mlx5/core/steering/hws/pat_arg.h        |  5 +++++
 3 files changed, 15 insertions(+), 13 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-19 14:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 13:31 [PATCH net v3 0/2] net/mlx5: HWS, fix modify header pattern compare Alexandre Cassen
2026-10-19 13:31 ` [PATCH net v3 1/2] net/mlx5: HWS, fix modify header pattern compare on big-endian Alexandre Cassen
2026-10-19 14:49   ` Yevgeny Kliteynik
2026-10-19 13:31 ` [PATCH net v3 2/2] net/mlx5: HWS, fix modify header pool match for copy actions Alexandre Cassen
2026-10-19 14:49   ` Yevgeny Kliteynik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox