Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'net-mlx5-hw-steering-cleanups'

Tariq Toukan says:

====================
net/mlx5: HW Steering cleanups

This short series by Yevgeny contains several small HW Steering cleanups:

- Patch 1: removing unused FW commands
- Patch 2: using list_move() instead of list_del/add
- Patch 3: printing the unsupported combination of match fields
====================

Link: https://patch.msgid.link/1741780194-137519-1-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

+4 -14
-6
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
··· 130 130 return mlx5_cmd_exec_in(mdev, destroy_flow_table, in); 131 131 } 132 132 133 - void mlx5hws_cmd_alias_flow_table_destroy(struct mlx5_core_dev *mdev, 134 - u32 table_id) 135 - { 136 - hws_cmd_general_obj_destroy(mdev, MLX5_OBJ_TYPE_FT_ALIAS, table_id); 137 - } 138 - 139 133 static int hws_cmd_flow_group_create(struct mlx5_core_dev *mdev, 140 134 struct mlx5hws_cmd_fg_attr *fg_attr, 141 135 u32 *group_id)
-3
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.h
··· 258 258 int mlx5hws_cmd_flow_table_destroy(struct mlx5_core_dev *mdev, 259 259 u8 fw_ft_type, u32 table_id); 260 260 261 - void mlx5hws_cmd_alias_flow_table_destroy(struct mlx5_core_dev *mdev, 262 - u32 table_id); 263 - 264 261 int mlx5hws_cmd_rtc_create(struct mlx5_core_dev *mdev, 265 262 struct mlx5hws_cmd_rtc_create_attr *rtc_attr, 266 263 u32 *rtc_id);
+3 -3
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
··· 500 500 return 0; 501 501 502 502 err_conflict: 503 - mlx5hws_err(cd->ctx, "Invalid definer fields combination\n"); 503 + mlx5hws_err(cd->ctx, "Invalid definer fields combination: match_flags = 0x%08x\n", 504 + cd->match_flags); 504 505 return -EINVAL; 505 506 } 506 507 ··· 1986 1985 continue; 1987 1986 1988 1987 /* Reuse definer and set LRU (move to be first in the list) */ 1989 - list_del_init(&cached_definer->list_node); 1990 - list_add(&cached_definer->list_node, &cache->list_head); 1988 + list_move(&cached_definer->list_node, &cache->list_head); 1991 1989 cached_definer->refcount++; 1992 1990 return cached_definer->definer.obj_id; 1993 1991 }
+1 -2
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.c
··· 153 153 cached_pattern = mlx5hws_pat_find_cached_pattern(cache, num_of_actions, actions); 154 154 if (cached_pattern) { 155 155 /* LRU: move it to be first in the list */ 156 - list_del_init(&cached_pattern->ptrn_list_node); 157 - list_add(&cached_pattern->ptrn_list_node, &cache->ptrn_list); 156 + list_move(&cached_pattern->ptrn_list_node, &cache->ptrn_list); 158 157 cached_pattern->refcount++; 159 158 } 160 159