diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2018-01-04 14:35:57 +0100 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2018-01-04 14:37:56 +0100 |
commit | 972dac6999c939a3b1f70d69f81082d8cabd04c7 (patch) | |
tree | 1cf056c902771ebbb8ddbbc0f021b3662b72708b /VNFs/DPPD-PROX/hash_utils.c | |
parent | 25ffc7091ffe7069e6b4aeed9a5a69aa034c58f9 (diff) |
Add support for DPDK 17.11
Change-Id: I5611ead4b61b23d6c1c983852e8c75619e08ecf9
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
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); } |