Re: [lng-odp] [PATCHv3 0/5] handle transmit errors correctly

2015-10-23 Thread Stuart Haslam
On Thu, Oct 22, 2015 at 11:48:41AM -0400, Mike Holmes wrote: > Ping, and progress on this ? > Waiting for review. It needs a rebase now though, v4 coming up... > On 14 October 2015 at 08:31, Stuart Haslam wrote: > > > Fixes bug:

[lng-odp] [PATCH v5 2/6] test: l2fwd: add option to select scheduler queue type

2015-10-23 Thread Matias Elo
Previously only atomic scheduler queues where supported. This was a bottleneck when the number of worker threads was increased. Added an option to choose scheduler queue sync mode (none, atomic, ordered). Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 94

[lng-odp] [PATCH v5 3/6] test: l2fwd: fix crash when accuracy is set to 0

2015-10-23 Thread Matias Elo
Application crashes if accuracy option is set to zero (division by zero). Disable statistics printing if accuracy <= 0. Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 59 +++- 1 file changed, 37 insertions(+), 22

[lng-odp] [PATCH v5 5/6] test: l2fwd: add option to disable filling eth addresses

2015-10-23 Thread Matias Elo
By default every packet's source MAC address is filled to match the output port. Add option to disable this to enable testing packet forwarding without touching the packets. Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 17 +++-- 1 file changed,

[lng-odp] [PATCH v5 4/6] test: l2fwd: add support for using odd number of ports

2015-10-23 Thread Matias Elo
Previously only even numbers of ports were supported. Added support for odd numbers of ports (including 1). Src-dst port mappings are saved during initialization to minimize per packet operations. Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 35

Re: [lng-odp] [PATCHv5 2/2] api: pktio statistics: define start and stop

2015-10-23 Thread Ivan Khoronzhuk
On 23.10.15 13:35, Savolainen, Petri (Nokia - FI/Espoo) wrote: I think these are not generally needed or supported. It's better to add a parameter into odp_pktio_param_t. It's needed. The main reason for that the same statistic module can be used by different pktios, so if it's used for

