mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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 <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-12-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8e2e08a6d1
commit
866e503212
1 changed files with 14 additions and 0 deletions
|
@ -1321,6 +1321,18 @@ static void mlx5_cmd_hws_modify_header_dealloc(struct mlx5_flow_root_namespace *
|
|||
modify_hdr->fs_hws_action.mh_data = NULL;
|
||||
}
|
||||
|
||||
static int mlx5_cmd_hws_create_match_definer(struct mlx5_flow_root_namespace *ns,
|
||||
u16 format_id, u32 *match_mask)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static int mlx5_cmd_hws_destroy_match_definer(struct mlx5_flow_root_namespace *ns,
|
||||
int definer_id)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static const struct mlx5_flow_cmds mlx5_flow_cmds_hws = {
|
||||
.create_flow_table = mlx5_cmd_hws_create_flow_table,
|
||||
.destroy_flow_table = mlx5_cmd_hws_destroy_flow_table,
|
||||
|
@ -1335,6 +1347,8 @@ static const struct mlx5_flow_cmds mlx5_flow_cmds_hws = {
|
|||
.packet_reformat_dealloc = mlx5_cmd_hws_packet_reformat_dealloc,
|
||||
.modify_header_alloc = mlx5_cmd_hws_modify_header_alloc,
|
||||
.modify_header_dealloc = mlx5_cmd_hws_modify_header_dealloc,
|
||||
.create_match_definer = mlx5_cmd_hws_create_match_definer,
|
||||
.destroy_match_definer = mlx5_cmd_hws_destroy_match_definer,
|
||||
.create_ns = mlx5_cmd_hws_create_ns,
|
||||
.destroy_ns = mlx5_cmd_hws_destroy_ns,
|
||||
.set_peer = mlx5_cmd_hws_set_peer,
|
||||
|
|
Loading…
Add table
Reference in a new issue