| 352 | } |
| 353 | |
| 354 | static int |
| 355 | nfp_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 | |
| 369 | static int |
| 370 | nfp_flow_table_delete(struct nfp_flow_priv *priv, |
no test coverage detected