Re: [lng-odp] [RFC] Add ipc.h

2015-05-22 Thread Alexandru Badicioiu
On 22 May 2015 at 00:09, Ola Liljedahl ola.liljed...@linaro.org wrote: On 21 May 2015 at 17:45, Maxim Uvarov maxim.uva...@linaro.org wrote: From the rfc 3549 netlink looks like good protocol to communicate between data plane and control plane. And messages are defined by that protocol also.

Re: [lng-odp] [RFC] Add ipc.h

2015-05-22 Thread Ola Liljedahl
On 22 May 2015 at 08:14, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: On 22 May 2015 at 00:09, Ola Liljedahl ola.liljed...@linaro.org wrote: On 21 May 2015 at 17:45, Maxim Uvarov maxim.uva...@linaro.org wrote: From the rfc 3549 netlink looks like good protocol to communicate

Re: [lng-odp] buffer_alloc length parameter

2015-05-22 Thread Bill Fischofer
In linux-generic that value represents the default allocation length. On Friday, May 22, 2015, Zoltan Kiss zoltan.k...@linaro.org wrote: Hi, While fixing up things in the DPDK implementation I've found that linux-generic might have some troubles too. odp_buffer_alloc() and

Re: [lng-odp] [check-odp PATCH] enable optional perf testing

2015-05-22 Thread Anders Roxell
On 2015-05-20 17:18, Zoltan Kiss wrote: I've tested it as well: Reviewed-by: Zoltan Kiss zoltan.k...@linaro.org On 14/05/15 20:22, Mike Holmes wrote: Signed-off-by: Mike Holmesmike.hol...@linaro.org --- apply-and-build.sh | 1 + build.sh | 1 + helper/generic | 9

Re: [lng-odp] [RFC] Add ipc.h

2015-05-22 Thread Alexandru Badicioiu
On 22 May 2015 at 12:10, Ola Liljedahl ola.liljed...@linaro.org wrote: On 22 May 2015 at 08:14, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: On 22 May 2015 at 00:09, Ola Liljedahl ola.liljed...@linaro.org wrote: On 21 May 2015 at 17:45, Maxim Uvarov maxim.uva...@linaro.org

[lng-odp] [PATCH 1/2 v2] examples: ipsec: tunnel mode support

2015-05-22 Thread alexandru.badicioiu
From: Alexandru Badicioiu alexandru.badici...@linaro.org v1 - added comment for tunnel DB entry use v2 - fixed tun pointer initialization, new checkpatch compliance Tunnel mode is enabled from the command line using -t argument with the following format: SrcIP:DstIP:TunnelSrcIP:TunnelDstIP.

[lng-odp] Makefile problem on v.1.1.0.0 tag

2015-05-22 Thread Radu-Andrei Bulie
Hi, I tried to make a build based on the aforementioned tag (after doing the normal bootstrap sequence) but an error was thrown: make[2]: Entering directory /path/odp/linux-generic Makefile:1073: *** missing separator. Stop. After some investigations I found that if I do the

Re: [lng-odp] [PATCHv6 3/5] ipc: pool_create implement _ODP_SHM_NULL_LOCAL for linux-generic

2015-05-22 Thread Ciprian Barbu
On Thu, May 21, 2015 at 6:32 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: On init odp creates odp_sched_pool. Because of we can not modify API to add new parameter to odp_pool_param_t this pool should not be shared between different processes. To make that add special value to shm provided

Re: [lng-odp] [PATCH 1/2 v1] examples: ipsec: tunnel mode support

2015-05-22 Thread Steve Kordus (skordus)
Reviewed-by: Steve Kordus skor...@cisco.com -Original Message- From: Maxim Uvarov [mailto:maxim.uva...@linaro.org] Sent: Thursday, May 21, 2015 12:47 PM To: lng-odp@lists.linaro.org; Steve Kordus (skordus) Subject: Re: [lng-odp] [PATCH 1/2 v1] examples: ipsec: tunnel mode support CC

Re: [lng-odp] [PATCHv6 3/5] ipc: pool_create implement _ODP_SHM_NULL_LOCAL for linux-generic

2015-05-22 Thread Maxim Uvarov
On 05/22/15 13:25, Ciprian Barbu wrote: On Thu, May 21, 2015 at 6:32 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: On init odp creates odp_sched_pool. Because of we can not modify API to add new parameter to odp_pool_param_t this pool should not be shared between different processes. To make

Re: [lng-odp] [PATCH 1/2 v1] examples: ipsec: tunnel mode support

2015-05-22 Thread Maxim Uvarov
Alex you need to update patch to match new checkpatch. Feel free to include Steve review-by to the patch. also one comment about tun bellow. Thank you, Maxim. On 05/19/15 11:38, alexandru.badici...@linaro.org wrote: From: Alexandru Badicioiu alexandru.badici...@linaro.org v1 - added comment

Re: [lng-odp] odp timer unit test case question

2015-05-22 Thread Ola Liljedahl
On 22 May 2015 at 06:57, Bala Manoharan bala.manoha...@linaro.org wrote: On 21 May 2015 at 16:44, Ola Liljedahl ola.liljed...@linaro.org wrote: On 21 May 2015 at 09:53, Jerin Jacob jerin.ja...@caviumnetworks.com wrote: On Wed, May 20, 2015 at 05:28:24PM +0200, Ola Liljedahl wrote: On 20

Re: [lng-odp] [PATCHv6 5/5] ipc: example app

