]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: DR, use the right action structs for STEv3
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Mon, 10 Mar 2025 22:01:39 +0000 (00:01 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Mar 2025 12:11:14 +0000 (13:11 +0100)
commit03ebae19925519cca5b314443c6082e0aeaa6321
treeac9b9f72f3c807394715466e4a64923a9b0db88c
parent1063ae07383c0ddc5bcce170260c143825846b03
net/mlx5: DR, use the right action structs for STEv3

Some actions in ConnectX-8 (STEv3) have different structure,
and they are handled separately in ste_ctx_v3.
This separate handling was missing two actions: INSERT_HDR
and REMOVE_HDR, which broke SWS for Linux Bridge.
This patch resolves the issue by introducing dedicated
callbacks for the insert and remove header functions,
with version-specific implementations for each STE variant.

Fixes: 4d617b57574f ("net/mlx5: DR, add support for ConnectX-8 steering")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Itamar Gozlan <igozlan@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1741644104-97767-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste.h
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.h
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v2.c
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v3.c