diff options
author | sharath reddy <bs.reddy@huawei.com> | 2019-06-04 11:53:49 +0530 |
---|---|---|
committer | sharath reddy <bs.reddy@huawei.com> | 2019-06-04 20:38:30 +0530 |
commit | 2a42ad20b9730706ad371ae3787d4597c4e42276 (patch) | |
tree | fa01cd312586ea007468e7233f94c0ce53d75873 /stacks/lwip_stack/configure | |
parent | a826fe833d3f2a8fe2673fa05811fe1a22baf045 (diff) |
Feature: 19.04 part-2DMM-2
Change-Id: I0b52a6bb67c25c7955d58e29eb81a3cc9efea9e9
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Diffstat (limited to 'stacks/lwip_stack/configure')
-rw-r--r-- | stacks/lwip_stack/configure/module_config.json | 26 | ||||
-rw-r--r-- | stacks/lwip_stack/configure/nStackConfig.json | 32 | ||||
-rw-r--r-- | stacks/lwip_stack/configure/rd_config.json | 24 |
3 files changed, 82 insertions, 0 deletions
diff --git a/stacks/lwip_stack/configure/module_config.json b/stacks/lwip_stack/configure/module_config.json new file mode 100644 index 0000000..33767cb --- /dev/null +++ b/stacks/lwip_stack/configure/module_config.json @@ -0,0 +1,26 @@ +{ + "default_stack_name": "kernel", /*when rd can't be find maybe choose the defualt one*/ + "module_list": [ + { + "stack_name": "kernel", /*stack name*/ + "function_name": "kernel_stack_register", + "libname": "./", /*library name, if loadtype is static, this maybe + null, else must give a library name*/ + "deploytype": "1", /*deploy model type:model type1, model type2, + model type3. Indicating single or multi process + deployment. Used during shared memory initialization.*/ + "stackid": "0", /*stack id, this must be ordered and not be repeated*/ + }, + { + "stack_name": "lwip", /*stack name*/ + "function_name": "lwip_stack_register", + "libname": "liblwip_dpdk.so", /*library name, if loadtype is static, this maybe + null, else must give a library name*/ + "deploytype": "3", /*deploy model type:model type1, model type2, + model type3. Indicating single or multi process + deployment. Used during shared memory initialization.*/ + "stackid": "1", /*stack id, this must be ordered and not be repeated*/ + }, + + ] +} diff --git a/stacks/lwip_stack/configure/nStackConfig.json b/stacks/lwip_stack/configure/nStackConfig.json new file mode 100644 index 0000000..3cc54c5 --- /dev/null +++ b/stacks/lwip_stack/configure/nStackConfig.json @@ -0,0 +1,32 @@ +{ +"cfg_seg_socket": [ +{ + "socket_num": 8192, + "arp_stale_time": 300, + "arp_bc_retrans_num": 5 +} +], +"cfg_seg_log": [ +{ + "run_log_size": 50, + "run_log_count": 10, + "mon_log_size": 10, + "mon_log_count": 10 +} +], +"cfg_seg_thread_pri": [ +{ + "comment":"0:SCHED_OTHER, 1:SCHED_FIFO, 2:SCHED_RR", + "sched_policy": 0, + "thread_pri": 0 +} +], +"cfg_seg_path": [ +{ + "stackpool_log_path": "/var/log/nStack", + "master_log_path": "/var/log/nStack", + "nstack_log_path": "/var/log/nStack", + "dpdk_log_path": "/var/log/nstack-dpdk" +} +] +} diff --git a/stacks/lwip_stack/configure/rd_config.json b/stacks/lwip_stack/configure/rd_config.json new file mode 100644 index 0000000..14c26b8 --- /dev/null +++ b/stacks/lwip_stack/configure/rd_config.json @@ -0,0 +1,24 @@ +{ + "modules": [ + { + "name": "kernel", + "ip_route": [ + "127.0.0.1/24" + ], + "type_route": [ + ], + "proto_route": [ + ] + }, + { + "name": "lwip", + "ip_route": [ + "192.168.1.1/24" + ], + "type_route": [ + ], + "proto_route": [ + ] + }, + ] +} |