diff options
author | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2019-11-04 13:50:31 +0000 |
---|---|---|
committer | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2019-12-31 11:51:05 +0000 |
commit | b8f1ef2b02b8709c72408ee4803f442efc9f4576 (patch) | |
tree | 95a16adc465206d351cbf1b823f793c7592f00e7 /app/nginx/auto/modules | |
parent | 47eb00f25ab06a699dc27507814c7656940340af (diff) |
v6: make TCP stream alloc/free to use memtank API
Introduce two extra parameters for TCP context creation:
struct {
uint32_t min;
/**< min number of free streams (grow threshold). */
uint32_t max;
/**< max number of free streams (shrink threshold). */
} free_streams;
By default these params are equal to max_streams value
(avoid dynamic allocation and preserve current beahviour).
grow() is invoked from accept() FE call to refill streams tank for BE.
shrink() is invoked from close() FE call.
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Change-Id: I7af6a76d64813ee4a535323e27ffbfd75037fc92
Diffstat (limited to 'app/nginx/auto/modules')
-rw-r--r-- | app/nginx/auto/modules | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/nginx/auto/modules b/app/nginx/auto/modules index f1791c9..cdba3a8 100644 --- a/app/nginx/auto/modules +++ b/app/nginx/auto/modules @@ -1239,9 +1239,10 @@ if [ $USE_TLDK = YES ]; then src/tldk/tldk_event.c src/tldk/parse.c" ngx_module_libs="-L${TLDK_ROOT}/${RTE_TARGET}/lib -Wl,--whole-archive - -ltle_l4p -ltle_dring -ltle_timer -Wl,--no-whole-archive - -L${RTE_SDK}/${RTE_TARGET}/lib -Wl,--whole-archive -ldpdk - -lm -lpcap -lnuma -Wl,--no-whole-archive" + -ltle_l4p -ltle_dring -ltle_memtank -ltle_timer + -Wl,--no-whole-archive -L${RTE_SDK}/${RTE_TARGET}/lib + -Wl,--whole-archive -ldpdk -lm -lpcap -lnuma + -Wl,--no-whole-archive" ngx_module_link=YES ngx_module_order= |