Re: [lng-odp] [PATCH 1/2] odp_pktio_open loop back interface

2014-11-26 Thread Alexandru Badicioiu
On 25 November 2014 at 18:24, Maxim Uvarov maxim.uva...@linaro.org wrote: Define special name for loop back interface. That interface can be used mostly for testing. Each implementation can interpret that loop0 to any other device. [Alex] A few words about what is expected from this interface

Re: [lng-odp] [RFC] More lenient packet parsing in linux

2014-11-26 Thread Shmulik Ladkani
On Tue, 25 Nov 2014 15:04:53 -0600 Bill Fischofer bill.fischo...@linaro.org wrote: These functions are scheduled for rework as part of the packet API revisions. Will be sure to address this point as part of that rework. Thanks. If there's a concensus the 'len ODPH_ETH_LEN_MIN' is too

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Ola Liljedahl
On 26 November 2014 at 09:39, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: This patch has no description. The title is not self explanatory either. Also the existence of eth0 should be verified before mapping the loop0 to eth0 - some platforms may use other interface names (e.g.

Re: [lng-odp] [RFC] More lenient packet parsing in linux

2014-11-26 Thread Ciprian Barbu
On Wed, Nov 26, 2014 at 11:16 AM, Ola Liljedahl ola.liljed...@linaro.org wrote: I think this check is too strict and should be removed. I remember we had a discussion about this many months ago and already then I was of the opinion that this check is unnecessary and not very beneficial. The

[lng-odp] [PATCH v2] Classification: APIs deferred from ODP v1.0

2014-11-26 Thread Balasubramanian Manoharan
This patch removes Classification APIs which have been deferred from ODP v1.0 The following is the list of the deferred APIs * odp_cos_set_queue_group * odp_cos_set_pool * odp_cos_set_headroom * odp_cos_flow_set * odp_cos_flow_is_set * odp_cos_class_flow_signature * odp_cos_port_flow_signature

Re: [lng-odp] [PATCH] examples: remove the use of ODP_UNUSED

2014-11-26 Thread Ciprian Barbu
On Mon, Nov 24, 2014 at 9:19 PM, Mike Holmes mike.hol...@linaro.org wrote: ODP_UNUSED should be used internally to an ODP implementation and not by an application. The declaration should never have specified ODP_UNUSED for find_ipsec_cache_entry_out() Signed-off-by: Mike Holmes

Re: [lng-odp] [PATCH v2] DEPENDENCIES: Update CUnit instructions

2014-11-26 Thread Ciprian Barbu
On Wed, Nov 26, 2014 at 12:11 AM, Mike Holmes mike.hol...@linaro.org wrote: Signed-off-by: Mike Holmes mike.hol...@linaro.org Just a couple of nits, otherwise you can have my Reviewed-by --- Add t to ar.bz2 DEPENDENCIES | 18 ++ 1 file changed, 14 insertions(+), 4

Re: [lng-odp] [PATCH v2] DEPENDENCIES: Update CUnit instructions

2014-11-26 Thread Ciprian Barbu
On Wed, Nov 26, 2014 at 12:29 PM, Ciprian Barbu ciprian.ba...@linaro.org wrote: On Wed, Nov 26, 2014 at 12:11 AM, Mike Holmes mike.hol...@linaro.org wrote: Signed-off-by: Mike Holmes mike.hol...@linaro.org Just a couple of nits, otherwise you can have my Reviewed-by --- Add t to ar.bz2

Re: [lng-odp] [PATCH] netdev-odp: Use VLOG_ERR instead of ODP_ERR

2014-11-26 Thread Taras Kondratiuk
On 11/25/2014 06:54 PM, Mike Holmes wrote: Taras is submitting a patch that allows you to replace the output stream for ODP_ERR etc with the applications prefered stream - see https://mail.google.com/mail/u/1/#inbox/149e780e4e57d70c Taking into account that ODP_ERR() is not a part of public

Re: [lng-odp] [PATCH] DEPENDENCIES: Update CUnit instructions

2014-11-26 Thread Taras Kondratiuk
On 11/26/2014 12:08 AM, Mike Holmes wrote: Signed-off-by: Mike Holmes mike.hol...@linaro.org --- DEPENDENCIES | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index f70a1d4..11452ff 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Maxim Uvarov
On 11/26/2014 12:25 PM, Ola Liljedahl wrote: On 26 November 2014 at 09:39, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: This patch has no description. The title is not self explanatory either. Also the existence of eth0 should be verified before mapping the loop0 to eth0 - some

Re: [lng-odp] [PATCH] examples: remove the use of ODP_UNUSED

2014-11-26 Thread Maxim Uvarov
Merged, thanks, Maxim. On 11/24/2014 10:19 PM, Mike Holmes wrote: ODP_UNUSED should be used internally to an ODP implementation and not by an application. The declaration should never have specified ODP_UNUSED for find_ipsec_cache_entry_out() Signed-off-by: Mike Holmes mike.hol...@linaro.org

Re: [lng-odp] [PATCH] .gitignore: distribute the ignore file to sub dirs

2014-11-26 Thread Maxim Uvarov
On 11/25/2014 09:06 PM, Mike Holmes wrote: +++ b/test/validation/.gitignore @@ -0,0 +1,6 @@ +*.log +*.trs +odp_init +odp_queue +odp_crypto +CUnit-Memory-Dump.xml xml has to be global. It's like core which stores to PWD, not to directory where binary is located. Maxim.

Re: [lng-odp] [PATCH] DEPENDENCIES: Update CUnit instructions

2014-11-26 Thread Maxim Uvarov
On 11/26/2014 01:59 PM, Taras Kondratiuk wrote: On 11/26/2014 12:08 AM, Mike Holmes wrote: Signed-off-by: Mike Holmes mike.hol...@linaro.org --- DEPENDENCIES | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index

Re: [lng-odp] [PATCH v2 4/5] Linux-generic: Classification Implementation v1.0

2014-11-26 Thread Maxim Uvarov
Reviewed-by: Maxim Uvarov maxim.uva...@linaro.org On 11/21/2014 03:27 PM, Balasubramanian Manoharan wrote: This patch contains classification implementation for ODP v1.0. The salient features of this classification version are as follows: * Attaches PMR, PMR_SET to a Pktio entry * Attaches

Re: [lng-odp] [PATCH] api: odp_atomic.h: doxygen fix

2014-11-26 Thread Maxim Uvarov
Merged. Maxim. On 11/25/2014 11:44 PM, Mike Holmes wrote: On 25 November 2014 at 15:38, Ola Liljedahl ola.liljed...@linaro.org mailto:ola.liljed...@linaro.org wrote: Signed-off-by: Ola Liljedahl ola.liljed...@linaro.org mailto:ola.liljed...@linaro.org Reviewed-and-tested-by:

Re: [lng-odp] [PATCH] netdev-odp: Use VLOG_ERR instead of ODP_ERR

2014-11-26 Thread Zoltan Kiss
But independent from this, OVS should overwrite the log function, right? So ODP internal log messages won't be lost. Regards, Zoli On 26/11/14 10:47, Taras Kondratiuk wrote: On 11/25/2014 06:54 PM, Mike Holmes wrote: Taras is submitting a patch that allows you to replace the output stream

Re: [lng-odp] [PATCH] netdev-odp: Use VLOG_ERR instead of ODP_ERR

2014-11-26 Thread Taras Kondratiuk
On 11/26/2014 02:54 PM, Zoltan Kiss wrote: But independent from this, OVS should overwrite the log function, right? So ODP internal log messages won't be lost. Right. I assume it should direct log messages into its own logging subsystem. ___ lng-odp

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Jerin Jacob
On Wed, Nov 26, 2014 at 02:53:50PM +0300, Maxim Uvarov wrote: On 11/26/2014 12:25 PM, Ola Liljedahl wrote: On 26 November 2014 at 09:39, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: This patch has no description. The title is not self explanatory either. Also the existence of

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Alexandru Badicioiu
On 26 November 2014 at 15:23, Jerin Jacob jerin.ja...@caviumnetworks.com wrote: On Wed, Nov 26, 2014 at 02:53:50PM +0300, Maxim Uvarov wrote: On 11/26/2014 12:25 PM, Ola Liljedahl wrote: On 26 November 2014 at 09:39, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: This patch

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Taras Kondratiuk
On 11/26/2014 03:23 PM, Jerin Jacob wrote: On Wed, Nov 26, 2014 at 02:53:50PM +0300, Maxim Uvarov wrote: On 11/26/2014 12:25 PM, Ola Liljedahl wrote: On 26 November 2014 at 09:39, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: This patch has no description. The title is not self

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Maxim Uvarov
On 11/26/2014 04:33 PM, Taras Kondratiuk wrote: On 11/26/2014 03:23 PM, Jerin Jacob wrote: On Wed, Nov 26, 2014 at 02:53:50PM +0300, Maxim Uvarov wrote: On 11/26/2014 12:25 PM, Ola Liljedahl wrote: On 26 November 2014 at 09:39, Alexandru Badicioiu alexandru.badici...@linaro.org wrote: This

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Jerin Jacob
On Wed, Nov 26, 2014 at 05:05:14PM +0300, Maxim Uvarov wrote: On 11/26/2014 04:33 PM, Taras Kondratiuk wrote: On 11/26/2014 03:23 PM, Jerin Jacob wrote: On Wed, Nov 26, 2014 at 02:53:50PM +0300, Maxim Uvarov wrote: On 11/26/2014 12:25 PM, Ola Liljedahl wrote: On 26 November 2014 at 09:39,

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Taras Kondratiuk
On 11/26/2014 04:05 PM, Maxim Uvarov wrote: On 11/26/2014 04:33 PM, Taras Kondratiuk wrote: On 11/26/2014 03:23 PM, Jerin Jacob wrote: On Wed, Nov 26, 2014 at 02:53:50PM +0300, Maxim Uvarov wrote: On 11/26/2014 12:25 PM, Ola Liljedahl wrote: On 26 November 2014 at 09:39, Alexandru Badicioiu

[lng-odp] [PATCH] validation: add odp_system test

2014-11-26 Thread Mike Holmes
Signed-off-by: Mike Holmes mike.hol...@linaro.org --- test/validation/.gitignore | 1 + test/validation/Makefile.am | 4 +- test/validation/odp_system.c | 114 +++ 3 files changed, 118 insertions(+), 1 deletion(-) create mode 100644

Re: [lng-odp] [PATCH ARCH] testing.dox: Add cunit test rules

2014-11-26 Thread Mike Holmes
On 24 November 2014 at 05:38, Maxim Uvarov maxim.uva...@linaro.org wrote: On 11/21/2014 10:23 PM, Mike Holmes wrote: Signed-off-by: Mike Holmes mike.hol...@linaro.org --- testing.dox | 7 +++ 1 file changed, 7 insertions(+) diff --git a/testing.dox b/testing.dox index

Re: [lng-odp] [RFC] More lenient packet parsing in linux

2014-11-26 Thread Bill Fischofer
Running under Linux these tests are redundant since the OS takes care of it. On SoCs the I/O HW will normally flag runt packets anyway so again this is unnecessary. It will be deleted along with the parser changes needed for the new packet APIs. An intermediate patch is fine but would be short

Re: [lng-odp] [PATCH 2/2] linux-generic: odp_pktio_open loop0 support

2014-11-26 Thread Stuart Haslam
On Wed, Nov 26, 2014 at 04:32:43PM +0200, Taras Kondratiuk wrote: On 11/26/2014 04:05 PM, Maxim Uvarov wrote: On 11/26/2014 04:33 PM, Taras Kondratiuk wrote: On 11/26/2014 03:23 PM, Jerin Jacob wrote: On Wed, Nov 26, 2014 at 02:53:50PM +0300, Maxim Uvarov wrote: On 11/26/2014 12:25 PM, Ola

[lng-odp] [PATCH 2/2] platform: implement odp_queue_destroy()

2014-11-26 Thread Taras Kondratiuk
Signed-off-by: Taras Kondratiuk taras.kondrat...@linaro.org --- platform/linux-generic/odp_queue.c | 17 + 1 file changed, 17 insertions(+) diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c index 1318bcd..f44aba0 100644 ---

[lng-odp] [PATCH 1/2] api: queue: add odp_queue_destroy()

2014-11-26 Thread Taras Kondratiuk
Signed-off-by: Taras Kondratiuk taras.kondrat...@linaro.org --- platform/linux-generic/include/api/odp_queue.h |9 + 1 file changed, 9 insertions(+) diff --git a/platform/linux-generic/include/api/odp_queue.h b/platform/linux-generic/include/api/odp_queue.h index b8ac4bb..3321950

Re: [lng-odp] [PATCH 1/2] api: queue: add odp_queue_destroy()

2014-11-26 Thread Mike Holmes
On 26 November 2014 at 12:03, Taras Kondratiuk taras.kondrat...@linaro.org wrote: Signed-off-by: Taras Kondratiuk taras.kondrat...@linaro.org --- platform/linux-generic/include/api/odp_queue.h |9 + 1 file changed, 9 insertions(+) diff --git

[lng-odp] [PATCH 3/5] pktio: mac addr functions

2014-11-26 Thread Maxim Uvarov
Define API for mac address change and implement linux-generic version. Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org --- platform/linux-generic/include/api/odp_packet_io.h | 23 platform/linux-generic/odp_packet_io.c | 67 ++ 2 files changed, 90

[lng-odp] [PATCH 4/5] cunit: pktio: mtu and promisc mode

2014-11-26 Thread Maxim Uvarov
Add basic check for mtu and promisc modes. Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org --- test/validation/Makefile.am | 4 +- test/validation/odp_pktio.c | 164 2 files changed, 167 insertions(+), 1 deletion(-) create mode 100644

[lng-odp] [PATCH 5/5] cunit: add mac test

2014-11-26 Thread Maxim Uvarov
Mac address unit test. Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org --- test/validation/odp_pktio.c | 46 + 1 file changed, 46 insertions(+) diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c index 56fece9..c3eb65b 100644

[lng-odp] [PATCH 2/5] promisc mode manipulation functions

2014-11-26 Thread Maxim Uvarov
Define API and implement promisc functions for linux-generic. Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org --- platform/linux-generic/include/api/odp_packet_io.h | 24 +++ platform/linux-generic/odp_packet_io.c | 74 ++ 2 files changed, 98 insertions(+)

[lng-odp] [RFC] cunit: Add tests for scheduler API

2014-11-26 Thread Ciprian Barbu
Signed-off-by: Ciprian Barbu ciprian.ba...@linaro.org --- I started from scratch this time trying to follow the list Taras proposed. This patch covers the first 4 bullets on his lists. One thing I need to mention is that the schedule_mq_mt_prio_atomic would not work (at least on linux-generic)

Re: [lng-odp] [PATCH 3/5] pktio: mac addr functions

2014-11-26 Thread Victor Kamensky
On 26 November 2014 at 09:31, Maxim Uvarov maxim.uva...@linaro.org wrote: Define API for mac address change and implement linux-generic version. Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org --- platform/linux-generic/include/api/odp_packet_io.h | 23

[lng-odp] [PATCH] api_guide_lines: Update bool, is, has and get rules

2014-11-26 Thread Mike Holmes
The API require guide lines to help it conform to a consistent look and feel. These additional clarifications help promote those guidelines. Signed-off-by: Mike Holmes mike.hol...@linaro.org --- api_guide_lines.dox | 30 +- 1 file changed, 25 insertions(+), 5

[lng-odp] [PATCH] api: doxygen: odp_system_info.h

2014-11-26 Thread Mike Holmes
Improve the documentation regarding possible return values. Signed-off-by: Mike Holmes mike.hol...@linaro.org --- platform/linux-generic/include/api/odp_system_info.h | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git

[lng-odp] linux-generic 'odp_packet_parse': Failure to parse VLAN frames

2014-11-26 Thread Shmulik Ladkani
Hi, It seems packet parsing in Linux implementation fails to analyze VLAN frames (on most recent Linux systems). The implementation of 'odp_packet_parse' relies on frame's ethtype field to be either 0x8100 or 0x88A8 (i.e 802.1q and 802.1ad) for identification of vlan frames. Problem is, Linux

Re: [lng-odp] [PATCH] api: doxygen: odp_system_info.h

2014-11-26 Thread Ola Liljedahl
I disprove of this patch. On 26 November 2014 at 20:20, Mike Holmes mike.hol...@linaro.org wrote: Improve the documentation regarding possible return values. Signed-off-by: Mike Holmes mike.hol...@linaro.org --- platform/linux-generic/include/api/odp_system_info.h | 19 ++-

Re: [lng-odp] [PATCH] api: doxygen: odp_system_info.h

2014-11-26 Thread Mike Holmes
On 26 November 2014 at 15:23, Ola Liljedahl ola.liljed...@linaro.org wrote: I disprove of this patch. On 26 November 2014 at 20:20, Mike Holmes mike.hol...@linaro.org wrote: Improve the documentation regarding possible return values. Signed-off-by: Mike Holmes mike.hol...@linaro.org

Re: [lng-odp] [PATCH 3/5] pktio: mac addr functions

2014-11-26 Thread Maxim Uvarov
On 11/26/2014 09:00 PM, Victor Kamensky wrote: On 26 November 2014 at 09:31, Maxim Uvarov maxim.uva...@linaro.org wrote: Define API for mac address change and implement linux-generic version. Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org ---

Re: [lng-odp] [PATCH 3/5] pktio: mac addr functions

2014-11-26 Thread Victor Kamensky
On 26 November 2014 at 13:19, Maxim Uvarov maxim.uva...@linaro.org wrote: On 11/26/2014 09:00 PM, Victor Kamensky wrote: On 26 November 2014 at 09:31, Maxim Uvarov maxim.uva...@linaro.org wrote: Define API for mac address change and implement linux-generic version. Signed-off-by: Maxim

Re: [lng-odp] [PATCH 3/5] pktio: mac addr functions

2014-11-26 Thread Maxim Uvarov
On 11/27/2014 12:43 AM, Victor Kamensky wrote: On 26 November 2014 at 13:19, Maxim Uvarov maxim.uva...@linaro.org wrote: On 11/26/2014 09:00 PM, Victor Kamensky wrote: On 26 November 2014 at 09:31, Maxim Uvarov maxim.uva...@linaro.org wrote: Define API for mac address change and implement

Re: [lng-odp] linux-generic 'odp_packet_parse': Failure to parse VLAN frames

2014-11-26 Thread Maxim Uvarov
On 11/26/2014 11:23 PM, Shmulik Ladkani wrote: Hi, It seems packet parsing in Linux implementation fails to analyze VLAN frames (on most recent Linux systems). The implementation of 'odp_packet_parse' relies on frame's ethtype field to be either 0x8100 or 0x88A8 (i.e 802.1q and 802.1ad) for

[lng-odp] junk output from ODP applications

2014-11-26 Thread Ola Liljedahl
Why is all of this junk always printed by ODP applications? odp_buffer_pool.c:137:odp_buffer_pool_init_global(): Buffer pool init global odp_buffer_pool.c:138:odp_buffer_pool_init_global(): pool_entry_s size 192 odp_buffer_pool.c:139:odp_buffer_pool_init_global(): pool_entry_t size 192

Re: [lng-odp] junk output from ODP applications

2014-11-26 Thread Maxim Uvarov
Already fixed. Do git pull. Maxim. On 11/27/2014 01:45 AM, Ola Liljedahl wrote: Why is all of this junk always printed by ODP applications? odp_buffer_pool.c:137:odp_buffer_pool_init_global(): Buffer pool init global odp_buffer_pool.c:138:odp_buffer_pool_init_global(): pool_entry_s size

Re: [lng-odp] [PATCH v1 3/5] Linux-generic: Pktio changes for Classification

2014-11-26 Thread Bala Manoharan
Ping On 26 November 2014 at 11:07, Bala Manoharan bala.manoha...@linaro.org wrote: Hi, Pls let me know if there are any additional comments for this patch. If otherwise please provide reviewed-by Regards, Bala On 25 November 2014 03:24, Anders Roxell anders.rox...@linaro.org wrote: On

[lng-odp] [PATCH v2] helper: odph_tcp header description

2014-11-26 Thread Balasubramanian Manoharan
This patch adds TCP header description struct odph_tcphdr_t This structure is used for accessing TCP header information from the packet Signed-off-by: Balasubramanian Manoharan bala.manoha...@linaro.org --- V2: Removes Bit Fields from Header struct helper/include/odph_tcp.h | 90