Searched refs:cached_pattern (Results 1 – 2 of 2) sorted by relevance
151 struct mlx5hws_pattern_cache_item *cached_pattern; in mlx5hws_pat_get_existing_cached_pattern() local153 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_move(&cached_pattern->ptrn_list_node, &cache->ptrn_list); in mlx5hws_pat_get_existing_cached_pattern()157 cached_pattern->refcount++; in mlx5hws_pat_get_existing_cached_pattern()160 return cached_pattern; in mlx5hws_pat_get_existing_cached_pattern()169 struct mlx5hws_pattern_cache_item *cached_pattern; in mlx5hws_pat_add_pattern_to_cache() local171 cached_pattern = kzalloc_obj(*cached_pattern); in mlx5hws_pat_add_pattern_to_cache()172 if (!cached_pattern) in mlx5hws_pat_add_pattern_to_cache()175 cached_pattern->mh_data.num_of_actions = num_of_actions; in mlx5hws_pat_add_pattern_to_cache()[all …]
56 struct mlx5dr_ptrn_obj *cached_pattern; in dr_ptrn_find_cached_pattern() local59 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()