]> www.infradead.org Git - users/hch/misc.git/commit
net/mlx5: fs, add HWS packet reformat API function
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 9 Jan 2025 16:05:36 +0000 (18:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2025 03:21:08 +0000 (19:21 -0800)
commitaecd9d1020e3c6d29ecc9efccbcee7863e83c517
treebbfc7527b8d8ad33a399eeea87c4e608e56ef2ac
parentc7e62a788a98387f8ccc34c8b9c0ba2d144e7d16
net/mlx5: fs, add HWS packet reformat API function

Add packet reformat alloc and dealloc API functions to provide packet
reformat actions for steering rules.

Add HWS action pools for each of the following packet reformat types:
- decapl3: decapsulate l3 tunnel to l2
- encapl2: encapsulate l2 to tunnel l2
- encapl3: encapsulate l2 to tunnel l3
- insert_hdr: insert header

In addition cache remove header action for remove vlan header as this is
currently the only use case of remove header action in the driver.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250109160546.1733647-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.c
drivers/net/ethernet/mellanox/mlx5/core/fs_pool.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.h [new file with mode: 0644]
include/linux/mlx5/mlx5_ifc.h