Re: [dpdk-dev] [PATCH v3] ipsec: use hash lookup with hash sigs in sad lookup

2020-04-25 Thread Thomas Monjalon
20/04/2020 20:27, Vladimir Medvedkin: > Change hash function from jhash to crc. > Precalculate hash signatures for a bulk of keys and then > use rte_hash_lookup_with_hash_bulk_data() to speed up sad lookup > Also use rte_hash_add_key_with_hash and _del_key_with_hash with > precalculated hash signat

Re: [dpdk-dev] [PATCH v3] ipsec: use hash lookup with hash sigs in sad lookup

2020-04-21 Thread Medvedkin, Vladimir
Hi Lukas, http://patches.dpdk.org/patch/66715/ is suspended due to new hash library it relates to will not be applied in 20.05. This patch replaces lookup in __ipsec_sad_lookup only for SPI_ONLY table. So yes, in the future both solutions will coexist (new rte_dwk_hash_lookup for SPI_ONLY and r

Re: [dpdk-dev] [PATCH v3] ipsec: use hash lookup with hash sigs in sad lookup

2020-04-21 Thread Lukas Bartosik [C]
Hi Vladimir, How does this patch relate to http://patches.dpdk.org/patch/66715/. Both patches replace lookup function rte_hash_lookup_bulk_data used in __ipsec_sad_lookup with rte_hash_lookup_with_hash_bulk_data or rte_dwk_hash_lookup. Is the plan for both solutions to coexist or will only one