aboutsummaryrefslogtreecommitdiffstats
path: root/src/nSocket
diff options
context:
space:
mode:
authornanger <zhenyinan@huawei.com>2018-08-21 09:54:07 +0800
committernanger <zhenyinan@huawei.com>2018-08-21 10:00:47 +0800
commit941b368b03f2fc26538bba3e7e4c9c36841b3456 (patch)
tree8f25311ca86613efbddf04235834dd24d71153df /src/nSocket
parent866a942c3581440bef9ebda5d84c039490bb3179 (diff)
Refactor: remove rd-table share memory
DMM should not share rd table with protocol stack. Change-Id: I8e1afb708c9b785a382c157102ebbc228e550ea5 Signed-off-by: nanger <zhenyinan@huawei.com>
Diffstat (limited to 'src/nSocket')
-rw-r--r--src/nSocket/nstack/nstack.c12
-rw-r--r--src/nSocket/nstack/nstack_module.c2
2 files changed, 0 insertions, 14 deletions
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 =