Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-17 Thread Ananyev, Konstantin
> > > On 1/17/2018 6:50 PM, Ananyev, Konstantin wrote: > > > >>> Hi Jianfeng, > >>> > -Original Message- > From: Tan, Jianfeng > Sent: Tuesday, January 16, 2018 8:11 AM > To: Ananyev, Konstantin ; dev@dpdk.org; > Burakov, Anatoly > Cc: Richardson, Bruce ;

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-17 Thread Tan, Jianfeng
On 1/17/2018 9:09 PM, Tan, Jianfeng wrote: On 1/17/2018 6:50 PM, Ananyev, Konstantin wrote: [...] +int +rte_eal_mp_request(const char *action_name, + void *params, + int len_p, + int fds[], + int fds_in, + int fds_out) +{ +int i, j; +

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-17 Thread Tan, Jianfeng
On 1/17/2018 6:50 PM, Ananyev, Konstantin wrote: Hi Jianfeng, -Original Message- From: Tan, Jianfeng Sent: Tuesday, January 16, 2018 8:11 AM To: Ananyev, Konstantin ; dev@dpdk.org; Burakov, Anatoly Cc: Richardson, Bruce ; tho...@monjalon.net Subject: Re: [PATCH v2 3/4] eal: add sy

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-17 Thread Ananyev, Konstantin
> > Hi Jianfeng, > > > >> -Original Message- > >> From: Tan, Jianfeng > >> Sent: Tuesday, January 16, 2018 8:11 AM > >> To: Ananyev, Konstantin ; dev@dpdk.org; > >> Burakov, Anatoly > >> Cc: Richardson, Bruce ; tho...@monjalon.net > >> Subject: Re: [PATCH v2 3/4] eal: add synchronous mu

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-16 Thread Tan, Jianfeng
On 1/16/2018 7:12 PM, Ananyev, Konstantin wrote: Hi Jianfeng, -Original Message- From: Tan, Jianfeng Sent: Tuesday, January 16, 2018 8:11 AM To: Ananyev, Konstantin ; dev@dpdk.org; Burakov, Anatoly Cc: Richardson, Bruce ; tho...@monjalon.net Subject: Re: [PATCH v2 3/4] eal: add sync

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-16 Thread Ananyev, Konstantin
Hi Jianfeng, > -Original Message- > From: Tan, Jianfeng > Sent: Tuesday, January 16, 2018 8:11 AM > To: Ananyev, Konstantin ; dev@dpdk.org; > Burakov, Anatoly > Cc: Richardson, Bruce ; tho...@monjalon.net > Subject: Re: [PATCH v2 3/4] eal: add synchronous multi-process communication > >

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-16 Thread Tan, Jianfeng
Thank you, Konstantin and Anatoly firstly. Other comments are well received and I'll send out a new version. On 1/16/2018 8:00 AM, Ananyev, Konstantin wrote: We need the synchronous way for multi-process communication, i.e., blockingly waiting for reply message when we send a request to the

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-15 Thread Ananyev, Konstantin
> > We need the synchronous way for multi-process communication, > i.e., blockingly waiting for reply message when we send a request > to the peer process. > > We add two APIs rte_eal_mp_request() and rte_eal_mp_reply() for > such use case. By invoking rte_eal_mp_request(), a request message >

Re: [dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-13 Thread Burakov, Anatoly
On 11-Jan-18 4:07 AM, Jianfeng Tan wrote: --- lib/librte_eal/common/eal_common_proc.c | 144 +--- lib/librte_eal/common/include/rte_eal.h | 73 +++- lib/librte_eal/rte_eal_version.map | 2 + 3 files changed, 206 insertions(+), 13 deletions(-)

[dpdk-dev] [PATCH v2 3/4] eal: add synchronous multi-process communication

2018-01-10 Thread Jianfeng Tan
We need the synchronous way for multi-process communication, i.e., blockingly waiting for reply message when we send a request to the peer process. We add two APIs rte_eal_mp_request() and rte_eal_mp_reply() for such use case. By invoking rte_eal_mp_request(), a request message is sent out, and th