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

Function nfp_flow_table_add

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

Source from the content-addressed store, hash-verified

352}
353
354static int
355nfp_flow_table_add(struct nfp_flow_priv *priv,
356 struct rte_flow *nfp_flow)
357{
358 int ret;
359
360 ret = rte_hash_add_key_data(priv->flow_table, &nfp_flow->hash_key, nfp_flow);
361 if (ret != 0) {
362 PMD_DRV_LOG(ERR, "Add to flow table failed.");
363 return ret;
364 }
365
366 return 0;
367}
368
369static int
370nfp_flow_table_delete(struct nfp_flow_priv *priv,

Callers 1

nfp_flow_table_add_mergeFunction · 0.85

Calls 1

rte_hash_add_key_dataFunction · 0.85

Tested by

no test coverage detected