Lines Matching refs:ctx_entry
298 struct nfp_fl_stats_ctx_to_flow *ctx_entry; in nfp_compile_flow_metadata() local
315 ctx_entry = kzalloc(sizeof(*ctx_entry), GFP_KERNEL); in nfp_compile_flow_metadata()
316 if (!ctx_entry) { in nfp_compile_flow_metadata()
321 ctx_entry->stats_cxt = stats_cxt; in nfp_compile_flow_metadata()
322 ctx_entry->flow = nfp_flow; in nfp_compile_flow_metadata()
324 if (rhashtable_insert_fast(&priv->stats_ctx_table, &ctx_entry->ht_node, in nfp_compile_flow_metadata()
381 &ctx_entry->ht_node, in nfp_compile_flow_metadata()
384 kfree(ctx_entry); in nfp_compile_flow_metadata()
402 struct nfp_fl_stats_ctx_to_flow *ctx_entry; in nfp_modify_flow_metadata() local
419 ctx_entry = rhashtable_lookup_fast(&priv->stats_ctx_table, &temp_ctx_id, in nfp_modify_flow_metadata()
421 if (!ctx_entry) in nfp_modify_flow_metadata()
425 &ctx_entry->ht_node, in nfp_modify_flow_metadata()
427 kfree(ctx_entry); in nfp_modify_flow_metadata()
435 struct nfp_fl_stats_ctx_to_flow *ctx_entry; in nfp_flower_get_fl_payload_from_ctx() local
438 ctx_entry = rhashtable_lookup_fast(&priv->stats_ctx_table, &ctx_id, in nfp_flower_get_fl_payload_from_ctx()
440 if (!ctx_entry) in nfp_flower_get_fl_payload_from_ctx()
443 return ctx_entry->flow; in nfp_flower_get_fl_payload_from_ctx()