[dpdk-dev] [PATCH v2] hash: fix to support multi process

2016-04-01 Thread Thomas Monjalon
Hi Pablo, There is a build issue for arm-armv7a-linuxapp-gcc: lib/librte_hash/rte_cuckoo_hash.c:129:2: error: 'rte_hash_k16_cmp_eq' undeclared here The functions rte_hash_k*_cmp_eq are defined only for x86 and ARM64. Note that RTE_ARCH_X86 could be used instead of

[dpdk-dev] [PATCH v2] hash: fix to support multi process

2016-04-01 Thread De Lara Guarch, Pablo
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, April 01, 2016 2:07 PM > To: De Lara Guarch, Pablo > Cc: dev at dpdk.org; Richardson, Bruce > Subject: Re: [dpdk-dev] [PATCH v2] hash: fix to support multi pro

[dpdk-dev] [PATCH v2] hash: fix to support multi process

2016-03-30 Thread Pablo de Lara
Hash library used a function pointer to choose a different key compare function, depending on the key size. As a result, multiple processes could not use the same hash table, as the function addresses vary from one process to another. Instead, a jump table is used, so each process has its own