From 1c5d7496f4c7f5d0358d8b57781fd471882b1ece Mon Sep 17 00:00:00 2001 From: wangyalei Date: Tue, 24 Jul 2018 02:37:52 +0800 Subject: Feat: Add a new type 4 for simple stack integration When simple stack integration(type=4), only alloc necessary memory(32M), and add prefix to differentiate the apps in primary mode. Change-Id: Ide8b3a276e999827b7ad3321cbd62cff127c2d44 Signed-off-by: Yalei Wang --- src/adapt/nstack_dmm_adpt.c | 3 ++- src/adapt/nstack_dmm_adpt.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/adapt') diff --git a/src/adapt/nstack_dmm_adpt.c b/src/adapt/nstack_dmm_adpt.c index c5fd660..637301b 100644 --- a/src/adapt/nstack_dmm_adpt.c +++ b/src/adapt/nstack_dmm_adpt.c @@ -121,7 +121,8 @@ nstack_adpt_init (nstack_dmm_para * para) stinfo.iargsnum = para->argc; stinfo.pargs = para->argv; stinfo.enflag = para->proc_type; - if (para->deploy_type >= NSTACK_MODEL_TYPE1) + if (para->deploy_type != NSTACK_MODEL_TYPE1 + && para->deploy_type != NSTACK_MODEL_TYPE_SIMPLE_STACK) { g_same_process = 0; } diff --git a/src/adapt/nstack_dmm_adpt.h b/src/adapt/nstack_dmm_adpt.h index 25ac61f..1621475 100644 --- a/src/adapt/nstack_dmm_adpt.h +++ b/src/adapt/nstack_dmm_adpt.h @@ -30,6 +30,8 @@ typedef enum *and nStack don't take care the communication between stack and stack adpt */ NSTACK_MODEL_TYPE3 = 3, /*nSocket and stack belong to different processes, and sbr was supplied to communicate whit stack */ + NSTACK_MODEL_TYPE_SIMPLE_STACK = 4, /* like TYPE1, DMM will NOT provide SBR or pipeline mode, just allocate 32M, and use dpdk file + * prefix to support multiple running app under DMM */ NSTACK_MODEL_INVALID, } nstack_model_deploy_type; -- cgit