| 3022 | } |
| 3023 | |
| 3024 | static bool |
| 3025 | nfp_pre_tun_table_delete(struct nfp_flow_priv *priv, |
| 3026 | char *hash_data, |
| 3027 | uint32_t hash_len) |
| 3028 | { |
| 3029 | int ret; |
| 3030 | uint32_t hash_key; |
| 3031 | |
| 3032 | hash_key = rte_jhash(hash_data, hash_len, priv->hash_seed); |
| 3033 | ret = rte_hash_del_key(priv->pre_tun_table, &hash_key); |
| 3034 | if (ret < 0) { |
| 3035 | PMD_DRV_LOG(ERR, "Delete from pre tunnel table failed"); |
| 3036 | return false; |
| 3037 | } |
| 3038 | |
| 3039 | return true; |
| 3040 | } |
| 3041 | |
| 3042 | static int |
| 3043 | nfp_pre_tun_table_check_add(struct nfp_flower_representor *repr, |
no test coverage detected