MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nfp_flow_table_search

Function nfp_flow_table_search

dpdk/drivers/net/nfp/nfp_flow.c:384–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384static struct rte_flow *
385nfp_flow_table_search(struct nfp_flow_priv *priv,
386 struct rte_flow *nfp_flow)
387{
388 int index;
389 struct rte_flow *flow_find;
390
391 index = rte_hash_lookup_data(priv->flow_table, &nfp_flow->hash_key,
392 (void **)&flow_find);
393 if (index < 0) {
394 PMD_DRV_LOG(DEBUG, "Data NOT found in the flow table.");
395 return NULL;
396 }
397
398 return flow_find;
399}
400
401int
402nfp_flow_table_add_merge(struct nfp_flow_priv *priv,

Callers 5

nfp_flow_table_add_mergeFunction · 0.85
nfp_flow_processFunction · 0.85
nfp_flow_destroyFunction · 0.85
nfp_flow_stats_getFunction · 0.85

Calls 1

rte_hash_lookup_dataFunction · 0.85

Tested by

no test coverage detected