Searched refs:cached_pattern (Results 1 – 1 of 1) 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(sizeof(*cached_pattern), GFP_KERNEL); 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 …]