da65740a16
Add key comparison functions to be used by the exact match and the learner table types as part of the performance critical lookup operation. Since the key size is fixed, it is possible to select a specialized memory copy function as opposed to using the variable size version, resulting in a performance improvement of around 5%. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com> Signed-off-by: Kamalakannan R <kamalakannan.r@intel.com>
53 lines
1.3 KiB
Meson
53 lines
1.3 KiB
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
if is_windows
|
|
build = false
|
|
reason = 'not supported on Windows'
|
|
subdir_done()
|
|
endif
|
|
|
|
sources = files(
|
|
'rte_swx_keycmp.c',
|
|
'rte_swx_table_em.c',
|
|
'rte_swx_table_learner.c',
|
|
'rte_swx_table_selector.c',
|
|
'rte_swx_table_wm.c',
|
|
'rte_table_acl.c',
|
|
'rte_table_array.c',
|
|
'rte_table_hash_cuckoo.c',
|
|
'rte_table_hash_ext.c',
|
|
'rte_table_hash_key8.c',
|
|
'rte_table_hash_key16.c',
|
|
'rte_table_hash_key32.c',
|
|
'rte_table_hash_lru.c',
|
|
'rte_table_lpm.c',
|
|
'rte_table_lpm_ipv6.c',
|
|
'rte_table_stub.c',
|
|
)
|
|
headers = files(
|
|
'rte_lru.h',
|
|
'rte_swx_hash_func.h',
|
|
'rte_swx_table.h',
|
|
'rte_swx_table_em.h',
|
|
'rte_swx_table_learner.h',
|
|
'rte_swx_table_selector.h',
|
|
'rte_swx_table_wm.h',
|
|
'rte_table.h',
|
|
'rte_table_acl.h',
|
|
'rte_table_array.h',
|
|
'rte_table_hash.h',
|
|
'rte_table_hash_cuckoo.h',
|
|
'rte_table_hash_func.h',
|
|
'rte_table_lpm.h',
|
|
'rte_table_lpm_ipv6.h',
|
|
'rte_table_stub.h',
|
|
)
|
|
deps += ['mbuf', 'port', 'lpm', 'hash', 'acl']
|
|
|
|
indirect_headers += files(
|
|
'rte_lru_arm64.h',
|
|
'rte_lru_x86.h',
|
|
'rte_table_hash_func_arm64.h',
|
|
)
|