diff options
author | 2018-11-13 12:29:53 +0000 | |
---|---|---|
committer | 2018-11-13 12:29:53 +0000 | |
commit | c44fe256a1f1812dc511697808c99dcc92d93068 (patch) | |
tree | 0b73728001d8e37e4a5a873430e826f64a8207a0 /demo/nginx_proxy/demo-1/demo_2stack.patch | |
parent | 89615f166692b82c3d19d0d73ca3028241d923d9 (diff) | |
parent | 6b11ecb07f5612819635eb48ec26d94d1fc64cf1 (diff) |
Merge "Chore: NGINX demo with multi stack and multi protocol (vpp-hoststck, lwip, kernel) (tcp, udp)"
Diffstat (limited to 'demo/nginx_proxy/demo-1/demo_2stack.patch')
-rw-r--r-- | demo/nginx_proxy/demo-1/demo_2stack.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/demo/nginx_proxy/demo-1/demo_2stack.patch b/demo/nginx_proxy/demo-1/demo_2stack.patch new file mode 100644 index 0000000..f1bc8d3 --- /dev/null +++ b/demo/nginx_proxy/demo-1/demo_2stack.patch @@ -0,0 +1,29 @@ +diff --git a/src/adapt/nstack_dmm_adpt.c b/src/adapt/nstack_dmm_adpt.c +index d497b80..004975c 100644 +--- a/src/adapt/nstack_dmm_adpt.c ++++ b/src/adapt/nstack_dmm_adpt.c +@@ -76,7 +76,7 @@ nstack_event_callback (void *pdata, int events) + /*event should not notice other process */ + if ((ep->pid != get_sys_pid ()) && g_same_process) + { +- continue; ++ //continue; + } + + sys_arch_lock_with_pid (&ep->lock); +diff --git a/src/nSocket/nstack/nstack_module.c b/src/nSocket/nstack/nstack_module.c +index 9566ab8..f692225 100644 +--- a/src/nSocket/nstack/nstack_module.c ++++ b/src/nSocket/nstack/nstack_module.c +@@ -60,6 +60,11 @@ nstack_get_deploy_type () + if (g_nstack_module_desc[icnt].deploytype > type) + { + type = g_nstack_module_desc[icnt].deploytype; ++ if (NSTACK_MODEL_TYPE3 == type) ++ { ++ break; ++ } ++ + } + } + return type; |