Re: [lng-odp] [PATCHv5 2/2] api: pktio statistics: define start and stop

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
User tells to the implementation on open() which interfaces needed statistics. As long as implementation has enough stat resources open() succeeds. When all stats are gone and user still ask for stats, open() fails. Implementation user manual documents this limitation (how many interfaces can

[lng-odp] [PATCHv4 2/5] linux-generic: pktio: handle transmit errors correctly

2015-10-23 Thread Stuart Haslam
Errors which occur while sending packets via odp_pktio_send() aren't handled correctly or even consistently across the two socket based implementations. The problems being addressed are; - calls may block indefinitely in certain error conditions (mmsg) - packets may be freed and reported as

[lng-odp] [PATCHv4 3/5] validation: pktio: pass interface index rather than name

2015-10-23 Thread Stuart Haslam
Avoid the need to pass the interface name to the create_pktio() function as it can be derived from the index which must also be passed. This means the caller can't make the mistake of passing a mismatched name and index - there was one instance of this which is now fixed. Signed-off-by: Stuart

Re: [lng-odp] [PATCH v5 3/6] test: l2fwd: fix crash when accuracy is set to 0

2015-10-23 Thread Elo, Matias (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of EXT Maxim > Uvarov > Sent: Friday, October 23, 2015 1:03 PM > To: lng-odp@lists.linaro.org > Subject: Re: [lng-odp] [PATCH v5 3/6] test: l2fwd: fix crash when accuracy is > set to > 0 > > On

[lng-odp] [PATCH] m4: valgrind fix confgure output

2015-10-23 Thread Mike Holmes
Signed-off-by: Mike Holmes --- m4/ax_valgrind_check.m4 | 2 -- 1 file changed, 2 deletions(-) diff --git a/m4/ax_valgrind_check.m4 b/m4/ax_valgrind_check.m4 index ff05f56..ccee86b 100644 --- a/m4/ax_valgrind_check.m4 +++ b/m4/ax_valgrind_check.m4 @@ -59,7 +59,6 @@

Re: [lng-odp] [PATCH] [API-NEXT PATCH v5] api: hash: Added crc32 and crc32c hash functions

2015-10-23 Thread Maxim Uvarov
Somehow that email inside previous version thread it's hard to follow it. I have few notes: 1. version should be remove from long log and put under "---" in email. 2. doxygen: /opt/Linaro/odp2.git/include/odp/api/hash.h:73: warning: argument 'crc_param' of command @param is not found in the

[lng-odp] [PATCHv4 4/5] validation: pktio: add support for direct receive

2015-10-23 Thread Stuart Haslam
Add a couple of tests for receiving packets directly via odp_pktio_recv(). Signed-off-by: Stuart Haslam --- test/validation/pktio/pktio.c | 101 ++ test/validation/pktio/pktio.h | 2 + 2 files changed, 65 insertions(+), 38

[lng-odp] [Bug 1851] odp_pool_destroy() failure

2015-10-23 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=1851 --- Comment #6 from carl.wal...@nokia.com --- I applied your patch and it seems to be working just fine. I did not test performance though. Thanks a lot! -- You are receiving this mail because: You are on the CC list for the

[lng-odp] [PATCH v6 6/6] test: l2fwd: word copy ethernet addresses

2015-10-23 Thread Matias Elo
Optimize ethernet address filling by using word copy. Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 57 ++-- 1 file changed, 45 insertions(+), 12 deletions(-) diff --git a/test/performance/odp_l2fwd.c

[lng-odp] [API-NEXT PATCH] linux-generic: config: add missing syntax to enable doxygen

2015-10-23 Thread Bill Fischofer
Enable doxygen to document platform-specific config values Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp/config.h | 9 + 1 file changed, 9 insertions(+) diff --git a/platform/linux-generic/include/odp/config.h

[lng-odp] [Bug 1864] New: Missing header file in install directory

2015-10-23 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=1864 Bug ID: 1864 Summary: Missing header file in install directory Product: OpenDataPlane - linux- generic reference Version: unspecified Hardware: Other OS: Linux Status:

[lng-odp] [PATCH v6 4/6] test: l2fwd: add support for using odd number of ports

2015-10-23 Thread Matias Elo
Previously only even numbers of ports were supported. Added support for odd numbers of ports (including 1). Src-dst port mappings are saved during initialization to minimize per packet operations. Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 35

[lng-odp] [PATCH v6 5/6] test: l2fwd: add option to disable filling eth addresses

2015-10-23 Thread Matias Elo
By default every packet's source MAC address is filled to match the output port. Add option to disable this to enable testing packet forwarding without touching the packets. Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 17 +++-- 1 file changed,

Re: [lng-odp] [API-NEXT PATCH v3 4/7] api: atomic: clean atomic API documentation

2015-10-23 Thread Mike Holmes
On 23 October 2015 at 03:00, Petri Savolainen wrote: > Refined and centralized comment about relaxed memory ordering. > Removed in/out doxygen tags since 'atom' pointer to an object > that application must not directly access (only through the API). > > Signed-off-by:

Re: [lng-odp] [API-NEXT PATCH v3 3/7] api: doc: re-organize doxygen doc for synchronizer

2015-10-23 Thread Mike Holmes
On 23 October 2015 at 08:40, Christophe Milard wrote: > Well, I agree that the test environment should not prevent API > improvement: The test environment should simply follow the API as it moves. > I see no problem with this change as long as the test environment

Re: [lng-odp] [PATCH] [API-NEXT PATCH v5] api: hash: Added crc32 and crc32c hash functions

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
Ping. Why this has not been merged yet. > -Original Message- > From: Savolainen, Petri (Nokia - FI/Espoo) > Sent: Thursday, October 15, 2015 11:08 AM > To: 'EXT Peng'; lng-odp@lists.linaro.org > Cc: Peng > Subject: RE: [PATCH] [API-NEXT PATCH v5] api: hash: Added crc32 and crc32c > hash

Re: [lng-odp] [API-NEXT PATCH v3 2/7] doc: add doxygen layout file to control group page output

2015-10-23 Thread Mike Holmes
On 23 October 2015 at 03:00, Petri Savolainen wrote: > Group level documentation can be used for API level general > description. Layout file is needed to place detailed group > description on the top of a page. By default doxygen shows > only the brief description on

[lng-odp] [PATCH v6 1/6] test: l2fwd: add option to change destination eth addresses

2015-10-23 Thread Matias Elo
If the application is being run on a host connected to a switch, not changing the ethernet destination may cause loops. Added an option to change the destination ethernet address. The destination addresses follow the format 02:00:00:00:00:XX where the final octet is the output port number.

[lng-odp] [PATCH v6 0/6] l2fwd test improvements

2015-10-23 Thread Matias Elo
Added various improvements to the l2fwd test application: - Supports using odd number of ports - Scheduler queue type can be selected - Added options for enabling/disabling eth address filling New options: -d, --dst_change <0/1>: Enable/disable changing packets' dst eth addresses -s,

[lng-odp] [PATCH v6 2/6] test: l2fwd: add option to select scheduler queue type

2015-10-23 Thread Matias Elo
Previously only atomic scheduler queues where supported. This was a bottleneck when the number of worker threads was increased. Added an option to choose scheduler queue sync mode (none, atomic, ordered). Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 94

Re: [lng-odp] [API-NEXT PATCH v3 1/7] api: doc: remove broken doxygen reference

2015-10-23 Thread Mike Holmes
On 23 October 2015 at 03:00, Petri Savolainen wrote: > Reference caused warning when creating doxygen documentation. > > Signed-off-by: Petri Savolainen > Reviewed-by: Mike Holmes > --- >

Re: [lng-odp] [API-NEXT PATCH v3 3/7] api: doc: re-organize doxygen doc for synchronizer

2015-10-23 Thread Christophe Milard
As long as the test-environment follows up (within a reasonable time), I am fine. On 23 October 2015 at 14:52, Savolainen, Petri (Nokia - FI/Espoo) < petri.savolai...@nokia.com> wrote: > > > > > *From:* EXT Mike Holmes [mailto:mike.hol...@linaro.org] > *Sent:* Friday, October 23, 2015 3:43 PM >

[lng-odp] [PATCH v6 3/6] test: l2fwd: fix crash when accuracy is set to 0

2015-10-23 Thread Matias Elo
Application crashes if accuracy option is set to zero (division by zero). Disable statistics printing if accuracy <= 0. Signed-off-by: Matias Elo --- test/performance/odp_l2fwd.c | 37 + 1 file changed, 25 insertions(+), 12 deletions(-)

[lng-odp] [PATCHv4 1/5] linux-generic: pktio: increase MTU of loop interface

2015-10-23 Thread Stuart Haslam
There's no need to enforce an artificial MTU for the loop interface. Previously this value was reported but not enforced. Signed-off-by: Stuart Haslam --- platform/linux-generic/pktio/loop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [lng-odp] [PATCHv5 2/2] api: pktio statistics: define start and stop

2015-10-23 Thread Ivan Khoronzhuk
On 23.10.15 14:18, Savolainen, Petri (Nokia - FI/Espoo) wrote: -Original Message- From: EXT Ivan Khoronzhuk [mailto:ivan.khoronz...@linaro.org] Sent: Friday, October 23, 2015 2:12 PM To: Savolainen, Petri (Nokia - FI/Espoo); EXT Maxim Uvarov; lng- o...@lists.linaro.org Subject: Re:

Re: [lng-odp] [API-NEXT PATCH v3 3/7] api: doc: re-organize doxygen doc for synchronizer

2015-10-23 Thread Christophe Milard
Well, I agree that the test environment should not prevent API improvement: The test environment should simply follow the API as it moves. I see no problem with this change as long as the test environment follows it. I do see a problem, though, if it does not... What structure should the test

[lng-odp] [PATCHv4 0/5] handle transmit errors correctly

2015-10-23 Thread Stuart Haslam
Fixes bug: https://bugs.linaro.org/show_bug.cgi?id=1365 Changes since v3: - Rebased - Fix comment typo in 5/5 Changes since v2: - Conditionally check for ability to run test and report as inactive if not. - dropped patch 1/7, not required after other test changes - dropped patch 4/7

Re: [lng-odp] [PATCHv5 2/2] api: pktio statistics: define start and stop

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
I think these are not generally needed or supported. It's better to add a parameter into odp_pktio_param_t. For example, typedef enum odp_pktio_stats_mode_t { /** Need basic statistics on this interface */ ODP_PKTIO_STATS_BASIC = 0, /** Don't need any statistics on this interface */

Re: [lng-odp] [PATCHv5 2/2] api: pktio statistics: define start and stop

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: EXT Ivan Khoronzhuk [mailto:ivan.khoronz...@linaro.org] > Sent: Friday, October 23, 2015 2:12 PM > To: Savolainen, Petri (Nokia - FI/Espoo); EXT Maxim Uvarov; lng- > o...@lists.linaro.org > Subject: Re: [lng-odp] [PATCHv5 2/2] api: pktio statistics: define

Re: [lng-odp] [API-NEXT PATCH v3 3/7] api: doc: re-organize doxygen doc for synchronizer

2015-10-23 Thread Mike Holmes
On 23 October 2015 at 03:00, Petri Savolainen wrote: > Removed module synchronizer from doxygen documentation and > introduced new modules for locks, atomics and barriers. This ripples though the to the validation directory structure which is 1:1 in sync with the

Re: [lng-odp] [API-NEXT PATCH v3 3/7] api: doc: re-organize doxygen doc for synchronizer

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
From: EXT Mike Holmes [mailto:mike.hol...@linaro.org] Sent: Friday, October 23, 2015 3:22 PM To: Savolainen, Petri (Nokia - FI/Espoo) Cc: lng-odp Subject: Re: [lng-odp] [API-NEXT PATCH v3 3/7] api: doc: re-organize doxygen doc for synchronizer On 23 October 2015 at 03:00, Petri Savolainen

[lng-odp] [PATCHv4 5/5] validation: pktio: test for transmit error handling

2015-10-23 Thread Stuart Haslam
Test that transmit errors are handled correctly by attempting to send a packet larger than the MTU of the interface. Signed-off-by: Stuart Haslam --- test/validation/pktio/pktio.c | 151 +- 1 file changed, 148 insertions(+), 3

[lng-odp] [API-NEXT PATCHv6] api: define pktio statistics api

2015-10-23 Thread Maxim Uvarov
Signed-off-by: Maxim Uvarov --- v6: fix Petris comments include/odp/api/packet_io.h | 2 + include/odp/api/packet_io_stats.h | 141 ++ 2 files changed, 143 insertions(+) create mode 100644 include/odp/api/packet_io_stats.h

Re: [lng-odp] [PATCHv5 1/2] api: define pktio statistics api

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of EXT > Maxim Uvarov > Sent: Thursday, October 22, 2015 1:45 PM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCHv5 1/2] api: define pktio statistics api > > Signed-off-by: Maxim Uvarov

Re: [lng-odp] [PATCH] [API-NEXT PATCH v5] api: hash: Added crc32 and crc32c hash functions

2015-10-23 Thread HePeng
Hi, Maxim > 在 2015年10月23日,下午11:40,Maxim Uvarov 写道: > > Somehow that email inside previous version thread it's hard to follow it. I am having troubles in using git send-email to reply to specific emails, even I’ve tried using —reply-to message-id, the email is sent as

[lng-odp] [Bug 1449] odp_timer_test core dump

2015-10-23 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=1449 --- Comment #11 from Ivan Khoronzhuk --- Will send patch series soon to add fixes and corrections eliminating resolution impact demonstrated by previous comment and decreasing impact of schedule delays. -- You are

[lng-odp] [API-NEXT PATCH v3 6/7] api: atomic: added atomic min and max

2015-10-23 Thread Petri Savolainen
Added atomic min and max operations. These can be used e.g. to maintain high and low water marks of an another atomic counter. These use relaxed memory order. Signed-off-by: Petri Savolainen --- include/odp/api/atomic.h| 44

[lng-odp] [API-NEXT PATCH v3 7/7] api: atomic: added 32 bit acquire and release

2015-10-23 Thread Petri Savolainen
Added 32 bit acquire load/cas and release store/add/sub calls. These are the minimum set of non-relaxed calls that are needed for building lock-free algorithms. 64 bit versions can be added later. Signed-off-by: Petri Savolainen --- include/odp/api/atomic.h

[lng-odp] [API-NEXT PATCH v3 4/7] api: atomic: clean atomic API documentation

2015-10-23 Thread Petri Savolainen
Refined and centralized comment about relaxed memory ordering. Removed in/out doxygen tags since 'atom' pointer to an object that application must not directly access (only through the API). Signed-off-by: Petri Savolainen --- include/odp/api/atomic.h | 112

Re: [lng-odp] [API-NEXT PATCH v2 2/7] doc: add doxygen layout file to control group page output

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
Sent out v3 which corrects these two issues. -Petri From: EXT Mike Holmes [mailto:mike.hol...@linaro.org] Sent: Thursday, October 22, 2015 5:15 PM To: Savolainen, Petri (Nokia - FI/Espoo) Cc: lng-odp Subject: Re: [lng-odp] [API-NEXT PATCH v2 2/7] doc: add doxygen layout file to control group

[lng-odp] [API-NEXT PATCH v3 1/7] api: doc: remove broken doxygen reference

2015-10-23 Thread Petri Savolainen
Reference caused warning when creating doxygen documentation. Signed-off-by: Petri Savolainen --- include/odp/api/packet_io.h| 2 +- platform/linux-generic/include/odp/debug.h | 8 2 files changed, 1 insertion(+), 9 deletions(-) diff --git

[lng-odp] [API-NEXT PATCH v3 3/7] api: doc: re-organize doxygen doc for synchronizer

2015-10-23 Thread Petri Savolainen
Removed module synchronizer from doxygen documentation and introduced new modules for locks, atomics and barriers. Removed unnecessary group tagging from internal headers, which are not visible to doxygen anyway. Signed-off-by: Petri Savolainen ---

[lng-odp] [API-NEXT PATCH v3 2/7] doc: add doxygen layout file to control group page output

2015-10-23 Thread Petri Savolainen
Group level documentation can be used for API level general description. Layout file is needed to place detailed group description on the top of a page. By default doxygen shows only the brief description on top (the first sentence). Signed-off-by: Petri Savolainen

[lng-odp] [API-NEXT PATCH v3 5/7] api: atomic: added cas operations

2015-10-23 Thread Petri Savolainen
Added cas operations for 32 and 64 bit atomic variables. These use relaxed memory order (as all other operations). Signed-off-by: Petri Savolainen --- include/odp/api/atomic.h | 37 ++

Re: [lng-odp] [RFC API-NEXT PATCH 0/6] Multiple queue packet IO API

2015-10-23 Thread Alexandru Badicioiu
On 22 October 2015 at 18:06, Nikita Kalyazin wrote: > Hi, > > > [Alex] ODP queues are neither software nor hardware by definition, each > > implementation is free to implement them as they see fit. Also PacketI/O > > abstraction is not an abstraction for a NIC device. The

Re: [lng-odp] [API-NEXT PATCH v5 3/5] api: time: unbind CPU cycles from time API

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: EXT Ivan Khoronzhuk [mailto:ivan.khoronz...@linaro.org] > Sent: Thursday, October 22, 2015 3:02 PM > To: lng-odp@lists.linaro.org; Savolainen, Petri (Nokia - FI/Espoo) > Cc: Ivan Khoronzhuk > Subject: [lng-odp] [API-NEXT PATCH v5 3/5] api: time: unbind CPU

[lng-odp] [PATCH v3 1/2] linux-generic: netmap: wait for the interface to become active

2015-10-23 Thread Matias Elo
Netmap interface takes a few seconds to become active after calling nm_open(). This caused several test applications to fail. Check link status at the end of netmap_open() to fix this. Signed-off-by: Matias Elo --- v3: - Rebased to master - Added sleep comment to

Re: [lng-odp] [API-NEXT PATCHv6 1/4] api: tm: add tm API definitions

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
Reviewed-by: Petri Savolainen Bill, did you run 'make doxygen-html'? Not sure if @def ODP_PACKET_GREEN works when it's actually an enum. Anyway, it's in the correct file now. -Petri > -Original Message- > From: lng-odp

Re: [lng-odp] [PATCH] linux-generic: pool: move local caches to pool

2015-10-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
Reviewed-by: Petri Savolainen > -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of EXT > Bill Fischofer > Sent: Friday, October 23, 2015 12:19 AM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCH] linux-generic:

