| 278 | } |
| 279 | |
| 280 | static struct nfp_mask_id_entry * |
| 281 | nfp_mask_table_search(struct nfp_flow_priv *priv, |
| 282 | char *mask_data, |
| 283 | uint32_t mask_len) |
| 284 | { |
| 285 | int index; |
| 286 | uint32_t hash_key; |
| 287 | struct nfp_mask_id_entry *entry; |
| 288 | |
| 289 | hash_key = rte_jhash(mask_data, mask_len, priv->hash_seed); |
| 290 | index = rte_hash_lookup_data(priv->mask_table, &hash_key, (void **)&entry); |
| 291 | if (index < 0) { |
| 292 | PMD_DRV_LOG(DEBUG, "Data NOT found in the mask table."); |
| 293 | return NULL; |
| 294 | } |
| 295 | |
| 296 | return entry; |
| 297 | } |
| 298 | |
| 299 | static bool |
| 300 | nfp_check_mask_add(struct nfp_flow_priv *priv, |
no test coverage detected