X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2FCMakeLists.txt;h=f2279d0857ca4821ec3a4a285ca8a4bae4a52631;hb=6f5b72ec0189377951b39a2ae2e4749951ec6730;hp=3998ae6f6a6831555aa71ddef1dac4c2a95089b1;hpb=2c8e0023f91882e53f06eb99c901b97fe013f981;p=vpp.git diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index 3998ae6f6a6..f2279d0857c 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -18,6 +18,13 @@ enable_language(ASM) ############################################################################## set(LOG2_CACHE_LINE_BYTES ${VPP_LOG2_CACHE_LINE_SIZE}) +option(VPP_VECTOR_GROW_BY_ONE "Vectors grow by one, instead of 3/2" OFF) +if(VPP_VECTOR_GROW_BY_ONE) + set(VECTOR_GROW_BY_ONE 1) +else(VPP_VECTOR_GROW_BY_ONE) + set(VECTOR_GROW_BY_ONE 0) +endif(VPP_VECTOR_GROW_BY_ONE) + configure_file( ${CMAKE_SOURCE_DIR}/vppinfra/config.h.in ${CMAKE_BINARY_DIR}/vppinfra/config.h @@ -36,7 +43,6 @@ set(VPPINFRA_SRCS backtrace.c bihash_all_vector.c cpu.c - cuckoo_template.c dlmalloc.c elf.c elog.c @@ -69,6 +75,7 @@ set(VPPINFRA_SRCS time.c time_range.c timing_wheel.c + tw_timer_2t_2w_512sl.c tw_timer_16t_1w_2048sl.c tw_timer_16t_2w_512sl.c tw_timer_1t_3w_1024sl_ov.c @@ -102,6 +109,12 @@ set(VPPINFRA_HEADERS clib.h cpu.h crc32.h + cuckoo_8_8.h + cuckoo_16_8.h + cuckoo_common.h + cuckoo_debug.h + cuckoo_template.h + cuckoo_template.c dlist.h dlmalloc.h elf_clib.h @@ -155,6 +168,7 @@ set(VPPINFRA_HEADERS time.h time_range.h timing_wheel.h + tw_timer_2t_2w_512sl.h tw_timer_16t_1w_2048sl.h tw_timer_16t_2w_512sl.h tw_timer_1t_3w_1024sl_ov.h