Lines Matching refs:flow_rules_cache
146 struct gve_flow_rules_cache *flow_rules_cache = &priv->flow_rules_cache; in gve_alloc_flow_rule_caches() local
152 flow_rules_cache->rules_cache = in gve_alloc_flow_rule_caches()
153 kvcalloc(GVE_FLOW_RULES_CACHE_SIZE, sizeof(*flow_rules_cache->rules_cache), in gve_alloc_flow_rule_caches()
155 if (!flow_rules_cache->rules_cache) { in gve_alloc_flow_rule_caches()
160 flow_rules_cache->rule_ids_cache = in gve_alloc_flow_rule_caches()
161 kvcalloc(GVE_FLOW_RULE_IDS_CACHE_SIZE, sizeof(*flow_rules_cache->rule_ids_cache), in gve_alloc_flow_rule_caches()
163 if (!flow_rules_cache->rule_ids_cache) { in gve_alloc_flow_rule_caches()
172 kvfree(flow_rules_cache->rules_cache); in gve_alloc_flow_rule_caches()
173 flow_rules_cache->rules_cache = NULL; in gve_alloc_flow_rule_caches()
179 struct gve_flow_rules_cache *flow_rules_cache = &priv->flow_rules_cache; in gve_free_flow_rule_caches() local
181 kvfree(flow_rules_cache->rule_ids_cache); in gve_free_flow_rule_caches()
182 flow_rules_cache->rule_ids_cache = NULL; in gve_free_flow_rule_caches()
183 kvfree(flow_rules_cache->rules_cache); in gve_free_flow_rule_caches()
184 flow_rules_cache->rules_cache = NULL; in gve_free_flow_rule_caches()