diff options
author | Deepak S <deepak.s@linux.intel.com> | 2018-01-16 12:51:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-16 12:51:27 +0000 |
commit | deab1ee8197298bd7cf30d259a28206841d59383 (patch) | |
tree | 46a480248b2ba495991feaee540081e5d7f1b6cd /VNFs/DPPD-PROX/hash_utils.c | |
parent | 0249d9c01370221b724d794a3d048b01a9dd325b (diff) | |
parent | 972dac6999c939a3b1f70d69f81082d8cabd04c7 (diff) |
Merge "Add support for DPDK 17.11"
Diffstat (limited to 'VNFs/DPPD-PROX/hash_utils.c')
-rw-r--r-- | VNFs/DPPD-PROX/hash_utils.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/hash_utils.c b/VNFs/DPPD-PROX/hash_utils.c index 4ebab94e..ad746d5c 100644 --- a/VNFs/DPPD-PROX/hash_utils.c +++ b/VNFs/DPPD-PROX/hash_utils.c @@ -42,11 +42,15 @@ struct rte_table_hash_key8 { #endif /* Input parameters */ uint32_t n_buckets; +#if RTE_VERSION < RTE_VERSION_NUM(17,11,0,0) uint32_t n_entries_per_bucket; +#endif uint32_t key_size; uint32_t entry_size; uint32_t bucket_size; +#if RTE_VERSION < RTE_VERSION_NUM(17,11,0,0) uint32_t signature_offset; +#endif uint32_t key_offset; #if RTE_VERSION >= RTE_VERSION_NUM(2,2,0,0) uint64_t key_mask; @@ -178,7 +182,7 @@ uint64_t get_bucket_key8(void* table, uint32_t bucket_idx, void** key, void** en return f->n_buckets; } -uint64_t hash_crc32(void* key, uint32_t key_size, uint64_t seed) +uint64_t hash_crc32(void* key, __attribute__((unused))void *key_mask, uint32_t key_size, uint64_t seed) { return rte_hash_crc(key, key_size, seed); } |