numam-dpdk/test/test-pipeline
Jasvinder Singh 8ea4143883 table: add dedicated params struct for cuckoo hash
Add dedicated parameter structure for cuckoo hash. The cuckoo hash from
librte_hash uses slightly different prototype for the hash function (no
key_mask parameter, 32-bit seed and return value) that require either
of the following approaches:
   1/ Function pointer conversion: gcc 8.1 warning [1], misleading [2]
   2/ Union within the parameter structure: pollutes a very generic API
      parameter structure with some implementation dependent detail
      (i.e. key mask not available for one of the available
      implementations)
   3/ Using opaque pointer for hash function: same issue from 2/
   4/ Different parameter structure: avoid issue from 2/; hopefully,
      it won't be long before librte_hash implements the key mask feature,
      so the generic API structure could be used.

[1] http://www.dpdk.org/ml/archives/dev/2018-April/094950.html
[2] http://www.dpdk.org/ml/archives/dev/2018-April/096250.html

Fixes: 5a80bf0ae6 ("table: add cuckoo hash")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2018-05-08 16:19:58 +02:00
..
config.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
init.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
main.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
main.h table: add dedicated params struct for cuckoo hash 2018-05-08 16:19:58 +02:00
Makefile test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
pipeline_acl.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
pipeline_hash.c table: add dedicated params struct for cuckoo hash 2018-05-08 16:19:58 +02:00
pipeline_lpm_ipv6.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
pipeline_lpm.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
pipeline_stub.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
runtime.c test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00