Skip to content

Commit ac7ea1c

Browse files
PatrisiousHaddadrleon
authored andcommitted
net/mlx5: Add RoCE MACsec steering infrastructure in core
Adds all the core steering helper functions that are needed in order to setup RoCE steering rules which includes both the RX and TX rules addition and deletion. As well as exporting the function to be ready to use from the IB driver where we expose functions to allow deletion of all rules, which is needed when a GID is deleted, or a deletion of a specific rule when an SA is deleted, and a similar manner for the rules addition. These functions are used in a later patch by IB driver to trigger the rules addition/deletion when needed. Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
1 parent 8c14a2c commit ac7ea1c

File tree

5 files changed

+427
-9
lines changed

5 files changed

+427
-9
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ static int mlx5_cmd_modify_header_alloc(struct mlx5_flow_root_namespace *ns,
967967
max_actions = MLX5_CAP_ESW_INGRESS_ACL(dev, max_modify_header_actions);
968968
table_type = FS_FT_ESW_INGRESS_ACL;
969969
break;
970+
case MLX5_FLOW_NAMESPACE_RDMA_TX_MACSEC:
970971
case MLX5_FLOW_NAMESPACE_RDMA_TX:
971972
max_actions = MLX5_CAP_FLOWTABLE_RDMA_TX(dev, max_modify_header_actions);
972973
table_type = FS_FT_RDMA_TX;

0 commit comments

Comments
 (0)