aboutsummaryrefslogtreecommitdiffstats
path: root/stacks/vpp/configure
diff options
context:
space:
mode:
authorrainbow_0206 <jiangwenjiang@huawei.com>2018-08-13 19:40:39 +0800
committerrainbow_0206 <jiangwenjiang@huawei.com>2018-08-13 19:49:49 +0800
commit93969905e561d0924e162978f32c8831d5837818 (patch)
treeebad7dfdcd6347ed7f14a36cf602b8e26dc8205b /stacks/vpp/configure
parentbd6e75c243db1b384ba0882ecaf9063ec4cd70bd (diff)
Feat: integrate vpp hoststack into dmm
Change-Id: Ibf47129a1a3eec0195a7bd8e5beb411285da739f Signed-off-by: Qing Chang <qing.chang1@huawei.com> Signed-off-by: Yalei Wang <william.wangyalei@huawei.com> Signed-off-by: rainbow_0206 <jiangwenjiang@huawei.com>
Diffstat (limited to 'stacks/vpp/configure')
-rw-r--r--stacks/vpp/configure/module_config.json30
-rw-r--r--stacks/vpp/configure/rd_config.json26
2 files changed, 56 insertions, 0 deletions
diff --git a/stacks/vpp/configure/module_config.json b/stacks/vpp/configure/module_config.json
new file mode 100644
index 0000000..fa4d5ff
--- /dev/null
+++ b/stacks/vpp/configure/module_config.json
@@ -0,0 +1,30 @@
+{
+ "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", /*function name*/
+ "libname": "./", /*library name, if loadtype is static, this maybe
+ null, else must give a library name*/
+ "loadtype": "static", /*library load type: static or dynamic*/
+ "deploytype": "1", /*deploy model type:model type1, model type2,
+ model type3. Indicating single or multi process
+ deployment. Used during shared memory initialization.*/
+ "maxfd": "1024", /*the max fd supported*/
+ "minfd": "0", /*the min fd supported*/
+ "priorty": "1", /*priorty when executing, reserv*/
+ "stackid": "0", /*stack id, this must be ordered and not be repeated*/
+ },
+ {
+ "stack_name": "stackx",
+ "function_name": "vpphs_stack_register",
+ "libname": "../lib64/libdmm_vcl.so",
+ "loadtype": "dynmic",
+ "deploytype": "1",
+ "maxfd": "1024",
+ "minfd": "0",
+ "priorty": "1",
+ "stackid": "1",
+ },
+ ]
+}
diff --git a/stacks/vpp/configure/rd_config.json b/stacks/vpp/configure/rd_config.json
new file mode 100644
index 0000000..ab57d25
--- /dev/null
+++ b/stacks/vpp/configure/rd_config.json
@@ -0,0 +1,26 @@
+{
+ "ip_route": [
+ {
+ "subnet": "192.168.122.1/24",
+ "type": "nstack-dpdk",
+ },
+ {
+ "subnet": "10.145.240.1/24",
+ "type": "nstack-kernel",
+ },
+ {
+ "subnet": "192.166.1.1/24",
+ "type": "nstack-kernel",
+ }
+ ],
+ "prot_route": [
+ {
+ "proto_type": "1",
+ "type": "nstack-dpdk",
+ },
+ {
+ "proto_type": "2",
+ "type": "nstack-kernel",
+ }
+ ],
+}