be0330cb1b
Within rte_hash_reset, calling a while loop to dequeue one by one from the ring, while not using them at all, is wasting cycles, The patch just flush the ring by resetting the indices can save CPU cycles. Signed-off-by: Gavin Hu <gavin.hu@arm.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com> Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
20 lines
423 B
Meson
20 lines
423 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
version = 2
|
|
headers = files('rte_cmp_arm64.h',
|
|
'rte_cmp_x86.h',
|
|
'rte_crc_arm64.h',
|
|
'rte_cuckoo_hash.h',
|
|
'rte_fbk_hash.h',
|
|
'rte_hash_crc.h',
|
|
'rte_hash.h',
|
|
'rte_jhash.h',
|
|
'rte_thash.h')
|
|
|
|
sources = files('rte_cuckoo_hash.c', 'rte_fbk_hash.c')
|
|
deps += ['ring']
|
|
|
|
# rte ring reset is not yet part of stable API
|
|
allow_experimental_apis = true
|