Skip to content

Commit 866e503

Browse files
mosheshemesh2kuba-moo
authored andcommitted
net/mlx5: fs, set create match definer to not supported by HWS
Currently HW Steering does not support the API functions of create and destroy match definer. Return not supported error in case requested. Signed-off-by: Moshe Shemesh <[email protected]> Reviewed-by: Yevgeny Kliteynik <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8e2e08a commit 866e503

File tree

1 file changed

+14
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/steering/hws

1 file changed

+14
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,18 @@ static void mlx5_cmd_hws_modify_header_dealloc(struct mlx5_flow_root_namespace *
13211321
modify_hdr->fs_hws_action.mh_data = NULL;
13221322
}
13231323

1324+
static int mlx5_cmd_hws_create_match_definer(struct mlx5_flow_root_namespace *ns,
1325+
u16 format_id, u32 *match_mask)
1326+
{
1327+
return -EOPNOTSUPP;
1328+
}
1329+
1330+
static int mlx5_cmd_hws_destroy_match_definer(struct mlx5_flow_root_namespace *ns,
1331+
int definer_id)
1332+
{
1333+
return -EOPNOTSUPP;
1334+
}
1335+
13241336
static const struct mlx5_flow_cmds mlx5_flow_cmds_hws = {
13251337
.create_flow_table = mlx5_cmd_hws_create_flow_table,
13261338
.destroy_flow_table = mlx5_cmd_hws_destroy_flow_table,
@@ -1335,6 +1347,8 @@ static const struct mlx5_flow_cmds mlx5_flow_cmds_hws = {
13351347
.packet_reformat_dealloc = mlx5_cmd_hws_packet_reformat_dealloc,
13361348
.modify_header_alloc = mlx5_cmd_hws_modify_header_alloc,
13371349
.modify_header_dealloc = mlx5_cmd_hws_modify_header_dealloc,
1350+
.create_match_definer = mlx5_cmd_hws_create_match_definer,
1351+
.destroy_match_definer = mlx5_cmd_hws_destroy_match_definer,
13381352
.create_ns = mlx5_cmd_hws_create_ns,
13391353
.destroy_ns = mlx5_cmd_hws_destroy_ns,
13401354
.set_peer = mlx5_cmd_hws_set_peer,

0 commit comments

Comments
 (0)