From 941b368b03f2fc26538bba3e7e4c9c36841b3456 Mon Sep 17 00:00:00 2001 From: nanger Date: Tue, 21 Aug 2018 09:54:07 +0800 Subject: Refactor: remove rd-table share memory DMM should not share rd table with protocol stack. Change-Id: I8e1afb708c9b785a382c157102ebbc228e550ea5 Signed-off-by: nanger --- src/nSocket/nstack/nstack.c | 12 ------------ src/nSocket/nstack/nstack_module.c | 2 -- 2 files changed, 14 deletions(-) (limited to 'src/nSocket') diff --git a/src/nSocket/nstack/nstack.c b/src/nSocket/nstack/nstack.c index 8718091..4b01961 100644 --- a/src/nSocket/nstack/nstack.c +++ b/src/nSocket/nstack/nstack.c @@ -34,7 +34,6 @@ #include "nstack_fd_mng.h" #include "nstack_info_parse.h" #include "nstack_dmm_adpt.h" -#include "nstack_rd_mng.h" #include "nstack_rd.h" #include "nstack_module.h" #include "nstack_select.h" @@ -447,16 +446,13 @@ nstack_init_shmem () NSTACK_STATIC int nstack_init_mem (void) { - int ret = ns_fail; - int initflag = 0; int deploytype = nstack_get_deploy_type (); /* record unmatched app version*/ /* check lib version match - Begin */ if (deploytype != NSTACK_MODEL_TYPE1 && deploytype != NSTACK_MODEL_TYPE_SIMPLE_STACK ) { check_main_version (); - initflag = 1; } ret = nstack_init_shmem (); @@ -466,14 +462,6 @@ nstack_init_mem (void) return ns_fail; } - /*stack-x rd mng init*/ - ret = nstack_rd_mng_int(initflag); - if (ns_success != ret) - { - NSSOC_LOGERR("nstack_rd_mng_int fail"); - return ns_fail; - } - /*rd info sys*/ ret = nstack_rd_sys(); if (ns_success != ret) diff --git a/src/nSocket/nstack/nstack_module.c b/src/nSocket/nstack/nstack_module.c index 91eda84..bef91e5 100644 --- a/src/nSocket/nstack/nstack_module.c +++ b/src/nSocket/nstack/nstack_module.c @@ -36,7 +36,6 @@ #include "nstack_dmm_adpt.h" #include "nstack_rd_init.h" #include "nstack_info_parse.h" -#include "nstack_rd_mng.h" /* *INDENT-OFF* */ nstack_module_info g_nstack_modules = { @@ -176,7 +175,6 @@ nstack_register_module () nstack_get_route_data rd_fun[] = { nstack_stack_rd_parse, - nstack_rd_ip_get }; pstacks = -- cgit 1.2.3-korg