| 382 | } |
| 383 | |
| 384 | static struct rte_flow * |
| 385 | nfp_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 | |
| 401 | int |
| 402 | nfp_flow_table_add_merge(struct nfp_flow_priv *priv, |
no test coverage detected