mlx5 PSP IFC bits
Subsystems (5)
From: Saeed Mahameed <[email protected]>
Hi Jakub, Jason,
This PR has a single patch to add mlx5_ifc PSP related capabilities structures and HW definitions needed for PSP support in mlx5.
Please pull and let me know if there's any problem.
The following changes since commit 40653f280b2640e5caa94eeedee43e0f1df97704:
{rdma,net}/mlx5: export mlx5_vport_get_vhca_id (2025-08-15 12:17:47 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git tags/mlx5-psp-ifc
for you to fetch changes up to 04a3134f88a4bd03001a3093144819523cfca99e:
net/mlx5: Add PSP capabilities structures and bits (2025-09-02 23:08:13 -0700)
----------------------------------------------------------------
mlx5 PSP IFC bits
----------------------------------------------------------------
Saeed Mahameed (1):
net/mlx5: Add PSP capabilities structures and bits
drivers/net/ethernet/mellanox/mlx5/core/fw.c | 6 ++ .../net/ethernet/mellanox/mlx5/core/main.c | 1 + .../mellanox/mlx5/core/steering/hws/definer.c | 2 +- include/linux/mlx5/device.h | 4 + include/linux/mlx5/mlx5_ifc.h | 95 ++++++++++++++++++- 5 files changed, 103 insertions(+), 5 deletions(-)
Signature · 1 line
2.50.1
PATCH 1/1 net/mlx5: Add PSP capabilities structures and bits
From: Saeed Mahameed <[email protected]>
Add mlx5_ifc PSP related capabilities structures and HW definitions needed for PSP support in mlx5.
--- drivers/net/ethernet/mellanox/mlx5/core/fw.c | 6 ++ .../net/ethernet/mellanox/mlx5/core/main.c | 1 + .../mellanox/mlx5/core/steering/hws/definer.c | 2 +- include/linux/mlx5/device.h | 4 + include/linux/mlx5/mlx5_ifc.h | 95 ++++++++++++++++++- 5 files changed, 103 insertions(+), 5 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/fw.c +6 -0
@@ -294,6 +294,12 @@ int mlx5_query_hca_caps(struct mlx5_core_dev *dev)return err; } +if (MLX5_CAP_GEN (dev, psp)) { + err =mlx5_core_get_caps (dev,MLX5_CAP_PSP ); +if (err) +return err; + } +return 0 ; }
drivers/net/ethernet/mellanox/mlx5/core/main.c +1 -0
@@ -1798,6 +1798,7 @@ static const int types[] = {MLX5_CAP_VDPA_EMULATION ,MLX5_CAP_IPSEC ,MLX5_CAP_PORT_SELECTION , +MLX5_CAP_PSP ,MLX5_CAP_MACSEC ,MLX5_CAP_ADV_VIRTUALIZATION , MLX5_CAP_CRYPTO,
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c +1 -1
@@ -1280,7 +1280,7 @@ hws_definer_conv_misc2(struct mlx5hws_definer_conv_data *cd,struct mlx5hws_definer_fc *fc = cd->fc;struct mlx5hws_definer_fc *curr_fc; - if (HWS_IS_FLD_SET_SZ(match_param, misc_parameters_2.reserved_at_1a0, 0x8) || + if (HWS_IS_FLD_SET_SZ(match_param, misc_parameters_2.psp_syndrome, 0x8) || HWS_IS_FLD_SET_SZ(match_param, misc_parameters_2.ipsec_next_header, 0x8) || HWS_IS_FLD_SET_SZ(match_param, misc_parameters_2.reserved_at_1c0, 0x40) ||
include/linux/mlx5/device.h +4 -0
@@ -1248,6 +1248,7 @@ enum mlx5_cap_type {MLX5_CAP_IPSEC ,MLX5_CAP_CRYPTO =0x1a ,MLX5_CAP_SHAMPO =0x1d , +MLX5_CAP_PSP =0x1e ,MLX5_CAP_MACSEC =0x1f ,MLX5_CAP_GENERAL_2 =0x20 , MLX5_CAP_PORT_SELECTION = 0x25,
@@ -1487,6 +1488,9 @@ enum mlx5_qcam_feature_groups {#define MLX5_CAP_SHAMPO (mdev, cap) \ MLX5_GET(shampo_cap, mdev->caps.hca[MLX5_CAP_SHAMPO]->cur, cap) +#define MLX5_CAP_PSP (mdev, cap)\ + MLX5_GET(psp_cap, (mdev)->caps.hca[MLX5_CAP_PSP]->cur, cap) +enum {MLX5_CMD_STAT_OK =0x0 ,MLX5_CMD_STAT_INT_ERR =0x1 ,
include/linux/mlx5/mlx5_ifc.h +91 -4
163 lines not on this page · raw message
Signature · 1 line
2.50.1
Re: [PATCH 1/1] net/mlx5: Add PSP capabilities structures and bits
This patch was applied to netdev/net-next.git (main) by Saeed Mahameed <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Saeed Mahameed <[email protected]>:
Quoted 9 lines · On Tue, 2 Sep 2025 23:30:50 -0700 you wrote:
From: Saeed Mahameed <[email protected]>
Add
mlx5_ifcPSP related capabilities structures and HW definitions needed for PSP support in mlx5.Signed-off-by Saeed Mahameed <[email protected]>[...]
Here is the summary with links:
- [1/1] net/mlx5: Add PSP capabilities structures and bits
https://git.kernel.org/netdev/net-next/c/04a3134f88a4
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
This pull request was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This pull request was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 2 Sep 2025 23:30:49 -0700 you wrote:
From: Saeed Mahameed <[email protected]>
Hi Jakub, Jason,
This PR has a single patch to add
mlx5_ifcPSP related capabilities structures and HW definitions needed for PSP support in mlx5.[...]
Here is the summary with links:
- [GIT,PULL] mlx5 PSP IFC bits
https://git.kernel.org/netdev/net-next/c/0e2a5208cc3d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html