On Wed, Mar 8, 2017 at 2:29 PM <wang.hu...@zte.com.cn> wrote: > hi Dave and hongjun: > > > We also got confused with below code. Dos it works correctly? > > Maybe the dhcp_proxy_to_client_input fuction runs in the worker thread, > and it will call vlib_process_signal_event function to trigger > dhcp-proccess node in the main thread. > > If it works, maybe the question of mail title could be solved. But We > can't find any other use like this until now. > > > Maybe if you could expand on what it is you are trying to achieve?
Is it specifically to do with DHCP (and proxy) or is that just the code you found that looks like the kind of functionality you believe you need for your use-case? > dhcp_proxy_to_client_input > > dhcp_client_for_us > > vlib_process_signal_event (vm, dhcp_client_process_node.index, > > EVENT_DHCP_CLIENT_WAKEUP, c - > dcm->clients); > > > > > > > 王辉 wanghui > > > IT开发工程师 IT Development Engineer > 虚拟化南京四部/无线研究院/无线产品经营部 NIV Nanjing Dept. IV/Wireless Product R&D > Institute/Wireless Product Operation Division > 原始邮件 > *发件人:* <dbar...@cisco.com>; > *收件人:* <hongjun...@intel.com>; <vpp-dev@lists.fd.io>; > *抄送人:*潘凤艳00024606; > *日 期 :*2017年03月07日 21:13 > *主 题 :**Re: [vpp-dev] Signal events between graph nodes within different > threads* > > What are you trying to do? > > > > Your description is abstract to the point where I won’t try to answer, > aside from writing that vlib_process_signal_event(...) is not your friend. > > > > Thanks… Dave > > > > *From:* Ni, Hongjun [mailto:hongjun...@intel.com] > *Sent:* Monday, March 6, 2017 9:05 PM > *To:* Dave Barach (dbarach) <dbar...@cisco.com>; 'vpp-dev@lists.fd.io' < > vpp-dev@lists.fd.io> > *Cc:* pan.feng...@zte.com.cn; Zhou, Danny <danny.z...@intel.com>; Hu, > Xuekun <xuekun...@intel.com> > *Subject:* Signal events between graph nodes within different threads > > > > Hey all, > > > > We have a question about signal events between graph nodes within > different threads. > > > > Here is the scenario of use case: > > We have two threads: thread 1 and thread2, which run on different VPP > programs. > > Thread 1 has one graph node a, > > Thread 2 has another graph node b. > > > > Now we want to signal an event from thread 1’s node a to thread 2’s node b. > > Can vlib_process_signal_event achieve this? > > It appears that vlib_process_signal_event can signal an event between two > graph nodes within the same thread. > > > > If not, is there any other way to address above use case? > > > > Thanks a lot, > > Hongjun > > > > > > > _______________________________________________ > vpp-dev mailing list > vpp-dev@lists.fd.io > https://lists.fd.io/mailman/listinfo/vpp-dev
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev