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

Function nfp_flow_table_add_merge

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

Source from the content-addressed store, hash-verified

399}
400
401int
402nfp_flow_table_add_merge(struct nfp_flow_priv *priv,
403 struct rte_flow *nfp_flow)
404{
405 struct rte_flow *flow_find;
406
407 flow_find = nfp_flow_table_search(priv, nfp_flow);
408 if (flow_find != NULL) {
409 if (nfp_flow->merge_flag || flow_find->merge_flag) {
410 flow_find->merge_flag = true;
411 flow_find->ref_cnt++;
412 return 0;
413 }
414
415 PMD_DRV_LOG(ERR, "Add to flow table failed.");
416 return -EINVAL;
417 }
418
419 return nfp_flow_table_add(priv, nfp_flow);
420}
421
422static int
423nfp_flow_table_delete_merge(struct nfp_flow_priv *priv,

Callers 2

nfp_flow_createFunction · 0.85
nfp_ct_offload_addFunction · 0.85

Calls 2

nfp_flow_table_searchFunction · 0.85
nfp_flow_table_addFunction · 0.85

Tested by

no test coverage detected