Re: [lng-odp] [API-NEXT PATCH v5 3/5] api: time: unbind CPU cycles from time API

2015-10-23 Thread Ivan Khoronzhuk
Hi, Petri Thanks for the reply. On 23.10.15 10:57, Savolainen, Petri (Nokia - FI/Espoo) wrote: -Original Message- From: EXT Ivan Khoronzhuk [mailto:ivan.khoronz...@linaro.org] Sent: Thursday, October 22, 2015 3:02 PM To: lng-odp@lists.linaro.org; Savolainen, Petri (Nokia - FI/Espoo)

[lng-odp] [PATCH v3 2/2] linux-generic: netmap: use separate rx and tx descriptors

2015-10-23 Thread Matias Elo
Using separate file descriptors enables using rx and tx functions simultaneously from different threads. Previously netmap tx queues were flushed only after no free slots were left which caused long delays on slow packet rates. Now queues are flushed after each packet burst. Signed-off-by:

[lng-odp] [PATCH v5 0/6] l2fwd test improvements

2015-10-23 Thread Matias Elo
Added various improvements to the l2fwd test application: - Supports using odd number of ports - Scheduler queue type can be selected - Added options for enabling/disabling eth address filling New options: -d, --dst_change <0/1>: Enable/disable changing packets' dst eth addresses -s,

[lng-odp] [PATCH v5 1/6] test: l2fwd: add option to change destination eth addresses

2015-10-23 Thread Matias Elo
If the application is being run on a host connected to a switch, not changing the ethernet destination may cause loops. Added an option to change the destination ethernet address. The destination addresses follow the format 02:00:00:00:00:XX where the final octet is the output port number.