2015-05-22 Thread Maxim Uvarov
On 05/22/15 13:32, Ciprian Barbu wrote: On Thu, May 21, 2015 at 6:32 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: Simple example app creates one packet i/o to external interface and one ipc pktio to other process. Then transfer packet from external interface to other process and back thought

Re: [lng-odp] [PATCHv6 3/5] ipc: pool_create implement _ODP_SHM_NULL_LOCAL for linux-generic

2015-05-22 Thread Ciprian Barbu
On Fri, May 22, 2015 at 2:04 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: On 05/22/15 13:25, Ciprian Barbu wrote: On Thu, May 21, 2015 at 6:32 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: On init odp creates odp_sched_pool. Because of we can not modify API to add new parameter to

Re: [lng-odp] [PATCHv6 3/5] ipc: pool_create implement _ODP_SHM_NULL_LOCAL for linux-generic

2015-05-22 Thread Maxim Uvarov
On 05/22/15 14:09, Ciprian Barbu wrote: On Fri, May 22, 2015 at 2:04 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: On 05/22/15 13:25, Ciprian Barbu wrote: On Thu, May 21, 2015 at 6:32 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: On init odp creates odp_sched_pool. Because of we can not

Re: [lng-odp] Makefile problem on v.1.1.0.0 tag

2015-05-22 Thread Maxim Uvarov
On 05/22/15 14:13, Radu-Andrei Bulie wrote: Hi, I tried to make a build based on the aforementioned tag (after doing the normal bootstrap sequence) but an error was thrown: make[2]: Entering directory /path/odp/linux-generic Makefile:1073: *** missing separator. Stop. After some

Re: [lng-odp] [RFC] Add ipc.h

2015-05-22 Thread Ola Liljedahl
On 22 May 2015 at 12:13, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: On 22 May 2015 at 12:10, Ola Liljedahl ola.liljed...@linaro.org wrote: On 22 May 2015 at 08:14, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: On 22 May 2015 at 00:09, Ola Liljedahl

Re: [lng-odp] [PATCHv6 5/5] ipc: example app

2015-05-22 Thread Ciprian Barbu
On Fri, May 22, 2015 at 1:58 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: On 05/22/15 13:32, Ciprian Barbu wrote: On Thu, May 21, 2015 at 6:32 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: Simple example app creates one packet i/o to external interface and one ipc pktio to other

[lng-odp] [PATCH] validation: queue: schedule parameters are not valid for poll type queue

2015-05-22 Thread Jerin Jacob
Signed-off-by: Jerin Jacob jerin.ja...@caviumnetworks.com --- test/validation/odp_queue.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c index 5123939..01a704c 100644 --- a/test/validation/odp_queue.c +++

Re: [lng-odp] [PATCHv6 5/5] ipc: example app

2015-05-22 Thread Ciprian Barbu
On Thu, May 21, 2015 at 6:32 PM, Maxim Uvarov maxim.uva...@linaro.org wrote: Simple example app creates one packet i/o to external interface and one ipc pktio to other process. Then transfer packet from external interface to other process and back thought ipc queue. Signed-off-by: Maxim

Re: [lng-odp] [RFC] Add ipc.h

2015-05-22 Thread Ola Liljedahl
On 21 May 2015 at 11:50, Savolainen, Petri (Nokia - FI/Espoo) petri.savolai...@nokia.com wrote: -Original Message- From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of ext Ola Liljedahl Sent: Tuesday, May 19, 2015 1:04 AM To: lng-odp@lists.linaro.org

[lng-odp] [RFCv2] Add message bus (MBUS) API's

2015-05-22 Thread Ola Liljedahl
Here is my second attempt at a standalone API for MBUS - message passing based IPC for a shared nothing architecture. The semantics of message passing is that sending a message to an endpoint will always look like it succeeds. The appearance of endpoints is explicitly notified through

Re: [lng-odp] [RFC] Add ipc.h

2015-05-22 Thread Savolainen, Petri (Nokia - FI/Espoo)
Hi, Instead of message bus (mbus), I’d use terms message and message IO (similar to packets and packet IO). odp_msg_t == message event odp_msgio_t == message io port/interface/tap/socket/mailbox/… // create msg io port odp_msgio_t odp_msgio_create(…); // msg io port local address

Re: [lng-odp] [RFC] Add ipc.h

2015-05-22 Thread Ola Liljedahl
On 22 May 2015 at 15:16, Savolainen, Petri (Nokia - FI/Espoo) petri.savolai...@nokia.com wrote: Hi, Instead of message bus (mbus), I’d use terms message and message IO (similar to packets and packet IO). That could work as well. But the concepts named and described here actually matches

Re: [lng-odp] [PATCH 1/2 v1] examples: ipsec: tunnel mode support

2015-05-22 Thread Steve Kordus (skordus)
Reviewed-by: Steve Kordus skor...@cisco.com -Original Message- From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of alexandru.badici...@linaro.org Sent: Tuesday, May 19, 2015 4:39 AM To: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 1/2 v1] examples: ipsec: tunnel

[lng-odp] buffer_alloc length parameter

2015-05-22 Thread Zoltan Kiss
Hi, While fixing up things in the DPDK implementation I've found that linux-generic might have some troubles too. odp_buffer_alloc() and odp_packet_alloc() uses odp_pool_to_entry(pool_hdl)-s.params.buf.size, but if it's a packet pool (which is always true in case of odp_packet_alloc(), and