Home
last modified time | relevance | path

Searched refs:flow_rules_cache (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/google/gve/
Dgve_flow_rule.c198 struct gve_adminq_queried_flow_rule *rules_cache = priv->flow_rules_cache.rules_cache; in gve_get_flow_rule_entry()
200 u32 *cache_num = &priv->flow_rules_cache.rules_cache_num; in gve_get_flow_rule_entry()
208 if (!priv->flow_rules_cache.rules_cache_synced || in gve_get_flow_rule_entry()
215 priv->flow_rules_cache.rules_cache_synced = true; in gve_get_flow_rule_entry()
235 __be32 *rule_ids_cache = priv->flow_rules_cache.rule_ids_cache; in gve_get_flow_rule_ids()
236 u32 *cache_num = &priv->flow_rules_cache.rule_ids_cache_num; in gve_get_flow_rule_ids()
Dgve_adminq.c1255 priv->flow_rules_cache.rules_cache_synced = false; in gve_adminq_configure_flow_rule()
1374 struct gve_flow_rules_cache *flow_rules_cache = &priv->flow_rules_cache; in gve_adminq_process_flow_rules_query() local
1384 rule_info_len = num_queried_rules * sizeof(*flow_rules_cache->rules_cache); in gve_adminq_process_flow_rules_query()
1390 memcpy(flow_rules_cache->rules_cache, rule_info, rule_info_len); in gve_adminq_process_flow_rules_query()
1391 flow_rules_cache->rules_cache_num = num_queried_rules; in gve_adminq_process_flow_rules_query()
1394 rule_info_len = num_queried_rules * sizeof(*flow_rules_cache->rule_ids_cache); in gve_adminq_process_flow_rules_query()
1400 memcpy(flow_rules_cache->rule_ids_cache, rule_info, rule_info_len); in gve_adminq_process_flow_rules_query()
1401 flow_rules_cache->rule_ids_cache_num = num_queried_rules; in gve_adminq_process_flow_rules_query()
Dgve_main.c146 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
[all …]
Dgve.h835 struct gve_flow_rules_cache flow_rules_cache; member