Searched refs:cached_pattern (Results 1 – 1 of 1) sorted by relevance
152 struct mlx5dr_pattern_cache_item *cached_pattern; in mlx5dr_pat_get_existing_cached_pattern() local154 cached_pattern = mlx5dr_pat_find_cached_pattern(cache, num_of_actions, actions); in mlx5dr_pat_get_existing_cached_pattern()155 if (cached_pattern) { in mlx5dr_pat_get_existing_cached_pattern()157 LIST_REMOVE(cached_pattern, next); in mlx5dr_pat_get_existing_cached_pattern()158 LIST_INSERT_HEAD(&cache->head, cached_pattern, next); in mlx5dr_pat_get_existing_cached_pattern()159 cached_pattern->refcount++; in mlx5dr_pat_get_existing_cached_pattern()162 return cached_pattern; in mlx5dr_pat_get_existing_cached_pattern()171 struct mlx5dr_pattern_cache_item *cached_pattern; in mlx5dr_pat_add_pattern_to_cache() local173 cached_pattern = simple_calloc(1, sizeof(*cached_pattern)); in mlx5dr_pat_add_pattern_to_cache()174 if (!cached_pattern) { in mlx5dr_pat_add_pattern_to_cache()[all …]