Searched refs:cached_pattern (Results 1 – 2 of 2) sorted by relevance
/linux-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
D | pat_arg.c | 151 struct mlx5hws_pattern_cache_item *cached_pattern; in mlx5hws_pat_get_existing_cached_pattern() local 153 cached_pattern = mlx5hws_pat_find_cached_pattern(cache, num_of_actions, actions); in mlx5hws_pat_get_existing_cached_pattern() 154 if (cached_pattern) { in mlx5hws_pat_get_existing_cached_pattern() 156 list_del_init(&cached_pattern->ptrn_list_node); in mlx5hws_pat_get_existing_cached_pattern() 157 list_add(&cached_pattern->ptrn_list_node, &cache->ptrn_list); in mlx5hws_pat_get_existing_cached_pattern() 158 cached_pattern->refcount++; in mlx5hws_pat_get_existing_cached_pattern() 161 return cached_pattern; in mlx5hws_pat_get_existing_cached_pattern() 170 struct mlx5hws_pattern_cache_item *cached_pattern; in mlx5hws_pat_add_pattern_to_cache() local 172 cached_pattern = kzalloc(sizeof(*cached_pattern), GFP_KERNEL); in mlx5hws_pat_add_pattern_to_cache() 173 if (!cached_pattern) in mlx5hws_pat_add_pattern_to_cache() [all …]
|
/linux-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
D | dr_ptrn.c | 56 struct mlx5dr_ptrn_obj *cached_pattern; in dr_ptrn_find_cached_pattern() local 59 list_for_each_entry_safe(cached_pattern, tmp, &mgr->ptrn_list, list) { in dr_ptrn_find_cached_pattern() 60 if (dr_ptrn_compare_modify_hdr(cached_pattern->num_of_actions, in dr_ptrn_find_cached_pattern() 61 (__be64 *)cached_pattern->data, in dr_ptrn_find_cached_pattern() 67 list_del_init(&cached_pattern->list); in dr_ptrn_find_cached_pattern() 68 list_add(&cached_pattern->list, &mgr->ptrn_list); in dr_ptrn_find_cached_pattern() 69 return cached_pattern; in dr_ptrn_find_cached_pattern()
|