diff options
author | 2018-07-24 02:37:52 +0800 | |
---|---|---|
committer | 2018-08-14 16:48:34 +0800 | |
commit | 1c5d7496f4c7f5d0358d8b57781fd471882b1ece (patch) | |
tree | 695a843e8d885746be1416955a4f4e82b90cc91a /src/adapt | |
parent | c080b73a936e0fcdb2d90b32a38135edde2d8fa7 (diff) |
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 <william.wangyalei@huawei.com>
Diffstat (limited to 'src/adapt')
-rw-r--r-- | src/adapt/nstack_dmm_adpt.c | 3 | ||||
-rw-r--r-- | src/adapt/nstack_dmm_adpt.h | 2 |
2 files changed, 4 insertions, 1 deletions
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; |