[lng-odp] [Linaro/odp]

2019-01-28 Thread GitHub
  Branch: refs/tags/v1.21.0.0
  Home:   https://github.com/Linaro/odp

  **NOTE:** GitHub Services has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  We will provide an alternative path for the email notifications by 
January 31st, 2019.


[lng-odp] [Linaro/odp] 8b0ac2: changelog: updates for odp v1.21.0.0

2019-01-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 8b0ac26e358b7632f891557be07c8c1f43a29a4a
  
https://github.com/Linaro/odp/commit/8b0ac26e358b7632f891557be07c8c1f43a29a4a
  Author: Maxim Uvarov 
  Date:   2019-01-28 (Mon, 28 Jan 2019)

  Changed paths:
M configure.ac

  Log Message:
  ---
  changelog: updates for odp v1.21.0.0

Signed-off-by: Maxim Uvarov 



  **NOTE:** GitHub Services has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  We will provide an alternative path for the email notifications by 
January 31st, 2019.


[lng-odp] [Linaro/odp] a0038f: changelog: add change log updates for odp v1.21.0....

2019-01-26 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: a0038f5d6a06aaf3596adddfb950011abe2aa8bd
  
https://github.com/Linaro/odp/commit/a0038f5d6a06aaf3596adddfb950011abe2aa8bd
  Author: Bill Fischofer 
  Date:   2019-01-26 (Sat, 26 Jan 2019)

  Changed paths:
M CHANGELOG

  Log Message:
  ---
  changelog: add change log updates for odp v1.21.0.0

Add the updates to the ODP change log for the v1.21.0.0 release.

Signed-off-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 



  **NOTE:** GitHub Services has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  We will provide an alternative path for the email notifications by 
January 31st, 2019.


[lng-odp] [Linaro/odp] 866802: api: comp: compression specification

2019-01-26 Thread GitHub
://github.com/Linaro/odp/commit/3a9cf94b77aab17ea6d94bd8c8b667f183ee1521
  Author: Dmitry Eremin-Solenikov 
  Date:   2019-01-26 (Sat, 26 Jan 2019)

  Changed paths:
M platform/linux-generic/m4/odp_dpdk.m4

  Log Message:
  ---
  linux-gen: fix compiling dpdk pktio with Clang

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-and-tested-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/5c69d869bc28...3a9cf94b77aa
  **NOTE:** GitHub Services has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  We will provide an alternative path for the email notifications by 
January 31st, 2019.


[lng-odp] [Linaro/odp] 5c69d8: travis: add dpdk 18.11 test

2019-01-21 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 5c69d869bc287afd48d57c841e1d68728e646cbb
  
https://github.com/Linaro/odp/commit/5c69d869bc287afd48d57c841e1d68728e646cbb
  Author: Matias Elo 
  Date:   2019-01-21 (Mon, 21 Jan 2019)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: add dpdk 18.11 test

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 8ea6b9: linux-gen: add miniz library at 3a884afaa7a9eefb4e...

2019-01-21 Thread GitHub
  Branch: refs/heads/api-next
  Home:   https://github.com/Linaro/odp
  Commit: 8ea6b9ba7eaea831ba1f345979641a10bc1c44db
  
https://github.com/Linaro/odp/commit/8ea6b9ba7eaea831ba1f345979641a10bc1c44db
  Author: Dmitry Eremin-Solenikov 
  Date:   2019-01-21 (Mon, 21 Jan 2019)

  Changed paths:
A platform/linux-generic/miniz/miniz.c
A platform/linux-generic/miniz/miniz.h
A platform/linux-generic/miniz/miniz_common.h
A platform/linux-generic/miniz/miniz_tdef.c
A platform/linux-generic/miniz/miniz_tdef.h
A platform/linux-generic/miniz/miniz_tinfl.c
A platform/linux-generic/miniz/miniz_tinfl.h
A platform/linux-generic/miniz/miniz_zip.c
A platform/linux-generic/miniz/miniz_zip.h

  Log Message:
  ---
  linux-gen: add miniz library at 3a884afaa7a9eefb4eb80041aee6e7995a2f5215

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: ec5167c47061b9b1ef08bd6db4ad7a3781571e35
  
https://github.com/Linaro/odp/commit/ec5167c47061b9b1ef08bd6db4ad7a3781571e35
  Author: Dmitry Eremin-Solenikov 
  Date:   2019-01-21 (Mon, 21 Jan 2019)

  Changed paths:
M platform/linux-generic/miniz/miniz.c
M platform/linux-generic/miniz/miniz.h
M platform/linux-generic/miniz/miniz_common.h
M platform/linux-generic/miniz/miniz_tdef.c
M platform/linux-generic/miniz/miniz_tdef.h
M platform/linux-generic/miniz/miniz_tinfl.c
M platform/linux-generic/miniz/miniz_tinfl.h
R platform/linux-generic/miniz/miniz_zip.c
R platform/linux-generic/miniz/miniz_zip.h

  Log Message:
  ---
  linux-gen: miniz local modifications

Drop unused code, move inflate_state to the header.

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 8849033730b8c6c85b53740bf4f2f7db46b966c3
  
https://github.com/Linaro/odp/commit/8849033730b8c6c85b53740bf4f2f7db46b966c3
  Author: Dmitry Eremin-Solenikov 
  Date:   2019-01-21 (Mon, 21 Jan 2019)

  Changed paths:
M platform/linux-generic/Makefile.am
M platform/linux-generic/include/odp_init_internal.h
M platform/linux-generic/include/odp_packet_internal.h
M platform/linux-generic/odp_comp.c
M platform/linux-generic/odp_init.c

  Log Message:
  ---
  linux-gen: comp: add deflate/zlib implementation based on miniz

Add deflate/zlib compression support.

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 3b9bc82d5b0aa27d2b44170d033063d45b8bdce3
  
https://github.com/Linaro/odp/commit/3b9bc82d5b0aa27d2b44170d033063d45b8bdce3
  Author: Dmitry Eremin-Solenikov 
  Date:   2019-01-21 (Mon, 21 Jan 2019)

  Changed paths:
A test/validation/api/comp/.gitignore

  Log Message:
  ---
  validation: add comp_main to .gitignore

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 7fc5fe8027c2a736e7e66a4b318b00645dc458af
  
https://github.com/Linaro/odp/commit/7fc5fe8027c2a736e7e66a4b318b00645dc458af
  Author: Dmitry Eremin-Solenikov 
  Date:   2019-01-21 (Mon, 21 Jan 2019)

  Changed paths:
M platform/linux-generic/miniz/miniz.h

  Log Message:
  ---
  linux-gen: miniz: disable unaligned loads/stores to fix compilation with clang

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/2c93306bd2ef...7fc5fe8027c2
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 45caf3: linux-gen: dpdk: add a fallback value for the numb...

2019-01-18 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 45caf39520a1f7aac3e40265bc46bc4dba695cbc
  
https://github.com/Linaro/odp/commit/45caf39520a1f7aac3e40265bc46bc4dba695cbc
  Author: Matias Elo 
  Date:   2019-01-18 (Fri, 18 Jan 2019)

  Changed paths:
M platform/linux-generic/pktio/dpdk.c

  Log Message:
  ---
  linux-gen: dpdk: add a fallback value for the number of numa nodes

numa_num_configured_nodes() may return 0 on some platforms. In that case
use 1 as a replacement value.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] de2559: test: odp_pktio_ordered: add missing schedule_conf...

2019-01-17 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: de255937275a99cebe62f159f3fc7c4b70bc04bb
  
https://github.com/Linaro/odp/commit/de255937275a99cebe62f159f3fc7c4b70bc04bb
  Author: Matias Elo 
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
M test/performance/odp_pktio_ordered.c

  Log Message:
  ---
  test: odp_pktio_ordered: add missing schedule_config initialization

Signed-off-by: Matias Elo 
Reported-by: Jari Mustajärvi 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] dc3183: api: comp: compression specification

2018-12-27 Thread GitHub
  Branch: refs/heads/api-next
  Home:   https://github.com/Linaro/odp
  Commit: dc318362ce9bdff233c492d07ef4a2858484a85b
  
https://github.com/Linaro/odp/commit/dc318362ce9bdff233c492d07ef4a2858484a85b
  Author: Balasubramanian Manoharan 
  Date:   2018-12-27 (Thu, 27 Dec 2018)

  Changed paths:
A include/odp/api/abi-default/comp.h
A include/odp/api/spec/comp.h

  Log Message:
  ---
  api: comp: compression specification

ODP Compression specification

Signed-off-by: Balasubramanian Manoharan 
Signed-off-by: Shally Verma 
Signed-off-by: Mahipal Challa 
Reviewed-by: Petri Savolainen 
Reviewed-by: Bogdan Pricope 
Signed-off-by: Maxim Uvarov 


  Commit: 0b38035d3857cc23b88a00e695b8ff2993775dbe
  
https://github.com/Linaro/odp/commit/0b38035d3857cc23b88a00e695b8ff2993775dbe
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-27 (Thu, 27 Dec 2018)

  Changed paths:
M include/Makefile.am
A include/odp/api/comp.h
M include/odp/api/spec/comp.h
A include/odp/arch/arm32-linux/odp/api/abi/comp.h
A include/odp/arch/arm64-linux/odp/api/abi/comp.h
A include/odp/arch/default-linux/odp/api/abi/comp.h
A include/odp/arch/mips64-linux/odp/api/abi/comp.h
A include/odp/arch/power64-linux/odp/api/abi/comp.h
A include/odp/arch/x86_32-linux/odp/api/abi/comp.h
A include/odp/arch/x86_64-linux/odp/api/abi/comp.h
M include/odp_api.h

  Log Message:
  ---
  api: fix compression API headers

- small syntax typo fix
- fix header guarding define
- add abi files
- include comp.h from odp_api.h header

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: ad31bf29da57c50b717c8cb441f6126c0481c144
  
https://github.com/Linaro/odp/commit/ad31bf29da57c50b717c8cb441f6126c0481c144
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-27 (Thu, 27 Dec 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
A platform/linux-generic/include-abi/odp/api/abi/comp.h

  Log Message:
  ---
  linux-gen: add compression ABI file

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 52e903ecbf1653c72f5ae061084262d02b807339
  
https://github.com/Linaro/odp/commit/52e903ecbf1653c72f5ae061084262d02b807339
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-27 (Thu, 27 Dec 2018)

  Changed paths:
M include/odp/api/spec/event.h
M platform/linux-generic/include-abi/odp/api/abi/event.h

  Log Message:
  ---
  linux-gen: event: define ODP_EVENT_PACKET_COMP

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 7a7b000715b26233609453227612f4bfe25a0e46
  
https://github.com/Linaro/odp/commit/7a7b000715b26233609453227612f4bfe25a0e46
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-27 (Thu, 27 Dec 2018)

  Changed paths:
M test/m4/configure.m4
M test/validation/api/Makefile.am
A test/validation/api/comp/Makefile.am
A test/validation/api/comp/comp.c
A test/validation/api/comp/test_vectors.h

  Log Message:
  ---
  validation: add compression tests

Signed-off-by: Shally Verma 
Signed-off-by: Mahipal Challa 
Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 00385dbab270b585291cf197f62cd4d7f92c2af9
  
https://github.com/Linaro/odp/commit/00385dbab270b585291cf197f62cd4d7f92c2af9
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-27 (Thu, 27 Dec 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
A platform/linux-generic/odp_comp.c

  Log Message:
  ---
  linux-gen: comp: add stub implementation

Add stub implementation supporting no compression and digest algorithms.

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/525f6e6b3adf...00385dbab270
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 7fdf6e: api: queue, schedule: move scheduler capabilities ...

2018-12-27 Thread GitHub
/Linaro/odp/commit/87a81d8b4feb08fdf60a960ac2b003233fc0ae3b
  Author: Petri Savolainen 
  Date:   2018-12-26 (Wed, 26 Dec 2018)

  Changed paths:
M platform/linux-generic/include/odp_buffer_internal.h
M platform/linux-generic/odp_event.c
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: dummy flow aware implementation

Implement flow aware scheduling API with least possible changes.
Scheduler does not care about flow IDs, but synchronizes still
on queue level. This is functionally correct, but does provide
parallelism between different flows of a queue. So, application
does not benefit from using flows, but functions correctly.
Maximum number of flows per queue is limited to 256 just to
minimize number of bytes used in buffer header.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/9c3f29b03daf...87a81d8b4feb
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] d7913a: api: sched: max_flow_id capability

2018-12-25 Thread GitHub
  Branch: refs/heads/api-next
  Home:   https://github.com/Linaro/odp
  Commit: d7913a845c7275375812cc5da381198ba0f6
  
https://github.com/Linaro/odp/commit/d7913a845c7275375812cc5da381198ba0f6
  Author: Petri Savolainen 
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
M include/odp/api/spec/schedule.h
M include/odp/api/spec/schedule_types.h

  Log Message:
  ---
  api: sched: max_flow_id capability

Change max number of flows to max flow ID. This way implementation
can utilize full 32 bits of flow ID space.

Also, note explicitly that odp_schedule_config() must be called
only once.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 9c0ad641faeabbede48fd09b7c91f753186163bd
  
https://github.com/Linaro/odp/commit/9c0ad641faeabbede48fd09b7c91f753186163bd
  Author: Petri Savolainen 
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_if.c
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: sched: check that config has been done

Check always on slow path functions that schedule config has
been called. Fast path functions do the check only when
debugging is enabled.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: d044b11d7010cc328cca986849a1414c1e46fb53
  
https://github.com/Linaro/odp/commit/d044b11d7010cc328cca986849a1414c1e46fb53
  Author: Petri Savolainen 
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: sched: add flow aware test case

Move scheduler config call into the test suite as some test
cases need non-default config. Scheduler configuration can be
set only once, so all test cases share the config. Flow aware
mode is enabled, when capability allows that.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 525f6e6b3adf629df89d195fbb1959b40ecc8a0d
  
https://github.com/Linaro/odp/commit/525f6e6b3adf629df89d195fbb1959b40ecc8a0d
  Author: Petri Savolainen 
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
M platform/linux-generic/include/odp_buffer_internal.h
M platform/linux-generic/odp_event.c
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: dummy flow aware implementation

Implement flow aware scheduling API with least possible changes.
Scheduler does not care about flow IDs, but synchronizes still
on queue level. This is functionally correct, but does provide
parallelism between different flows of a queue. So, application
does not benefit from using flows, but functions correctly.
Maximum number of flows per queue is limited to 256 just to
minimize number of bytes used in buffer header.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/43dd326bf477...525f6e6b3adf
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] c2b9c7: travis: add CentOS 7 build test

2018-12-20 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: c2b9c793b0d296dee12f0ce7fb61267ca8c61aa1
  
https://github.com/Linaro/odp/commit/c2b9c793b0d296dee12f0ce7fb61267ca8c61aa1
  Author: Matias Elo 
  Date:   2018-12-20 (Thu, 20 Dec 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: add CentOS 7 build test

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 9c3f29b03dafed4ce85230297fd4e6fdc5c3323e
  
https://github.com/Linaro/odp/commit/9c3f29b03dafed4ce85230297fd4e6fdc5c3323e
  Author: Matias Elo 
  Date:   2018-12-20 (Thu, 20 Dec 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: rename BUILD_ONLY to CHECK

Rename BUILD_ONLY environment variable to CHECK to make Travis output
easier to read.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/83eef57df546...9c3f29b03daf
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 83eef5: linux-gen: dpdk: fix build with no pmd drivers

2018-12-17 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 83eef57df54653245402237837c9e95d1bf3aff4
  
https://github.com/Linaro/odp/commit/83eef57df54653245402237837c9e95d1bf3aff4
  Author: Matias Elo 
  Date:   2018-12-18 (Tue, 18 Dec 2018)

  Changed paths:
M m4/odp_dpdk.m4

  Log Message:
  ---
  linux-gen: dpdk: fix build with no pmd drivers

Match pattern was added to DPDK_PMDS if no pmd drivers were found.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 68d9ed: linux-gen: dpdk: support DPDK version up to v18.11

2018-12-17 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 68d9edd5c7b1a2b28d07757d2580ba955463e73d
  
https://github.com/Linaro/odp/commit/68d9edd5c7b1a2b28d07757d2580ba955463e73d
  Author: Petri Savolainen 
  Date:   2018-12-17 (Mon, 17 Dec 2018)

  Changed paths:
M platform/linux-generic/pktio/dpdk.c

  Log Message:
  ---
  linux-gen: dpdk: support DPDK version up to v18.11

All DPDK versions from v17.11 to v18.11 are supported. Earlier
versions are not supported.

RTE_ETH_FOREACH_DEV macro implementation in v18.02 uses
an experimental (new) DPDK API function, which produces
a compile error. It is replaced with the old implementation
(from v17.11).

Tested with: v17.11.4, v18.02.2, v18.05.1 and v18.11

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 6c06c34a051342b2d25444ac65348acc30828b11
  
https://github.com/Linaro/odp/commit/6c06c34a051342b2d25444ac65348acc30828b11
  Author: Petri Savolainen 
  Date:   2018-12-17 (Mon, 17 Dec 2018)

  Changed paths:
M DEPENDENCIES

  Log Message:
  ---
  dependencies: dpdk: list supported versions

DPDK versions earlier than v17.11 are not supported.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/17a547b56ac5...6c06c34a0513
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 17a547: linux-gen: socket_mmap: fix build with older clang...

2018-12-17 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 17a547b56ac5897f0424752b40b2ba07f4d999cb
  
https://github.com/Linaro/odp/commit/17a547b56ac5897f0424752b40b2ba07f4d999cb
  Author: Matias Elo 
  Date:   2018-12-17 (Mon, 17 Dec 2018)

  Changed paths:
M platform/linux-generic/pktio/socket_mmap.c

  Log Message:
  ---
  linux-gen: socket_mmap: fix build with older clang versions

Olders clang versions (at least 3.4.2 used by CentOS) don't handle
frame_map.v2.s_ll definition properly and throw invalid error.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] d01e61: linux-gen: netmap: update ring->head in netmap_rec...

2018-12-14 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: d01e6126c7e91d3c660033cf970f6094ea080abb
  
https://github.com/Linaro/odp/commit/d01e6126c7e91d3c660033cf970f6094ea080abb
  Author: Matias Elo 
  Date:   2018-12-14 (Fri, 14 Dec 2018)

  Changed paths:
M platform/linux-generic/pktio/netmap.c

  Log Message:
  ---
  linux-gen: netmap: update ring->head in netmap_recv_desc()

Netmap function nm_ring_empty() implementation has been modified to use
ring->head instead of ring->cur.

Reported-by: Jari Mustajärvi 
Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 126798: api: fix compression API headers

2018-12-12 Thread GitHub
  Branch: refs/heads/api-next
  Home:   https://github.com/Linaro/odp
  Commit: 126798b957b0fcc6f55ab93ee0cd50c2a9eb62a2
  
https://github.com/Linaro/odp/commit/126798b957b0fcc6f55ab93ee0cd50c2a9eb62a2
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-12 (Wed, 12 Dec 2018)

  Changed paths:
M include/Makefile.am
A include/odp/api/comp.h
M include/odp/api/spec/comp.h
A include/odp/arch/arm32-linux/odp/api/abi/comp.h
A include/odp/arch/arm64-linux/odp/api/abi/comp.h
A include/odp/arch/default-linux/odp/api/abi/comp.h
A include/odp/arch/mips64-linux/odp/api/abi/comp.h
A include/odp/arch/power64-linux/odp/api/abi/comp.h
A include/odp/arch/x86_32-linux/odp/api/abi/comp.h
A include/odp/arch/x86_64-linux/odp/api/abi/comp.h
M include/odp_api.h

  Log Message:
  ---
  api: fix compression API headers

- small syntax typo fix
- fix header guarding define
- add abi files
- include comp.h from odp_api.h header

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 5d9c339a04cd766449b3bef701f3baa8fb0d2b8e
  
https://github.com/Linaro/odp/commit/5d9c339a04cd766449b3bef701f3baa8fb0d2b8e
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-12 (Wed, 12 Dec 2018)

  Changed paths:
M include/odp/api/abi-default/event.h
M include/odp/api/spec/event.h

  Log Message:
  ---
  api: event: define ODP_EVENT_PACKET_COMP

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 44820ab64901d087c428a0de52f576d3e27d2599
  
https://github.com/Linaro/odp/commit/44820ab64901d087c428a0de52f576d3e27d2599
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-12 (Wed, 12 Dec 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
A platform/linux-generic/include-abi/odp/api/abi/comp.h

  Log Message:
  ---
  linux-gen: add compression ABI file

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 4ce3d7c700607b433718de07f875184cf3fcef35
  
https://github.com/Linaro/odp/commit/4ce3d7c700607b433718de07f875184cf3fcef35
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-12 (Wed, 12 Dec 2018)

  Changed paths:
M include/odp/api/spec/event.h
M platform/linux-generic/include-abi/odp/api/abi/event.h

  Log Message:
  ---
  linux-gen: event: define ODP_EVENT_PACKET_COMP

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 6ba195384379a09c2fc774128651be51b21bf3de
  
https://github.com/Linaro/odp/commit/6ba195384379a09c2fc774128651be51b21bf3de
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-12 (Wed, 12 Dec 2018)

  Changed paths:
M test/m4/configure.m4
M test/validation/api/Makefile.am
A test/validation/api/comp/Makefile.am
A test/validation/api/comp/comp.c
A test/validation/api/comp/test_vectors.h

  Log Message:
  ---
  validation: add compression tests

Signed-off-by: Shally Verma 
Signed-off-by: Mahipal Challa 
Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 43dd326bf4777a01a0fa75c9c9055376d246e44b
  
https://github.com/Linaro/odp/commit/43dd326bf4777a01a0fa75c9c9055376d246e44b
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-12 (Wed, 12 Dec 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
A platform/linux-generic/odp_comp.c

  Log Message:
  ---
  linux-gen: comp: add stub implementation

Add stub implementation supporting no compression and digest algorithms.

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/92c8ebd0b9ec...43dd326bf477
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 9b9455: api: comp: compression specification

2018-12-04 Thread GitHub
: 886995cfbf5faa9ad269fdfccae42a889035c001
  
https://github.com/Linaro/odp/commit/886995cfbf5faa9ad269fdfccae42a889035c001
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-04 (Tue, 04 Dec 2018)

  Changed paths:
M test/performance/odp_cpu_bench.c
M test/performance/odp_crypto.c
M test/performance/odp_ipsec.c
M test/performance/odp_l2fwd.c
M test/performance/odp_pktio_ordered.c
M test/performance/odp_pktio_perf.c
M test/performance/odp_sched_latency.c
M test/performance/odp_sched_perf.c
M test/performance/odp_sched_pktio.c
M test/performance/odp_scheduling.c

  Log Message:
  ---
  performance: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 5235ac6934f2a39e91d30971003739c6e3620224
  
https://github.com/Linaro/odp/commit/5235ac6934f2a39e91d30971003739c6e3620224
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-04 (Tue, 04 Dec 2018)

  Changed paths:
M example/classifier/odp_classifier.c
M example/generator/odp_generator.c
M example/ipsec/odp_ipsec.c
M example/ipsec_api/odp_ipsec.c
M example/ipsec_offload/odp_ipsec_offload.c
M example/packet/odp_packet_dump.c
M example/packet/odp_pktio.c
M example/timer/odp_timer_accuracy.c
M example/timer/odp_timer_simple.c
M example/timer/odp_timer_test.c

  Log Message:
  ---
  examples: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 3e2e07762422a75298cab27fbab64fb4a6f9383c
  
https://github.com/Linaro/odp/commit/3e2e07762422a75298cab27fbab64fb4a6f9383c
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-04 (Tue, 04 Dec 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: scheduler use schedule_config instead of capabilities

Since ODP test suite will use default configuration for scheduler, all
comparisons should be done against it rather than maximum possible
values returned by capabilities.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 92c8ebd0b9ec85a71e3993c4864d48bcbb30a012
  
https://github.com/Linaro/odp/commit/92c8ebd0b9ec85a71e3993c4864d48bcbb30a012
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-04 (Tue, 04 Dec 2018)

  Changed paths:
M platform/linux-generic/odp_event.c

  Log Message:
  ---
  linux-gen: event: support flow-awareness API

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/a110685b8357...92c8ebd0b9ec
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] a11068: linux-gen: event: support flow-awareness API

2018-12-04 Thread GitHub
  Branch: refs/heads/api-next
  Home:   https://github.com/Linaro/odp
  Commit: a110685b8357276cb4a63ebc6ff421f42f461d94
  
https://github.com/Linaro/odp/commit/a110685b8357276cb4a63ebc6ff421f42f461d94
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-12-04 (Tue, 04 Dec 2018)

  Changed paths:
M platform/linux-generic/odp_event.c

  Log Message:
  ---
  linux-gen: event: support flow-awareness API

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] d64232: abi: traffic_mngr: reduce max defines

2018-12-04 Thread GitHub
 platform/linux-generic/odp_traffic_mngr.c

  Log Message:
  ---
  linux-gen: traffic_mngr: store root node inside tm_system_t

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: b1812f17ae652f11ce21f26fd24c8fd27818339b
  
https://github.com/Linaro/odp/commit/b1812f17ae652f11ce21f26fd24c8fd27818339b
  Author: Matias Elo 
  Date:   2018-12-03 (Mon, 03 Dec 2018)

  Changed paths:
M platform/linux-generic/include/odp_traffic_mngr_internal.h
M platform/linux-generic/odp_traffic_mngr.c

  Log Message:
  ---
  linux-gen: traffic_mngr: store input_work_queue inside tm_system_t

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 92e59d9e816a99db318ba24dcb12cb55f2e7392d
  
https://github.com/Linaro/odp/commit/92e59d9e816a99db318ba24dcb12cb55f2e7392d
  Author: Matias Elo 
  Date:   2018-12-03 (Mon, 03 Dec 2018)

  Changed paths:
M platform/linux-generic/include/odp_traffic_mngr_internal.h
M platform/linux-generic/odp_traffic_mngr.c

  Log Message:
  ---
  linux-gen: traffic_mngr: allocate profile objects from shm

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 94e47dc62e340818b91c471788c29af3ba167d96
  
https://github.com/Linaro/odp/commit/94e47dc62e340818b91c471788c29af3ba167d96
  Author: Matias Elo 
  Date:   2018-12-03 (Mon, 03 Dec 2018)

  Changed paths:
M platform/linux-generic/odp_traffic_mngr.c

  Log Message:
  ---
  linux-gen: traffic_mngr: don't reserve memory if tm is disabled

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: fd5939c3ae2a2a38c0a1f87428a787ee7ae00789
  
https://github.com/Linaro/odp/commit/fd5939c3ae2a2a38c0a1f87428a787ee7ae00789
  Author: Matias Elo 
  Date:   2018-12-03 (Mon, 03 Dec 2018)

  Changed paths:
M platform/linux-generic/odp_traffic_mngr.c

  Log Message:
  ---
  linux-gen: traffic_mngr: allocate all global data from shm

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/536cce998e84...fd5939c3ae2a
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] ec5066: configure.ac: update version to v1.20.0.0

2018-12-04 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: ec5066a3430e31a87727ac4aea5793253e5ee843
  
https://github.com/Linaro/odp/commit/ec5066a3430e31a87727ac4aea5793253e5ee843
  Author: Maxim Uvarov 
  Date:   2018-12-03 (Mon, 03 Dec 2018)

  Changed paths:
M configure.ac

  Log Message:
  ---
  configure.ac: update version to v1.20.0.0

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 487e6b: changelog: updates for odp v1.20.0.0

2018-12-04 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 487e6bd608a78527809ac7b88f0d3d3ec94cd707
  
https://github.com/Linaro/odp/commit/487e6bd608a78527809ac7b88f0d3d3ec94cd707
  Author: Bill Fischofer 
  Date:   2018-12-03 (Mon, 03 Dec 2018)

  Changed paths:
M CHANGELOG

  Log Message:
  ---
  changelog: updates for odp v1.20.0.0

Add updates for ODP v1.20.0.0

Signed-off-by: Bill Fischofer 
Reviewed-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp]

2018-12-04 Thread GitHub
  Branch: refs/tags/v1.20.0.0
  Home:   https://github.com/Linaro/odp

  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] d3ff5e: api: queue, schedule: move scheduler capabilities ...

2018-11-30 Thread GitHub
/odp_scheduling.c

  Log Message:
  ---
  performance: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 61e6fb7b3db84648732fa5b9f828507afc63bf0c
  
https://github.com/Linaro/odp/commit/61e6fb7b3db84648732fa5b9f828507afc63bf0c
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
M example/classifier/odp_classifier.c
M example/generator/odp_generator.c
M example/ipsec/odp_ipsec.c
M example/ipsec_api/odp_ipsec.c
M example/ipsec_offload/odp_ipsec_offload.c
M example/packet/odp_packet_dump.c
M example/packet/odp_pktio.c
M example/timer/odp_timer_accuracy.c
M example/timer/odp_timer_simple.c
M example/timer/odp_timer_test.c

  Log Message:
  ---
  examples: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: cb620003928195980a9c2fcacc7a7d4a04a154e6
  
https://github.com/Linaro/odp/commit/cb620003928195980a9c2fcacc7a7d4a04a154e6
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: install graphviz in doxygen test

Install graphviz to stop doxygen from emitting 'missing dot' errors.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: bc86441b2d02dd518e710f1d9e6936525530c1bb
  
https://github.com/Linaro/odp/commit/bc86441b2d02dd518e710f1d9e6936525530c1bb
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: scheduler use schedule_config instead of capabilities

Since ODP test suite will use default configuration for scheduler, all
comparisons should be done against it rather than maximum possible
values returned by capabilities.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/3ede6754a3dc...bc86441b2d02
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 33f6c9: linux-gen: pool: reduce buffer memory usage

2018-11-30 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 33f6c963c4c43b6ed32ac2f9282b560f6016b682
  
https://github.com/Linaro/odp/commit/33f6c963c4c43b6ed32ac2f9282b560f6016b682
  Author: Matias Elo 
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_pool.c

  Log Message:
  ---
  linux-gen: pool: reduce buffer memory usage

Calculate memory block size using pool type specific header.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 013cdab099659623af0d75ff5fd0b606a9c2ce6a
  
https://github.com/Linaro/odp/commit/013cdab099659623af0d75ff5fd0b606a9c2ce6a
  Author: Matias Elo 
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
M platform/linux-generic/include/odp_config_internal.h
M platform/linux-generic/odp_pool.c

  Log Message:
  ---
  linux-gen: pool: move ODP_CONFIG_BUFFER_ALIGN_MIN out of config header

Rename ODP_CONFIG_BUFFER_ALIGN_MIN to BUFFER_ALIGN_MIN and move it to
odp_pool.c as this value links closely to the buffer pool implementation.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 536cce998e84a559e125b4741d00f2a760a0d575
  
https://github.com/Linaro/odp/commit/536cce998e84a559e125b4741d00f2a760a0d575
  Author: Matias Elo 
  Date:   2018-11-30 (Fri, 30 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_pool.c

  Log Message:
  ---
  linux-gen: pool: remove unnecessary align padding from buffers

Buffer and timeout header sizes are rounded up to cache line size, so the
following data can be cache line aligned without extra padding.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/b498032d6f13...536cce998e84
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] b49803: doc: implementation: add configuration section to ...

2018-11-29 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: b498032d6f1388cf87f415367780a2dc54342d85
  
https://github.com/Linaro/odp/commit/b498032d6f1388cf87f415367780a2dc54342d85
  Author: Bill Fischofer 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M doc/implementers-guide/implementers-guide.adoc

  Log Message:
  ---
  doc: implementation: add configuration section to implementation guide

The recent addition of a formal configuration file and override
mechanism to ODP highlights the need to discuss implementation
configuration considerations. Add this section to the ODP Implementation
Guide and discuss the various types of static and dynamic configuration
options available, with illustrations from how they are used in
odp-linux.

Signed-off-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] da7301: api: comp: compression specification

2018-11-29 Thread GitHub
/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: implement odp_schedule_config() API call

Add odp_schedule_config() stub, which does nothing at this point. Use it
to actually check (in debug mode) that application call it in proper
place.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: dc6ce4e3e80b4d16c7f35ef5d3d483879610d56e
  
https://github.com/Linaro/odp/commit/dc6ce4e3e80b4d16c7f35ef5d3d483879610d56e
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M test/common/odp_cunit_common.c
M test/validation/api/timer/timer.c

  Log Message:
  ---
  validation: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: ff70ec3c233012d2d248ae0a3aafe1b777172ff2
  
https://github.com/Linaro/odp/commit/ff70ec3c233012d2d248ae0a3aafe1b777172ff2
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M test/performance/odp_cpu_bench.c
M test/performance/odp_crypto.c
M test/performance/odp_ipsec.c
M test/performance/odp_l2fwd.c
M test/performance/odp_pktio_ordered.c
M test/performance/odp_pktio_perf.c
M test/performance/odp_sched_latency.c
M test/performance/odp_sched_perf.c
M test/performance/odp_sched_pktio.c
M test/performance/odp_scheduling.c

  Log Message:
  ---
  performance: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 66fed4c6a0188beec9ae3b557cd0fdb17d33648b
  
https://github.com/Linaro/odp/commit/66fed4c6a0188beec9ae3b557cd0fdb17d33648b
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M example/classifier/odp_classifier.c
M example/generator/odp_generator.c
M example/ipsec/odp_ipsec.c
M example/ipsec_api/odp_ipsec.c
M example/ipsec_offload/odp_ipsec_offload.c
M example/packet/odp_packet_dump.c
M example/packet/odp_pktio.c
M example/timer/odp_timer_accuracy.c
M example/timer/odp_timer_simple.c
M example/timer/odp_timer_test.c

  Log Message:
  ---
  examples: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 0b1d2c57308cd3442054a8fd822a0c42fd1c585a
  
https://github.com/Linaro/odp/commit/0b1d2c57308cd3442054a8fd822a0c42fd1c585a
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: install graphviz in doxygen test

Install graphviz to stop doxygen from emitting 'missing dot' errors.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 3ede6754a3dc65e6d386e92d8611543538501972
  
https://github.com/Linaro/odp/commit/3ede6754a3dc65e6d386e92d8611543538501972
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: scheduler use schedule_config instead of capabilities

Since ODP test suite will use default configuration for scheduler, all
comparisons should be done against it rather than maximum possible
values returned by capabilities.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/8511e88c69f5...3ede6754a3dc
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] ee833c: travis: install graphviz in doxygen test

2018-11-29 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: ee833c56e09b95d8c11217e8a3f614470833f2d5
  
https://github.com/Linaro/odp/commit/ee833c56e09b95d8c11217e8a3f614470833f2d5
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: install graphviz in doxygen test

Install graphviz to stop doxygen from emitting 'missing dot' errors.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] cb5ed2: api: crypto: provide definitions for 3GPP crypto a...

2018-11-29 Thread GitHub
sh

  Log Message:
  ---
  example: generator: add signal handler for SIGINT

Free used resources after receiving SIGINT.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 


  Commit: 6576ed1f000f326a44c636a3e5d832a7a2cfd4f7
  
https://github.com/Linaro/odp/commit/6576ed1f000f326a44c636a3e5d832a7a2cfd4f7
  Author: Maxim Uvarov 
  Date:   2018-11-29 (Thu, 29 Nov 2018)

  Changed paths:
M configure.ac
M platform/linux-generic/m4/configure.m4
R platform/linux-generic/m4/performance.m4

  Log Message:
  ---
  linux-gen: drop performance.m4

performance.m4 which provides --enable-test-perf-proc is
not needed now because process mode is tested with standard
tests.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 
Reviewed-and-tested-by Matias Elo 


Compare: https://github.com/Linaro/odp/compare/686811c2f396...6576ed1f000f
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] eb3a81: validation: crypto: capability call should not fai...

2018-11-27 Thread GitHub
yml

  Log Message:
  ---
  travis: define compiler for clang test

without specifying compiler CC falls back to default gcc
after it was initialized to clang. Current change forces
test to use clang.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Petri Savolainen 


  Commit: 5de83b54f16d8078b306f4e89e299154eb5972a2
  
https://github.com/Linaro/odp/commit/5de83b54f16d8078b306f4e89e299154eb5972a2
  Author: Maxim Uvarov 
  Date:   2018-11-23 (Fri, 23 Nov 2018)

  Changed paths:
M configure.ac

  Log Message:
  ---
  configure: disable -march=native for clang

for clang we see strange optimizations for TM code which breaks
code flow execution. There might be number of such places. For
now it's better to disable march=native until we completely
test and validate clang support for this.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Petri Savolainen 


  Commit: d24149493d8733fc898fabbd718492717ad0e498
  
https://github.com/Linaro/odp/commit/d24149493d8733fc898fabbd718492717ad0e498
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-23 (Fri, 23 Nov 2018)

  Changed paths:
M .shippable.yml
R scripts/Dockerfile

  Log Message:
  ---
  shippable: switch to using official Shippable image

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 6f9209f69f69ba8cfe51ff440f978b7d82d13245
  
https://github.com/Linaro/odp/commit/6f9209f69f69ba8cfe51ff440f978b7d82d13245
  Author: Maxim Uvarov 
  Date:   2018-11-28 (Wed, 28 Nov 2018)

  Changed paths:
M scripts/ci/check.sh

  Log Message:
  ---
  travis: check.sh request huge pages at early start

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


  Commit: a9402619bd06f1e1ac9ada694484a104fcfff7d5
  
https://github.com/Linaro/odp/commit/a9402619bd06f1e1ac9ada694484a104fcfff7d5
  Author: Maxim Uvarov 
  Date:   2018-11-28 (Wed, 28 Nov 2018)

  Changed paths:
M platform/linux-generic/m4/configure.m4
M platform/linux-generic/test/Makefile.am
R platform/linux-generic/test/performance/.gitignore
R platform/linux-generic/test/performance/Makefile.am
R platform/linux-generic/test/performance/odp_scheduling_run_proc.sh

  Log Message:
  ---
  linux-gen: remove performance test for process mode

process mode tests run when process mode config is
specified. Here it has to be dropped.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


  Commit: c3a6bf82fa3b2cb742eb33ff66096f6f79be2c32
  
https://github.com/Linaro/odp/commit/c3a6bf82fa3b2cb742eb33ff66096f6f79be2c32
  Author: Maxim Uvarov 
  Date:   2018-11-28 (Wed, 28 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_ishm.c

  Log Message:
  ---
  linux-gen: ishm: add missing cast to calculate max_memory

Fix integer overflow doing math for max_memory.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


  Commit: 42fd89a1ee51a2535192650a8cffc05c32b0da12
  
https://github.com/Linaro/odp/commit/42fd89a1ee51a2535192650a8cffc05c32b0da12
  Author: Maxim Uvarov 
  Date:   2018-11-28 (Wed, 28 Nov 2018)

  Changed paths:
M test/performance/odp_sched_pktio.c

  Log Message:
  ---
  text: perf odp_sched_pktio: try to terminate on failure

try to do clean up even if error was detected (try to remove
openned files for mmap.)

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


  Commit: 898d834f8c7164e4ee1a99fbe9115b3c7ca5bd67
  
https://github.com/Linaro/odp/commit/898d834f8c7164e4ee1a99fbe9115b3c7ca5bd67
  Author: Matias Elo 
  Date:   2018-11-28 (Wed, 28 Nov 2018)

  Changed paths:
M example/generator/odp_generator.c
M test/performance/odp_l2fwd_run.sh
M test/performance/odp_sched_pktio_run.sh

  Log Message:
  ---
  example: generator: add signal handler for SIGINT

Free used resources after receiving SIGINT.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 


  Commit: 8511e88c69f5bf7cd251875610370aa334878788
  
https://github.com/Linaro/odp/commit/8511e88c69f5bf7cd251875610370aa334878788
  Author: Maxim Uvarov 
  Date:   2018-11-28 (Wed, 28 Nov 2018)

  Changed paths:
M platform/linux-generic/m4/configure.m4
R platform/linux-generic/m4/performance.m4

  Log Message:
  ---
  linux-gen: drop performance.m4

performance.m4 which provides --enable-test-perf-proc is
not needed now because process mode is tested with standard
tests.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


Compare: https://github.com/Linaro/odp/compare/1ee7da087214...8511e88c69f5
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] f36139: api: init: add new mem_model member to odp_init_t

2018-11-21 Thread GitHub
 Nov 2018)

  Changed paths:
M test/common/odp_cunit_common.c
M test/validation/api/atomic/atomic.c
M test/validation/api/barrier/barrier.c
M test/validation/api/crypto/odp_crypto_test_inp.c
M test/validation/api/ipsec/ipsec.c
M test/validation/api/lock/lock.c
M test/validation/api/thread/thread.c
M test/validation/api/timer/timer.c

  Log Message:
  ---
  validation: use use mem_model from helper options

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 1ee7da08721452033dd7b0537e62ec1191291120
  
https://github.com/Linaro/odp/commit/1ee7da08721452033dd7b0537e62ec1191291120
  Author: Matias Elo 
  Date:   2018-11-21 (Wed, 21 Nov 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/odp_ishm.c
M platform/linux-generic/test/process-mode.conf

  Log Message:
  ---
  linux-gen: shm: remove single_va configuration option

Process mode is now enabled by setting odp_init_global() parameter
odp_init_t.mem_model to ODP_MEM_MODEL_PROCESS.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/27b0ca668ec9...1ee7da087214
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 686811: shippable: switch to using official Shippable imag...

2018-11-21 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 686811c2f3961f3fb26c862059fb690443567e73
  
https://github.com/Linaro/odp/commit/686811c2f3961f3fb26c862059fb690443567e73
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-21 (Wed, 21 Nov 2018)

  Changed paths:
M .shippable.yml
R scripts/Dockerfile

  Log Message:
  ---
  shippable: switch to using official Shippable image

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] d63f90: configure: disable -march=native for clang

2018-11-21 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: d63f90cf86c4f531007122fff497537dab81c088
  
https://github.com/Linaro/odp/commit/d63f90cf86c4f531007122fff497537dab81c088
  Author: Maxim Uvarov 
  Date:   2018-11-21 (Wed, 21 Nov 2018)

  Changed paths:
M configure.ac

  Log Message:
  ---
  configure: disable -march=native for clang

for clang we see strange optimizations for TM code which breaks
code flow execution. There might be number of such places. For
now it's better to disable march=native until we completely
test and validate clang support for this.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Petri Savolainen 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 6c2c1b: travis: define compiler for clang test

2018-11-21 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 6c2c1bbf83a2a69b99d28baecfc8bd3421b651d6
  
https://github.com/Linaro/odp/commit/6c2c1bbf83a2a69b99d28baecfc8bd3421b651d6
  Author: Maxim Uvarov 
  Date:   2018-11-21 (Wed, 21 Nov 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: define compiler for clang test

without specifying compiler CC falls back to default gcc
after it was initialized to clang. Current change forces
test to use clang.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Petri Savolainen 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 12b368: api: queue, schedule: move scheduler capabilities ...

2018-11-19 Thread GitHub
/odp_scheduling.c

  Log Message:
  ---
  performance: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 96adbf43bcd91c63dd8c4c248b439ff3150bd1cc
  
https://github.com/Linaro/odp/commit/96adbf43bcd91c63dd8c4c248b439ff3150bd1cc
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
M example/classifier/odp_classifier.c
M example/generator/odp_generator.c
M example/ipsec/odp_ipsec.c
M example/ipsec_api/odp_ipsec.c
M example/ipsec_offload/odp_ipsec_offload.c
M example/packet/odp_packet_dump.c
M example/packet/odp_pktio.c
M example/timer/odp_timer_accuracy.c
M example/timer/odp_timer_simple.c
M example/timer/odp_timer_test.c

  Log Message:
  ---
  examples: add calls to odp_schedule_config()

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: c290e20364469774d6091426144645e53c257867
  
https://github.com/Linaro/odp/commit/c290e20364469774d6091426144645e53c257867
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: install graphviz in doxygen test

Install graphviz to stop doxygen from emitting 'missing dot' errors.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 27b0ca668ec90730f6329185e23a026caf0b9064
  
https://github.com/Linaro/odp/commit/27b0ca668ec90730f6329185e23a026caf0b9064
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-11-19 (Mon, 19 Nov 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: scheduler use schedule_config instead of capabilities

Since ODP test suite will use default configuration for scheduler, all
comparisons should be done against it rather than maximum possible
values returned by capabilities.

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Balasubramanian Manoharan 
Reviewed-by: Bill Fischofer 
Reviewed-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/c73aaee19593...27b0ca668ec9
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 35525f: linux-gen: ishm: add config option for selecting h...

2018-11-16 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 35525f70aa68e55dca6b05cf59a515c50e7dcba2
  
https://github.com/Linaro/odp/commit/35525f70aa68e55dca6b05cf59a515c50e7dcba2
  Author: Matias Elo 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/odp_ishm.c

  Log Message:
  ---
  linux-gen: ishm: add config option for selecting huge page usage limit

Add configuration option for selecting huge page usage limit in kilobytes.
Memory reservations larger than this value are done using huge pages (if
available), whereas smaller reservations are done using normal pages to
conserve memory. The default value is still 64 kilobytes.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 132dff: linux-gen: init: always initialize odp_global_ro.i...

2018-11-16 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 132dff6387e441c7019a8366c681941ee6173452
  
https://github.com/Linaro/odp/commit/132dff6387e441c7019a8366c681941ee6173452
  Author: Matias Elo 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_init.c

  Log Message:
  ---
  linux-gen: init: always initialize odp_global_ro.init_param

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: d89f772686dba6b331515be41aeefe345a207575
  
https://github.com/Linaro/odp/commit/d89f772686dba6b331515be41aeefe345a207575
  Author: Matias Elo 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_timer.c

  Log Message:
  ---
  linux-gen: timer: zero timer pool memory on reserve

Fixes timer thread failing due to uninitialized variables.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 0dcbdecc871783b5669dc9cb8cf68b7f4d7ffb76
  
https://github.com/Linaro/odp/commit/0dcbdecc871783b5669dc9cb8cf68b7f4d7ffb76
  Author: Matias Elo 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/odp_timer.c
M platform/linux-generic/test/process-mode.conf

  Log Message:
  ---
  linux-gen: timer: enable inline timer implementation using config file

Add configure option 'timer.inline' for enabling inline timer
implementation.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 9ddeaaf7a3226ab03e57cc49775fd234b8d44a2b
  
https://github.com/Linaro/odp/commit/9ddeaaf7a3226ab03e57cc49775fd234b8d44a2b
  Author: Matias Elo 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M .travis.yml
A platform/linux-generic/test/inline-timer.conf
A scripts/ci/check_inline_timer.sh

  Log Message:
  ---
  travis: test inline timer implementation

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 12c4ca508b07b8d2366b0c37bee5f866019e94c2
  
https://github.com/Linaro/odp/commit/12c4ca508b07b8d2366b0c37bee5f866019e94c2
  Author: Matias Elo 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/include/odp_timer_internal.h
M platform/linux-generic/odp_timer.c

  Log Message:
  ---
  linux-gen: timer: add config option for inline timer poll frequency

Add configure option 'timer.inline_poll_interval' for adjusting inline
timer polling frequency.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 56f0435d26ad16fdb4c8b6ea874cf88b15a5ddf9
  
https://github.com/Linaro/odp/commit/56f0435d26ad16fdb4c8b6ea874cf88b15a5ddf9
  Author: Matias Elo 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M platform/linux-generic/include/odp_timer_internal.h
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_queue_scalable.c
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_scalable.c
M platform/linux-generic/odp_schedule_sp.c
M platform/linux-generic/odp_timer.c

  Log Message:
  ---
  linux-gen: timer: decrease inline timer polling interval under load

Decrease inline timer polling interval after receiving events to
compansate for event processing delay.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/fd383ebb6ea7...56f0435d26ad
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] c3e8fb: linux-gen: sysinfo: print out ARM build time featu...

2018-11-16 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: c3e8fb83ed8b5d9017c4fc72ac8ad03bea04b753
  
https://github.com/Linaro/odp/commit/c3e8fb83ed8b5d9017c4fc72ac8ad03bea04b753
  Author: Petri Savolainen 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c

  Log Message:
  ---
  linux-gen: sysinfo: print out ARM build time features

Print out feature flags that were used in build time. The
output may be used to check e.g. if binary was built with
ARMv8.0 or >= ARMv8.1 instructions.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: a78ae2b646fa194a3e148c8577e5c4d4857002da
  
https://github.com/Linaro/odp/commit/a78ae2b646fa194a3e148c8577e5c4d4857002da
  Author: Petri Savolainen 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M platform/linux-generic/arch/aarch64/odp_atomic.h

  Log Message:
  ---
  linux-gen: arm atomic: fix register numbering with casp

ARMv8.1 specific casp() function failed to build due to
register numbering issues. CASP instructions require that the
first register of a pair is even. Force register numbering
to start from even numbers (x0 and x2).

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: fd383ebb6ea70350c28227d0b133c4e9c7075997
  
https://github.com/Linaro/odp/commit/fd383ebb6ea70350c28227d0b133c4e9c7075997
  Author: Petri Savolainen 
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
M configure.ac

  Log Message:
  ---
  linux-gen: build: enable CPU arch specific optimization

When not building in ABI compatible mode, enable compiler
optimizations for the CPU architecture of the local machine.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/1c1118ee10c2...fd383ebb6ea7
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 1c1118: linux-gen: run without /proc mounted

2018-11-14 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 1c1118ee10c209bac716f9368d47a74b62ef
  
https://github.com/Linaro/odp/commit/1c1118ee10c209bac716f9368d47a74b62ef
  Author: Maxim Uvarov 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c
M platform/linux-generic/arch/default/odp_sysinfo_parse.c
M platform/linux-generic/arch/x86/odp_sysinfo_parse.c
M platform/linux-generic/include/odp_sysinfo_internal.h
M platform/linux-generic/odp_system_info.c

  Log Message:
  ---
  linux-gen: run without /proc mounted

Some systems may have /proc interface not mounted, let
odp linux generic run there with dummy values.
https://bugs.linaro.org/show_bug.cgi?id=3989

Signed-off-by: Maxim Uvarov 
Dmitry Eremin-Solenikov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 68578a: linux-gen: ishm: remove unnecessary _odp_ishm_pool...

2018-11-14 Thread GitHub
 .travis.yml
M platform/linux-generic/include/odp_ishmphy_internal.h
M platform/linux-generic/include/odp_shm_internal.h
M platform/linux-generic/odp_ishm.c
M platform/linux-generic/odp_ishmphy.c
M platform/linux-generic/odp_ishmpool.c
M platform/linux-generic/odp_shared_memory.c
M platform/linux-generic/test/validation/api/shmem/shmem_linux.c

  Log Message:
  ---
  linux-gen: ishm: use pre-reserved single va memory

Reserve single VA memory in global init instead of only allocating the
address space. Allocating only the address space doesn't work if shm blocks
are reserved after ODP process has been forked.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/0ce0f29c5cc1...7c7194c3da74
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 635d72: example: sysinfo: print shm blocks

2018-11-14 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 635d7206969ac9167383c6e8e27fa45ec4d3f137
  
https://github.com/Linaro/odp/commit/635d7206969ac9167383c6e8e27fa45ec4d3f137
  Author: Petri Savolainen 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M example/sysinfo/odp_sysinfo.c

  Log Message:
  ---
  example: sysinfo: print shm blocks

It's useful to see how many shm blocks and which kind of memory
(huge or normal pages, etc) ODP implementation itself allocates.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 1ec853bed11476eac8b8bde9f3f1d1e480049816
  
https://github.com/Linaro/odp/commit/1ec853bed11476eac8b8bde9f3f1d1e480049816
  Author: Petri Savolainen 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_shared_memory.c

  Log Message:
  ---
  linux-gen: shm: modify shm print header string

Highlight that printed values are from ODP SHM only, i.e. it's
not generic memory allocation status of the entire system.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 0ce0f29c5cc10320eb7f0741788f551cdf2c6903
  
https://github.com/Linaro/odp/commit/0ce0f29c5cc10320eb7f0741788f551cdf2c6903
  Author: Petri Savolainen 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_classification.c

  Log Message:
  ---
  linux-gen: cls: simplify shm usage

Combine three shm reservations into one reservation. This
simplifies shm usage and results less ODP internally
allocated SHM blocks. Also one combined block is more memory
efficient than multiple (saves memory and page mappings).

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/901de0794779...0ce0f29c5cc1
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] e373d2: linux-gen: ishm: remove _ODP_SHM_NO_HP flag

2018-11-14 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: e373d2a880ba8ab18fa47422920c34d48090714b
  
https://github.com/Linaro/odp/commit/e373d2a880ba8ab18fa47422920c34d48090714b
  Author: Matias Elo 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M platform/linux-generic/include/odp_shm_internal.h
M platform/linux-generic/odp_classification.c
M platform/linux-generic/odp_crypto_null.c
M platform/linux-generic/odp_crypto_openssl.c
M platform/linux-generic/odp_ipsec_sad.c
M platform/linux-generic/odp_ishm.c
M platform/linux-generic/odp_packet_io.c
M platform/linux-generic/odp_pool.c
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_queue_lf.c
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_scalable.c
M platform/linux-generic/pktio/ring.c

  Log Message:
  ---
  linux-gen: ishm: remove _ODP_SHM_NO_HP flag

Reserving large shm blocks without huge pages increases page misses.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: bfcb5801d210e1535e19e556698dd90337a3d4ac
  
https://github.com/Linaro/odp/commit/bfcb5801d210e1535e19e556698dd90337a3d4ac
  Author: Matias Elo 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
R platform/linux-generic/include/odp_ishm_internal.h
M platform/linux-generic/include/odp_shm_internal.h
M platform/linux-generic/odp_ishm.c
M platform/linux-generic/odp_ishmphy.c
M platform/linux-generic/odp_ishmpool.c
M platform/linux-generic/odp_queue_scalable.c
M platform/linux-generic/odp_schedule_scalable.c
M platform/linux-generic/odp_shared_memory.c
M platform/linux-generic/pktio/ipc.c

  Log Message:
  ---
  linux-gen: ishm: remove unused odp_shm_internal header

odp_shm_internal.h contents were not used so delete the file and rename
odp_ishm_internal.h to odp_shm_internal.h.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 33c034c005f686cda95bc21ca4ed1aaf6d7eb539
  
https://github.com/Linaro/odp/commit/33c034c005f686cda95bc21ca4ed1aaf6d7eb539
  Author: Matias Elo 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M platform/linux-generic/include/odp_shm_internal.h
M platform/linux-generic/odp_ishm.c
M platform/linux-generic/odp_pool.c
M platform/linux-generic/odp_shared_memory.c

  Log Message:
  ---
  linux-gen: ishm: add internal _ODP_ISHM_USE_HP flag

Add internal shm flag for allocating shm memory always from huge pages.
This is required by zero-copy dpdk packet pool. Internal _odp_shm_reserve()
function is added for passing extra shm flags.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 901de0794779a6f419f5229de045bf610ec2adc2
  
https://github.com/Linaro/odp/commit/901de0794779a6f419f5229de045bf610ec2adc2
  Author: Matias Elo 
  Date:   2018-11-14 (Wed, 14 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_ishm.c

  Log Message:
  ---
  linux-gen: ishm: allocate small shm blocks using normal pages

Only memory reservations larger than ISHM_HUGE_PAGE_LIMIT (64kB) are
allocated using huge pages (if available). Smaller reservations are done
using normal pages to conserve memory.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/2f1c802e45b2...901de0794779
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 2f1c80: test: queue_perf: fix lockfree support check

2018-11-13 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 2f1c802e45b2e860e641d84c15368cca6cc3454d
  
https://github.com/Linaro/odp/commit/2f1c802e45b2e860e641d84c15368cca6cc3454d
  Author: Petri Savolainen 
  Date:   2018-11-13 (Tue, 13 Nov 2018)

  Changed paths:
M test/performance/odp_queue_perf.c

  Log Message:
  ---
  test: queue_perf: fix lockfree support check

Exit application when -l/-w option is used, but lockfree/waitfree
queues are not supported.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] e9e6dc: api: sched: add wait and no_wait schedule function...

2018-11-12 Thread GitHub
  Branch: refs/heads/api-next
  Home:   https://github.com/Linaro/odp
  Commit: e9e6dcaa53b16b4a081bc87ad971accd45180d8d
  
https://github.com/Linaro/odp/commit/e9e6dcaa53b16b4a081bc87ad971accd45180d8d
  Author: Petri Savolainen 
  Date:   2018-11-12 (Mon, 12 Nov 2018)

  Changed paths:
M include/odp/api/spec/schedule.h

  Log Message:
  ---
  api: sched: add wait and no_wait schedule functions

Schedule call is one of the most used ODP API calls. Introduce
versions without the wait parameter as wait / no_wait are the
most used wait options. Implementation saves a number of
if-conditions per schedule call.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 7263734ca83fc439d7b491149cf07fa3f569b539
  
https://github.com/Linaro/odp/commit/7263734ca83fc439d7b491149cf07fa3f569b539
  Author: Petri Savolainen 
  Date:   2018-11-12 (Mon, 12 Nov 2018)

  Changed paths:
M platform/linux-generic/include/odp_schedule_if.h
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_if.c
M platform/linux-generic/odp_schedule_scalable.c
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: sched: implement wait and no_wait functions

Implemented the new odp_schedule_multi_wait() and _no_wait()
functions.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: c73aaee1959377064cecccb6158b225de3f13db5
  
https://github.com/Linaro/odp/commit/c73aaee1959377064cecccb6158b225de3f13db5
  Author: Petri Savolainen 
  Date:   2018-11-12 (Mon, 12 Nov 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: sched: add test case for wait and no_wait

Added a test case for the new odp_schedule_multi_wait() and
_no_wait() functions.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/33e0abebe03e...c73aaee19593
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 5d6ad5: linuxgen: add dumpconfig utility

2018-11-09 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 5d6ad599eb9f6b05d3890f2b0aae3746b8a2b73e
  
https://github.com/Linaro/odp/commit/5d6ad599eb9f6b05d3890f2b0aae3746b8a2b73e
  Author: Maxim Uvarov 
  Date:   2018-11-09 (Fri, 09 Nov 2018)

  Changed paths:
M Makefile.am
A platform/linux-generic/dumpconfig/.gitignore
A platform/linux-generic/dumpconfig/Makefile.am
A platform/linux-generic/dumpconfig/dumpconfig.c
M platform/linux-generic/m4/configure.m4

  Log Message:
  ---
  linuxgen: add dumpconfig utility

it might be useful to package small binary which prints
platform default builtin config file.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 4f309e: validation: crypto: capability call should not fai...

2018-11-09 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 4f309eceba9fbf1254eb39120d184ca3f6543168
  
https://github.com/Linaro/odp/commit/4f309eceba9fbf1254eb39120d184ca3f6543168
  Author: Petri Savolainen 
  Date:   2018-11-09 (Fri, 09 Nov 2018)

  Changed paths:
M test/validation/api/crypto/odp_crypto_test_inp.c

  Log Message:
  ---
  validation: crypto: capability call should not fail

Capability call should always succeed. It's possible that no
algorithms are supported, but also then the call should succeed.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Reviewed-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 386f6f: validation: packet: add packet reset test

2018-11-06 Thread GitHub
 automatic schedule groups.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: b68aa21885ec3bdfa914c66d811662efbf380127
  
https://github.com/Linaro/odp/commit/b68aa21885ec3bdfa914c66d811662efbf380127
  Author: Petri Savolainen 
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
M platform/linux-generic/include/odp_schedule_if.h
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: add config request function to interface

Added config request function to scheduler internal interface.
Other modules may use this to examine scheduler configuration.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 13b3e7ee716c9f5a296817b5143542d736ae3595
  
https://github.com/Linaro/odp/commit/13b3e7ee716c9f5a296817b5143542d736ae3595
  Author: Petri Savolainen 
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_thread.c

  Log Message:
  ---
  linux-gen: thread: use automatic schedule group configuration

Read from scheduler configuration if an automatic schedule
group is enabled or disabled.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 4dc8160d4897a041a14de578c3fc777fa27e78f5
  
https://github.com/Linaro/odp/commit/4dc8160d4897a041a14de578c3fc777fa27e78f5
  Author: Petri Savolainen 
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: schedule_sp: use sched_cb_pktin_poll

Use sched_cb_pktin_poll instead of sched_cb_pktin_poll_old, so
that the old pktin poll function can be removed.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 6459109ccb46369a8d45d531c76e54c4267b30d6
  
https://github.com/Linaro/odp/commit/6459109ccb46369a8d45d531c76e54c4267b30d6
  Author: Petri Savolainen 
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
M platform/linux-generic/include/odp_schedule_if.h
M platform/linux-generic/odp_packet_io.c

  Log Message:
  ---
  linux-gen: pktio: remove sched_cb_pktin_poll_old

The function is not used anymore.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/79f23e85b2c7...6459109ccb46
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] c13d8b: linux-gen: schedule_sp: use sched_cb_pktin_poll

2018-10-31 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: c13d8ba9b4a7c0b4a637e942bf8d83675a95
  
https://github.com/Linaro/odp/commit/c13d8ba9b4a7c0b4a637e942bf8d83675a95
  Author: Petri Savolainen 
  Date:   2018-10-31 (Wed, 31 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: schedule_sp: use sched_cb_pktin_poll

Use sched_cb_pktin_poll instead of sched_cb_pktin_poll_old, so
that the old pktin poll function can be removed.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: e468e7041ba526fd8e2814b1158bde2e4917a987
  
https://github.com/Linaro/odp/commit/e468e7041ba526fd8e2814b1158bde2e4917a987
  Author: Petri Savolainen 
  Date:   2018-10-31 (Wed, 31 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_schedule_if.h
M platform/linux-generic/odp_packet_io.c

  Log Message:
  ---
  linux-gen: pktio: remove sched_cb_pktin_poll_old

The function is not used anymore.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/48018032f54e...e468e7041ba5
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] d945bf: test: sched_pktio: add burst size option

2018-10-31 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: d945bf9517ab5abfc59447ab30456d1ca9716a5a
  
https://github.com/Linaro/odp/commit/d945bf9517ab5abfc59447ab30456d1ca9716a5a
  Author: Petri Savolainen 
  Date:   2018-10-31 (Wed, 31 Oct 2018)

  Changed paths:
M test/performance/odp_sched_pktio.c

  Log Message:
  ---
  test: sched_pktio: add burst size option

Added option to control maximum burst size, which is
requested from scheduler.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 297cd7e9f93e31dd5a640b707895d702d17b30ae
  
https://github.com/Linaro/odp/commit/297cd7e9f93e31dd5a640b707895d702d17b30ae
  Author: Petri Savolainen 
  Date:   2018-10-31 (Wed, 31 Oct 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/test/process-mode.conf

  Log Message:
  ---
  linux-gen: config: add schedule group config file options

Added options to disable unused automatic schedule groups.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 380fa4598b4c58101a2f07ff179ae67fdcba70ab
  
https://github.com/Linaro/odp/commit/380fa4598b4c58101a2f07ff179ae67fdcba70ab
  Author: Petri Savolainen 
  Date:   2018-10-31 (Wed, 31 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_schedule_if.h
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: add config request function to interface

Added config request function to scheduler internal interface.
Other modules may use this to examine scheduler configuration.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 48018032f54e6e50f509d073c8735f7a5c0bbcb1
  
https://github.com/Linaro/odp/commit/48018032f54e6e50f509d073c8735f7a5c0bbcb1
  Author: Petri Savolainen 
  Date:   2018-10-31 (Wed, 31 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_thread.c

  Log Message:
  ---
  linux-gen: thread: use automatic schedule group configuration

Read from scheduler configuration if an automatic schedule
group is enabled or disabled.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/67d6f7120962...48018032f54e
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 67d6f7: linux-gen: ipsec: make SA lifetime checking more s...

2018-10-29 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 67d6f7120962594e6b9e3343fd7cf13eda956b15
  
https://github.com/Linaro/odp/commit/67d6f7120962594e6b9e3343fd7cf13eda956b15
  Author: Janne Peltonen 
  Date:   2018-10-29 (Mon, 29 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_ipsec_sad.c

  Log Message:
  ---
  linux-gen: ipsec: make SA lifetime checking more scalable to multiple threads

Enforcing the packet and byte based SA life times is currently slow if
the same SA is being handled by multiple threads since the threads
keep checking and updating the same shared byte and packet counters.

Make the implementation more scalable by having a thread-local quota
of packets and bytes for each SA and by updating the shared byte
and packet counters less frequently (i.e. when the quota runs out).

This introduces some inexactness to life time warnings and errors.
The warnings and errors about soft and hard limits being reached
may come a bit earlier than expected based on the packets sent to
the wire.

Signed-off-by: Janne Peltonen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 52d54f: linux-gen: sched: add spread weight config file op...

2018-10-29 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 52d54fae53f5e65f232cb21b116e51ea36b4eb0b
  
https://github.com/Linaro/odp/commit/52d54fae53f5e65f232cb21b116e51ea36b4eb0b
  Author: Petri Savolainen 
  Date:   2018-10-29 (Mon, 29 Oct 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/test/process-mode.conf

  Log Message:
  ---
  linux-gen: sched: add spread weight config file option

Add new config file option to control scheduler internal queue
preference ratio.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 8de012860878e3cb70aab7b6151223b201a8d9a1
  
https://github.com/Linaro/odp/commit/8de012860878e3cb70aab7b6151223b201a8d9a1
  Author: Petri Savolainen 
  Date:   2018-10-29 (Mon, 29 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: use spread weight from config file

Use the new config file option instead of fixed prefer ratio.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 45cd0923809b2b4b972c9e9843ca7323183380c7
  
https://github.com/Linaro/odp/commit/45cd0923809b2b4b972c9e9843ca7323183380c7
  Author: Petri Savolainen 
  Date:   2018-10-29 (Mon, 29 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: increase max spread weight

Increase max spread weight. The default value is kept the same.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/eab91f7101cd...45cd0923809b
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] eab91f: remove scripts/build-pktio-dpdk

2018-10-25 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: eab91f7101cdf47c59b14b5a511a82c701e66ff4
  
https://github.com/Linaro/odp/commit/eab91f7101cdf47c59b14b5a511a82c701e66ff4
  Author: Maxim Uvarov 
  Date:   2018-10-25 (Thu, 25 Oct 2018)

  Changed paths:
M DEPENDENCIES
R scripts/build-pktio-dpdk

  Log Message:
  ---
  remove scripts/build-pktio-dpdk

Script was introduced to quick build odp with dpdk pktio
support for dev or testing propose. Now it's more easy to
run docker container with same parameters as CI does.

Signed-off-by: Maxim Uvarov 
Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Reviewed-and-tested-by: Matias Elo 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 83e9a6: linux-gen: queue: add internal interface for addin...

2018-10-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 83e9a6c3896d2d8a949a7bece565bae7dfd1d967
  
https://github.com/Linaro/odp/commit/83e9a6c3896d2d8a949a7bece565bae7dfd1d967
  Author: Matias Elo 
  Date:   2018-10-24 (Wed, 24 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_queue_basic_internal.h
M platform/linux-generic/include/odp_queue_if.h
M platform/linux-generic/include/odp_queue_scalable_internal.h
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_queue_scalable.c

  Log Message:
  ---
  linux-gen: queue: add internal interface for adding/removing inline timers

Add internal queue interface functions queue_timer_add_fn_t and
queue_timer_rem_fn_t for adding/removing inline timers.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 4aa40267ae25e6ee021c8ce067bae649db2d0d8d
  
https://github.com/Linaro/odp/commit/4aa40267ae25e6ee021c8ce067bae649db2d0d8d
  Author: Matias Elo 
  Date:   2018-10-24 (Wed, 24 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_global_data.h
M platform/linux-generic/include/odp_timer_internal.h
M platform/linux-generic/odp_init.c
M platform/linux-generic/odp_timer.c

  Log Message:
  ---
  linux-gen: timer: reduce inline timer overhead

Reduce inline timer overhead by not polling timers until at least one
timer pool has been created.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: cc91c95216ca80d17c638c07659873ecf24f25e6
  
https://github.com/Linaro/odp/commit/cc91c95216ca80d17c638c07659873ecf24f25e6
  Author: Matias Elo 
  Date:   2018-10-24 (Wed, 24 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_queue_scalable.c
M platform/linux-generic/odp_timer.c

  Log Message:
  ---
  linux-gen: timer: run inline timers during queue dequeue operations

Process inline timers (if enabled) during odp_queue_deq() and
odp_queue_deq_multi() calls. This fixes inline timers not working if
odp_schedule() or odp_schedule_multi() was never called.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/8dc48817b06a...cc91c95216ca
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] f46ecd: configure.ac: set DX environment WITH_PLATFORM fro...

2018-10-24 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: f46ecd688b8c0de5f273ad92478f473eea167112
  
https://github.com/Linaro/odp/commit/f46ecd688b8c0de5f273ad92478f473eea167112
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-10-24 (Wed, 24 Oct 2018)

  Changed paths:
M configure.ac

  Log Message:
  ---
  configure.ac: set DX environment WITH_PLATFORM from configure.ac

Rather than manually modifying ax_prog_doxygen.m4 set variable from 
configure.ac.

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: f21e5e8137becb8bda722ac8b9dd27d476af77f8
  
https://github.com/Linaro/odp/commit/f21e5e8137becb8bda722ac8b9dd27d476af77f8
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-10-24 (Wed, 24 Oct 2018)

  Changed paths:
M doc/application-api-guide/Doxyfile
M doc/platform-api-guide/Doxyfile

  Log Message:
  ---
  doc: pass generated include files to Doxygen

Pass generated files to doxygen to let it know about
ODP_DEPRECATED()/ODP_VERSION_API_xxx

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 8dc48817b06a5a303cf2b778eda68cc3627dd625
  
https://github.com/Linaro/odp/commit/8dc48817b06a5a303cf2b778eda68cc3627dd625
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-10-24 (Wed, 24 Oct 2018)

  Changed paths:
M m4/ax_prog_doxygen.m4

  Log Message:
  ---
  m4: update ax_prog_doxygen.m4 to latest version

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/0e53dabacd38...8dc48817b06a
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 8c72eb: travis: build ODP on multiple threads

2018-10-22 Thread GitHub
Signed-off-by: Maxim Uvarov 


  Commit: 0e53dabacd38643eb17834b15b5ae8e459700a4f
  
https://github.com/Linaro/odp/commit/0e53dabacd38643eb17834b15b5ae8e459700a4f
  Author: Petri Savolainen 
  Date:   2018-10-22 (Mon, 22 Oct 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: run all test with gcc first

Change build matrix format from N x 2 to 2 x N. Run first all
tests with GCC, then with clang.

Signed-off-by: Petri Savolainen 
Reviewed-by:  Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/044cae351a1e...0e53dabacd38
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 031802: linux-gen: config: improve config file check error...

2018-10-18 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 031802ec0c5e3e44d70aee7b19e0cd1055c9fe0b
  
https://github.com/Linaro/odp/commit/031802ec0c5e3e44d70aee7b19e0cd1055c9fe0b
  Author: Petri Savolainen 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_libconfig.c

  Log Message:
  ---
  linux-gen: config: improve config file check error output

It was hard to notice from log that config file version has
a mismatch. This is a common error when config file version
has updated, but a user has not updated his own config file.
Improve error check output, so that failure reason is better
highlighted.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 7e188187a77fa9bab56f1407eb660c324736cd34
  
https://github.com/Linaro/odp/commit/7e188187a77fa9bab56f1407eb660c324736cd34
  Author: Petri Savolainen 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_config_internal.h
M platform/linux-generic/include/odp_schedule_scalable_config.h
M platform/linux-generic/odp_queue_scalable.c

  Log Message:
  ---
  linux-gen: config: move queue size config to scalable

Only scalable queues use build time the queue size config.
Move it to scalable config file.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 2c41f8f678bbb96a63dedb4e4d948c5dd779f65d
  
https://github.com/Linaro/odp/commit/2c41f8f678bbb96a63dedb4e4d948c5dd779f65d
  Author: Petri Savolainen 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_pool.c

  Log Message:
  ---
  linux-gen: pool: output error on pool create

Change from debug to error message on pool create checks.
These are slow path errors and it's helpful to see those
also when not debugging.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 0c8a2c0027e35184cbc6eeadc3a8aa8bd2e8605b
  
https://github.com/Linaro/odp/commit/0c8a2c0027e35184cbc6eeadc3a8aa8bd2e8605b
  Author: Petri Savolainen 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_pool.c

  Log Message:
  ---
  linux-gen: pool: add packet param checks

Do also checks against maximum number of packets and
max packet headroom size.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 95cbee5ac9cdcb696d48e6f820593c813f535f8a
  
https://github.com/Linaro/odp/commit/95cbee5ac9cdcb696d48e6f820593c813f535f8a
  Author: Petri Savolainen 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/include/odp_pool_internal.h
M platform/linux-generic/odp_pool.c
M platform/linux-generic/test/process-mode.conf

  Log Message:
  ---
  linux-gen: pool: add max num packets in config file

This config is used to for maximum capability. The default
capability needs to be modest so that system memory limit is
not exceeded. User may increase maximum number of packets when
system memory size allows (and SHM single VA is not used).

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 044cae351a1e60e4381cdbae37e2a759772c2258
  
https://github.com/Linaro/odp/commit/044cae351a1e60e4381cdbae37e2a759772c2258
  Author: Petri Savolainen 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_config_internal.h

  Log Message:
  ---
  linux-gen: config: maximum pool size 1M

Change maximum pool size back to 1M. Maximum packet pool
capability is defined in the config file. This is the upper
limit for that config. Also this is max capability of buffer
and tmo pools.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/690bacc61c55...044cae351a1e
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 690bac: linux-gen: pool: increase minimum packet segment l...

2018-10-18 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 690bacc61c55e4f8f3195faaac068da83790ebf4
  
https://github.com/Linaro/odp/commit/690bacc61c55e4f8f3195faaac068da83790ebf4
  Author: Matias Elo 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_config_internal.h
M platform/linux-generic/pktio/dpdk.c

  Log Message:
  ---
  linux-gen: pool: increase minimum packet segment length

Some DPDK NICs need at least 2176 byte buffers (2048B + headroom) to not
segment standard ethernet frames. Increase minimum segment length to avoid
this and add matching check to zero-copy dpdk pktio pool create.

Reported-by: P. Gyanesh Kumar Patra 
Signed-off-by: Matias Elo 
Tested-by: P. Gyanesh Kumar Patra 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] f8a9b8: example: generator: use odp_wait_time_ns() instead...

2018-10-18 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: f8a9b873ffd6b1a512eb87ebc3ab183bc71157b0
  
https://github.com/Linaro/odp/commit/f8a9b873ffd6b1a512eb87ebc3ab183bc71157b0
  Author: Matias Elo 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M example/generator/odp_generator.c

  Log Message:
  ---
  example: generator: use odp_wait_time_ns() instead of timers

Simplify code by using odp_wait_time_ns() instead of timers.

Signed-off-by: Matias Elo 
Reviewed-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


  Commit: 0287f1432eda1cf3e7fb8323e0fda838cf744816
  
https://github.com/Linaro/odp/commit/0287f1432eda1cf3e7fb8323e0fda838cf744816
  Author: Matias Elo 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M example/generator/odp_generator.c

  Log Message:
  ---
  example: generator: remove print from packet tx loop

The printf() would flood output when using small tx interval. Increase
global stats print interval instead.

Signed-off-by: Matias Elo 
Reviewed-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/df04f4ccb940...0287f1432eda
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] df04f4: example: stop and close pktio devices on exit

2018-10-18 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: df04f4ccb940fea8cf3d7b5d41e31a381bb0ec08
  
https://github.com/Linaro/odp/commit/df04f4ccb940fea8cf3d7b5d41e31a381bb0ec08
  Author: Matias Elo 
  Date:   2018-10-18 (Thu, 18 Oct 2018)

  Changed paths:
M example/ipsec/odp_ipsec.c
M example/ipsec_api/odp_ipsec.c
M example/ipsec_offload/odp_ipsec_offload.c
M example/l2fwd_simple/odp_l2fwd_simple.c
M example/l3fwd/odp_l3fwd.c
M example/switch/odp_switch.c
M platform/linux-generic/test/mmap_vlan_ins/mmap_vlan_ins.c

  Log Message:
  ---
  example: stop and close pktio devices on exit

Stop and close used pktio devices on exit to free used resources.

Signed-off-by: Matias Elo 
Reviewed-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 4a877e: linux-gen: sched scalable: allocate global data fr...

2018-10-16 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 4a877ef354b51189acc631c9b0ef669cf16045cc
  
https://github.com/Linaro/odp/commit/4a877ef354b51189acc631c9b0ef669cf16045cc
  Author: Matias Elo 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_scalable.c

  Log Message:
  ---
  linux-gen: sched scalable: allocate global data from shm

Enables using scalable scheduler in process mode.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 570758a22fd0d6e2b2a73eb8ed0a8360a5b0ef32
  
https://github.com/Linaro/odp/commit/570758a22fd0d6e2b2a73eb8ed0a8360a5b0ef32
  Author: Matias Elo 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_packet_io_ring_internal.h
M platform/linux-generic/pktio/ipc.c
M platform/linux-generic/pktio/ring.c

  Log Message:
  ---
  linux-gen: ring: allocate global data from shm

Enables using ipc in process mode.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/dc6c26b9ef60...570758a22fd0
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 59debc: ci: remove iquery tests

2018-10-16 Thread GitHub
  Branch: refs/heads/api-next
  Home:   https://github.com/Linaro/odp
  Commit: 59debc98d1d5ced95da8c95cdbc714184128f1e6
  
https://github.com/Linaro/odp/commit/59debc98d1d5ced95da8c95cdbc714184128f1e6
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M .shippable.yml
M scripts/ci/coverage.sh

  Log Message:
  ---
  ci: remove iquery tests

Remove iquery scheduler from CI test scripts.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: fad375346ab5cab78b44e7de8417527ca77e7ca6
  
https://github.com/Linaro/odp/commit/fad375346ab5cab78b44e7de8417527ca77e7ca6
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_queue_if.c
M platform/linux-generic/odp_schedule_if.c

  Log Message:
  ---
  linux-gen: sched: remove iquery from interface

Remove iquery from scheduler and queue interface.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 602e207726055100b068eff1442c28fba95b8fac
  
https://github.com/Linaro/odp/commit/602e207726055100b068eff1442c28fba95b8fac
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
R platform/linux-generic/odp_schedule_iquery.c

  Log Message:
  ---
  linux-gen: remove iquery scheduler implementation

Iquery scheduler has no advantage compared to basic and scalable
scheduler. It has not been developed for a long time. Remove it
to reduce maintenance overhead.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 79f23e85b2c7e8f977efc2d10bb06639f08edbaf
  
https://github.com/Linaro/odp/commit/79f23e85b2c7e8f977efc2d10bb06639f08edbaf
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_schedule_if.h
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: sched: remove unused schedule interface functions

These functions are not needed after iquery scheduler was
removed.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/e4f37812327c...79f23e85b2c7
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 712565: ci: remove iquery tests

2018-10-16 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 712565ad0e1dfdb1d80ca0b3a82c994eced863b6
  
https://github.com/Linaro/odp/commit/712565ad0e1dfdb1d80ca0b3a82c994eced863b6
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M .shippable.yml
M scripts/ci/coverage.sh

  Log Message:
  ---
  ci: remove iquery tests

Remove iquery scheduler from CI test scripts.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: d1936686de3035d2664fa4745bd8681a6411d0d6
  
https://github.com/Linaro/odp/commit/d1936686de3035d2664fa4745bd8681a6411d0d6
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_queue_if.c
M platform/linux-generic/odp_schedule_if.c

  Log Message:
  ---
  linux-gen: sched: remove iquery from interface

Remove iquery from scheduler and queue interface.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: caad132591f4ede71f08b727f302c8d41b8e96d9
  
https://github.com/Linaro/odp/commit/caad132591f4ede71f08b727f302c8d41b8e96d9
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
R platform/linux-generic/odp_schedule_iquery.c

  Log Message:
  ---
  linux-gen: remove iquery scheduler implementation

Iquery scheduler has no advantage compared to basic and scalable
scheduler. It has not been developed for a long time. Remove it
to reduce maintenance overhead.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: dc6c26b9ef60ac0f10dca34b9f84ad440cf2c39e
  
https://github.com/Linaro/odp/commit/dc6c26b9ef60ac0f10dca34b9f84ad440cf2c39e
  Author: Petri Savolainen 
  Date:   2018-10-16 (Tue, 16 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_schedule_if.h
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: sched: remove unused schedule interface functions

These functions are not needed after iquery scheduler was
removed.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/7cefeec60b27...dc6c26b9ef60
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 9b0a51: linux-gen: ipsec: fall back to lower odp_random_ki...

2018-10-16 Thread GitHub
:
  ---
  linux-gen: packet: support SCTP packet insertion

Add support for insertion of checksum into SCTP packets.

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 7ee813622ba89b22518cdb782d0262b23d00
  
https://github.com/Linaro/odp/commit/7ee813622ba89b22518cdb782d0262b23d00
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M platform/linux-generic/pktio/loop.c

  Log Message:
  ---
  linux-gen: pktio: loop: handle SCTP checksums

Add code to emulate hardware SCTP checksumming support over loop device
(as it is done for IPv4/TCP/UDP).

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 0b98ee418d7a8867666143744bf803f17f4c7f99
  
https://github.com/Linaro/odp/commit/0b98ee418d7a8867666143744bf803f17f4c7f99
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_ipsec.c

  Log Message:
  ---
  linux-gen: ipsec: insert checksum into SCTP packets if required

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: cb33b0cfae1d20174f4c0b37dad44fa91f9b050d
  
https://github.com/Linaro/odp/commit/cb33b0cfae1d20174f4c0b37dad44fa91f9b050d
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M test/validation/api/pktio/pktio.c

  Log Message:
  ---
  validation: pktio: add SCTP checksum tests

Add tests validating SCTP checksumming on pkt out and checksum
verification on pkt in.

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 48f79d39e33ab50d96fba57037d9dd869913745c
  
https://github.com/Linaro/odp/commit/48f79d39e33ab50d96fba57037d9dd869913745c
  Author: Maxim Uvarov 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: setup default docker name space

Travis runs docker images which build under
github/Linaro/odp-docker-images.git project. DOCKER_NAMESPACE variable
should be set in Travis settings (in web interface) to match image
which build to images which is used for testing. If that variable is
not set, then switch to mainline images (opendataplane/).

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


  Commit: 8073ff7d71dd23f575d91e7b4969d6c0c8570dcd
  
https://github.com/Linaro/odp/commit/8073ff7d71dd23f575d91e7b4969d6c0c8570dcd
  Author: Petri Savolainen 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M test/performance/odp_queue_perf.c

  Log Message:
  ---
  test: queue_perf: prepare for multiple worker threads

Split queue create, test run and queue destroy into separate
functions and use helper to create a single worker thread.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: e48d04b3200c3fdb387442ade824778e8cc69f2e
  
https://github.com/Linaro/odp/commit/e48d04b3200c3fdb387442ade824778e8cc69f2e
  Author: Petri Savolainen 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M test/performance/odp_queue_perf.c

  Log Message:
  ---
  test: queue_perf: add num_cpu option

Added support for multiple threads and -c options to select
number of worker threads.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 174b7a9f86f817432206cdc97e1c75670ae38b83
  
https://github.com/Linaro/odp/commit/174b7a9f86f817432206cdc97e1c75670ae38b83
  Author: Petri Savolainen 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M test/performance/odp_queue_perf.c

  Log Message:
  ---
  test: queue_perf: add burst_size option

Added option to select maximum burst size. Changed to
multi-dequeue and enqueue functions.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: fab63578337cf8e1d92c53f09a546536993e603f
  
https://github.com/Linaro/odp/commit/fab63578337cf8e1d92c53f09a546536993e603f
  Author: Petri Savolainen 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M platform/linux-generic/Makefile.am
A platform/linux-generic/include/odp_ring_mpmc_internal.h

  Log Message:
  ---
  linux-gen: ring_mpmc: new multi-producer, multi-consumer ring

The ring is similar to ring_internal.h, but checks for ring
fullness. This ring can be used for storing events in a queue
as enqueues can be tried on an already full queue.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: 991058be9ac114da2060f2e41dc28f86d93751ac
  
https://github.com/Linaro/odp/commit/991058be9ac114da2060f2e41dc28f86d93751ac
  Author: Petri Savolainen 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_queue_basic_internal.h
M platform/linux-generic/odp_queue_basic.c

  Log Message:
  ---
  linux-gen: queue: use

[lng-odp] [Linaro/odp] a8cc16: linux-gen: pktio: fix index calculation of multipl...

2018-10-15 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: a8cc1677b95448509bbc0258734c4a0c6465a2ae
  
https://github.com/Linaro/odp/commit/a8cc1677b95448509bbc0258734c4a0c6465a2ae
  Author: Petri Savolainen 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_packet_io.c

  Log Message:
  ---
  linux-gen: pktio: fix index calculation of multiple dest_queue

Packets to different destination queues interleaved resulted
bad indexes when pktin_recv_buf() was recording which packets
belong to the same dest_queue.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 7cefeec60b27d96cc6a62f2579dddc56d80846ed
  
https://github.com/Linaro/odp/commit/7cefeec60b27d96cc6a62f2579dddc56d80846ed
  Author: Petri Savolainen 
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
M test/validation/api/classification/odp_classification_test_pmr.c

  Log Message:
  ---
  validation: cls: interleave tcp test flows

For better test coverage send two packet flows interleaved
(in two/three packet patches). Also check that a received
packet is from the correct queue.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/0f6ebf74b3f7...7cefeec60b27
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 664cbd: helper: iplookup: check capabilities

2018-10-15 Thread GitHub
/validation/api/pool/pool.c

  Log Message:
  ---
  validation: pool: add max num pool tests

Test that pools can be created with maximum number of
events defined in pool capability. Test that all events
can be allocated and freed. Event size is small.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/01a3bd80c5e5...0f6ebf74b3f7
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 35265d: linux-gen: dpdk: fix running multiple odp instance...

2018-10-11 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 35265db49b1f5329deed85734cb94cac2cc44178
  
https://github.com/Linaro/odp/commit/35265db49b1f5329deed85734cb94cac2cc44178
  Author: Matias Elo 
  Date:   2018-10-11 (Thu, 11 Oct 2018)

  Changed paths:
M platform/linux-generic/pktio/dpdk.c

  Log Message:
  ---
  linux-gen: dpdk: fix running multiple odp instances simulaneusly

Prefix DPDK packet pool names and huge page mappings with
PID to avoid name conflicts. Also, let DPDK detect process
type automatically.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 09affd4785c5817f14eb528940420d3831ab81de
  
https://github.com/Linaro/odp/commit/09affd4785c5817f14eb528940420d3831ab81de
  Author: Matias Elo 
  Date:   2018-10-11 (Thu, 11 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_packet_dpdk.h
M platform/linux-generic/pktio/dpdk.c
M platform/linux-generic/pktio/dpdk_parse.c

  Log Message:
  ---
  linux-gen: dpdk: prefix visible internal parse functions with _odp_

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 01a3bd80c5e56bdfa1868cfb1f030ca3a834d742
  
https://github.com/Linaro/odp/commit/01a3bd80c5e56bdfa1868cfb1f030ca3a834d742
  Author: Matias Elo 
  Date:   2018-10-11 (Thu, 11 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_packet_dpdk.h
M platform/linux-generic/include/odp_packet_internal.h
M platform/linux-generic/include/odp_pool_internal.h
M platform/linux-generic/odp_pool.c
M platform/linux-generic/pktio/dpdk.c

  Log Message:
  ---
  linux-gen: dpdk: improved zero-copy implementation

Improved zero-copy DPDK pktio implementation which better adheres to DPDK
APIs. The new implementation reduces overhead by moving mbuf
initialization to ODP pool create and by using offsets instead of saved
pointers to do ODP packet / DPDK mbuf conversion.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/ad7a654b1355...01a3bd80c5e5
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] ad7a65: validation: packet: add packet reset test

2018-10-11 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: ad7a654b1355f346e33834dd220535b07a4eef0e
  
https://github.com/Linaro/odp/commit/ad7a654b1355f346e33834dd220535b07a4eef0e
  Author: Petri Savolainen 
  Date:   2018-10-11 (Thu, 11 Oct 2018)

  Changed paths:
M test/validation/api/packet/packet.c

  Log Message:
  ---
  validation: packet: add packet reset test

Added test for odp_packet_reset().

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] f60d82: linux-gen: ipsec: speed up random IV generation by...

2018-10-10 Thread GitHub
. Relax packet check for AH packets
since IP ID is included in the ICV and the expected ICV cannot be
easily calculated in the current api validation code.

Fixes: https://bugs.linaro.org/show_bug.cgi?id=4017

Signed-off-by: Janne Peltonen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 0c6352e2d0f755c310692f5cf627801abf8ccb63
  
https://github.com/Linaro/odp/commit/0c6352e2d0f755c310692f5cf627801abf8ccb63
  Author: Janne Peltonen 
  Date:   2018-10-10 (Wed, 10 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_ipsec_internal.h
M platform/linux-generic/odp_ipsec.c
M platform/linux-generic/odp_ipsec_sad.c

  Log Message:
  ---
  linux-gen: ipsec: use global IPv4 ID allocator for all tunnel SAs

Change the per-SA IPv4 ID allocator to a global one for IPsec to
reduce the risk of duplicate IPv4 IDs when there are multiple
SAs between the same endpoints.

Use zero IPv4 ID in atomic datagrams (RFC 6864).

Fixes: https://bugs.linaro.org/show_bug.cgi?id=4013

Signed-off-by: Janne Peltonen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 577a58dddef4824f709f00b602543bde3f440ac7
  
https://github.com/Linaro/odp/commit/577a58dddef4824f709f00b602543bde3f440ac7
  Author: Janne Peltonen 
  Date:   2018-10-10 (Wed, 10 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_ipsec_sad.c

  Log Message:
  ---
  linux-gen: ipsec: make IPv4 ID allocator scale better to multiple threads

Allocate IPv4 ID to threads in blocks to avoid updating shared IPv4
ID variable for every packet. Keep free ID blocks in a ring to
maximize the time before reusing a block.

Signed-off-by: Janne Peltonen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/65f2959da164...577a58dddef4
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 1d5c2f: linux-gen: shm: do not print map error

2018-10-09 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 1d5c2ffab0051390641628a458f657c49ea54d41
  
https://github.com/Linaro/odp/commit/1d5c2ffab0051390641628a458f657c49ea54d41
  Author: Maxim Uvarov 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_ishmphy.c

  Log Message:
  ---
  linux-gen: shm: do not print map error

map error just spams output screen and it's impossible
to see anything in the log. No need this extra debug
print. It's ok if memory can not be allocated in HP and
reservation fails to normal pages.

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


  Commit: 65f2959da164c4fed23b713c99842213c7ab04e1
  
https://github.com/Linaro/odp/commit/65f2959da164c4fed23b713c99842213c7ab04e1
  Author: Maxim Uvarov 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_shm_internal.h
M platform/linux-generic/odp_classification.c
M platform/linux-generic/odp_crypto_null.c
M platform/linux-generic/odp_crypto_openssl.c
M platform/linux-generic/odp_ipsec_events.c
M platform/linux-generic/odp_ipsec_sad.c
M platform/linux-generic/odp_ishm.c
M platform/linux-generic/odp_packet_io.c
M platform/linux-generic/odp_pool.c
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_queue_lf.c
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_shared_memory.c
M platform/linux-generic/odp_thread.c

  Log Message:
  ---
  linux-gen: do not use huge pages for internal allocations

Some linux-generic internal shared memory allocations have
to be in normal pages due to small required data. Relaying
on odp_sys_huge_page_size() is not really correct, because
call returns default huge page size. But default huge page
size is definned in kernel boot parameter as:
default_hugepagesz=1G hugepagesz=1G hugepages=2
So in that case for small allocation linux-gen will create 1GB
huge page. This patch introduces internal flag to shm funtion
to allocate hp.
This patch remains allowing changes on top of it:
For now pools are in huge page. And for apps with small pool it's
big overhead of unused memory. We should take into account
odp_sys_huge_page_size_all() call and found best sized huge pages.
https://bugs.linaro.org/show_bug.cgi?id=3954

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 


Compare: https://github.com/Linaro/odp/compare/406054d9c9ce...65f2959da164
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] b7da3c: example: build: configure option to disable exampl...

2018-10-09 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: b7da3cd005ab576b55e066ffa854697f41bb6f82
  
https://github.com/Linaro/odp/commit/b7da3cd005ab576b55e066ffa854697f41bb6f82
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M Makefile.am
M configure.ac
M example/m4/configure.m4

  Log Message:
  ---
  example: build: configure option to disable example build

Example applications are not always needed. Added a configuration
option to disable example application build and install. This
makes build faster and install footprint smaller.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 406054d9c9ce31990d59640aa5d3dfd49e2d1e9d
  
https://github.com/Linaro/odp/commit/406054d9c9ce31990d59640aa5d3dfd49e2d1e9d
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M Makefile.am
M configure.ac
M test/m4/configure.m4

  Log Message:
  ---
  test: build: configure option to disable test build

Test applications are not always needed. Added a configuration
option to disable test application build and install. This
makes build faster and install footprint smaller.

Signed-off-by: Petri Savolainen 
Reviewed-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/a7f23e35b596...406054d9c9ce
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 21f383: linux-gen: pool: decrease minimum segment size to ...

2018-10-09 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 21f383e9fa9f0f0c127dbb251e08ae91da56d817
  
https://github.com/Linaro/odp/commit/21f383e9fa9f0f0c127dbb251e08ae91da56d817
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M platform/linux-generic/include/odp_config_internal.h

  Log Message:
  ---
  linux-gen: pool: decrease minimum segment size to 2k

Decrease minimum segment size from about 8k to about 2k bytes.
Normal Ethernet frames still fit into first segment, but
SHM reservation size is reduced into about 1/3 what it was.
There is 1GB limit in process mode SHM allocations, so 1/3
reduction makes a big difference there.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: d46c341e321cb5085d5577dd5fb8ca0b3f7ba554
  
https://github.com/Linaro/odp/commit/d46c341e321cb5085d5577dd5fb8ca0b3f7ba554
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: sched: add queue size test

Added test case which uses small queue size for scheduled
queues.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 2dd51f19e1d9c84fd09962ad2d134c376b46c45f
  
https://github.com/Linaro/odp/commit/2dd51f19e1d9c84fd09962ad2d134c376b46c45f
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M platform/linux-generic/odp_queue_basic.c

  Log Message:
  ---
  linux-gen: queue: use queue size parameter

Don't round up small queue sizes to default, but to minimum
queue size. Application may need to set small size on some
queues.

Large queue size mean large buffering capacity. E.g. when
large queues are served with a low priority, service level
of higher priority queues may suffer as many/most events of
a shared pool may be stored in low priority queues (while
the pool is empty).

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: d966e0e452517e1e0a29ca59b892f6685d560c78
  
https://github.com/Linaro/odp/commit/d966e0e452517e1e0a29ca59b892f6685d560c78
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M test/performance/odp_sched_pktio.c

  Log Message:
  ---
  test: sched_pktio: add queue pipeline options

Added options to test performance when received packets are
pushed through a set of queues (pipeline stages) before
packet output.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 0db006b5ea8fb6c760a4e48a5dd953b65d1895fc
  
https://github.com/Linaro/odp/commit/0db006b5ea8fb6c760a4e48a5dd953b65d1895fc
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M test/performance/odp_sched_pktio.c

  Log Message:
  ---
  test: sched_pktio: add scheduler sync mode option

Added option to select scheduler synchronization mode
(parallel, atomic, ordered) for all queues.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: a7f23e35b596dada847205235821336e9e8d7166
  
https://github.com/Linaro/odp/commit/a7f23e35b596dada847205235821336e9e8d7166
  Author: Petri Savolainen 
  Date:   2018-10-09 (Tue, 09 Oct 2018)

  Changed paths:
M test/performance/odp_sched_pktio.c

  Log Message:
  ---
  test: sched_pktio: add pipeline queue size option

Added option to set pipeline queue size. Default is 256 to
avoid large buffering in pipeline queues.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/f6b06ba4ef87...a7f23e35b596
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] f6b06b: travis: export CI for first distcheck

2018-10-08 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: f6b06ba4ef87d2c62fe47fe8ffe4e240b37c8fc1
  
https://github.com/Linaro/odp/commit/f6b06ba4ef87d2c62fe47fe8ffe4e240b37c8fc1
  Author: Maxim Uvarov 
  Date:   2018-10-08 (Mon, 08 Oct 2018)

  Changed paths:
M scripts/ci/distcheck.sh

  Log Message:
  ---
  travis: export CI for first distcheck

scripts runs 2 distchecks but only for second one CI
was exported.

Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 9a4f83: linux-gen: split global data into RO and RW struct...

2018-10-04 Thread GitHub
/66d4b2811d1742dde1a8b84afdf6ab5914bfd1c6
  Author: Matias Elo 
  Date:   2018-10-04 (Thu, 04 Oct 2018)

  Changed paths:
M .travis.yml

  Log Message:
  ---
  travis: add process mode test

Signed-off-by: Matias Elo 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/a08beb4afc6b...66d4b2811d17
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] f14b2b: linux-gen: dpdk: prefetch pkt_hdr before packet in...

2018-10-03 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: f14b2bb379065f70174cc46a3cb2f7577eaecf2c
  
https://github.com/Linaro/odp/commit/f14b2bb379065f70174cc46a3cb2f7577eaecf2c
  Author: Petri Savolainen 
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
M platform/linux-generic/pktio/dpdk.c

  Log Message:
  ---
  linux-gen: dpdk: prefetch pkt_hdr before packet init

Two most often referenced packet header cachelines are
prefetched. Improve effectiveness by prefetching pkt_hdr[i + 2],
while working on pkt_hdr[i].

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: a08beb4afc6b7da7786cd7c827643689c1ee86d0
  
https://github.com/Linaro/odp/commit/a08beb4afc6b7da7786cd7c827643689c1ee86d0
  Author: Petri Savolainen 
  Date:   2018-10-03 (Wed, 03 Oct 2018)

  Changed paths:
M platform/linux-generic/pktio/dpdk.c

  Log Message:
  ---
  linux-gen: dpdk: prefetch packet data early

Prefetch packet data for pkt[i + 2], while working on pkt[i].
This improves performance when packet is parsed.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/bb09ee5afa73...a08beb4afc6b
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 094e84: example: packet_dump: add new example

2018-09-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 094e84c5635894f076e416c9d667fff7ae6d8acc
  
https://github.com/Linaro/odp/commit/094e84c5635894f076e416c9d667fff7ae6d8acc
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M example/packet/.gitignore
M example/packet/Makefile.am
A example/packet/odp_packet_dump.c

  Log Message:
  ---
  example: packet_dump: add new example

This new example application prints received packet to terminal.
It may be used e.g. while debugging packet IO interfaces.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 


  Commit: bb09ee5afa739db4c6775e4d1481ecf7b2c6ee4d
  
https://github.com/Linaro/odp/commit/bb09ee5afa739db4c6775e4d1481ecf7b2c6ee4d
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M example/packet/Makefile.am
A example/packet/packet_dump_run.sh

  Log Message:
  ---
  example: packet_dump: run during make check

Run packet dump example with pcap input during make check.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/29483528be6b...bb09ee5afa73
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 294835: test: ipc: reduce interface start poll frequency

2018-09-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 29483528be6b0878a73c5b0d34e91dd34ade3f43
  
https://github.com/Linaro/odp/commit/29483528be6b0878a73c5b0d34e91dd34ade3f43
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
M platform/linux-generic/test/pktio_ipc/pktio_ipc2.c

  Log Message:
  ---
  test: ipc: reduce interface start poll frequency

This test fails frequently in Travis since log get filled with
debug prints from odp_pktio_start(). Reduce polling frequency to
once per 50ms. This gives both process time to start up, before
log is filled with unnecessary error messages.

Signed-off-by: Petri Savolainen 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 50f15e: linux-gen: queue: fix error print format

2018-09-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 50f15e48f30ddafcbeac77fa5dcfbd8eb6f55353
  
https://github.com/Linaro/odp/commit/50f15e48f30ddafcbeac77fa5dcfbd8eb6f55353
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_queue_basic.c

  Log Message:
  ---
  linux-gen: queue: fix error print format

Add missing '%' from printf formats. Also use hex instead of int
format as queue handles are pointers.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] cca786: linux-gen: shm: add option for allocating internal...

2018-09-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: cca78664b864d7fb3d99412147275d1b6ef582be
  
https://github.com/Linaro/odp/commit/cca78664b864d7fb3d99412147275d1b6ef582be
  Author: Matias Elo 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/include/odp_global_data.h
M platform/linux-generic/odp_ishm.c

  Log Message:
  ---
  linux-gen: shm: add option for allocating internal shm using single VA

Enables using ODP in process mode.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 8acc1daf215ee62beba7c333dc0818d9a9c52010
  
https://github.com/Linaro/odp/commit/8acc1daf215ee62beba7c333dc0818d9a9c52010
  Author: Matias Elo 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/include/odp_config_internal.h

  Log Message:
  ---
  linux-gen: shm: increase pre-reserved virtual address space size

Larger address space is required due to the internal shm allocations in
process mode.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: f8e019e23d8348506c1121c73d63ee4e1b584e6e
  
https://github.com/Linaro/odp/commit/f8e019e23d8348506c1121c73d63ee4e1b584e6e
  Author: Matias Elo 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_pool.c
M platform/linux-generic/odp_timer.c
M platform/linux-generic/pktio/ipc.c
M platform/linux-generic/pktio/ring.c

  Log Message:
  ---
  linux-gen: shm: reserve internal shms using single VA flag

Reserve internal shm blocks using single VA flag when the reservation is
done after global init. Enables process mode support.

Signed-off-by: Matias Elo 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/b7b947ed8562...f8e019e23d83
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 9a8b29: linux-gen: pktin: use enqueue multi for dst_queue ...

2018-09-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 9a8b2903c4761b00e1223cdf64f2bf3a79060bd5
  
https://github.com/Linaro/odp/commit/9a8b2903c4761b00e1223cdf64f2bf3a79060bd5
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_packet_io.c

  Log Message:
  ---
  linux-gen: pktin: use enqueue multi for dst_queue packets

Packets with dst_queue set (e.g. from classifier) are sorted to
burst so that enqueue multi call can be used for better
performance.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: b7b947ed8562822aa88db1a67233e40ec4dfa812
  
https://github.com/Linaro/odp/commit/b7b947ed8562822aa88db1a67233e40ec4dfa812
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M test/validation/api/classification/odp_classification_test_pmr.c

  Log Message:
  ---
  validation: cls: multiple packet tcp dest port test

Change TCP dest port test to use multiple packets.
This is the first test to send / receive multiple packets
and use multiple queues simultaneously.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/945cc3e6aaba...b7b947ed8562
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] e887f5: linux-gen: config: print config file name

2018-09-28 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: e887f50f0fcbc18080b418d533487e47bdd9a9a3
  
https://github.com/Linaro/odp/commit/e887f50f0fcbc18080b418d533487e47bdd9a9a3
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_libconfig.c

  Log Message:
  ---
  linux-gen: config: print config file name

Print config file name for logging/debugging purposes. It's
relevant to know which (non default) config was used.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: f0611da0be1f4002c5f49933204451eafe4f0219
  
https://github.com/Linaro/odp/commit/f0611da0be1f4002c5f49933204451eafe4f0219
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/include/odp_libconfig_internal.h
M platform/linux-generic/odp_libconfig.c

  Log Message:
  ---
  linux-gen: config: add array lookup function

A function to lookup and copy an array of integers from
the config file.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: d6a88b032af4ad2720da360190153fc020d5d3f4
  
https://github.com/Linaro/odp/commit/d6a88b032af4ad2720da360190153fc020d5d3f4
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: per priority burst size configuration

Change burst size configuration to be per priority instead of
only two levels of control (high/low priority). Also maximum
burst size is configurable, so that application may request
a large burst of events without a worry that a large burst of
low priority events is received.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 945cc3e6aabaf39e619accba61277301520684f9
  
https://github.com/Linaro/odp/commit/945cc3e6aabaf39e619accba61277301520684f9
  Author: Petri Savolainen 
  Date:   2018-09-28 (Fri, 28 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: pack global data struct

Pack most commonly used global data into the first cache
line of the structure.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/b44cbbbfc148...945cc3e6aaba
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] b06b87: linux-gen: netmap: remove minimum frame len check

2018-09-19 Thread GitHub
  Branch: refs/heads/monarch_lts
  Home:   https://github.com/Linaro/odp
  Commit: b06b87af01c29544a46b7e25b20d099d4850148c
  
https://github.com/Linaro/odp/commit/b06b87af01c29544a46b7e25b20d099d4850148c
  Author: Juha-Matti Tilli 
  Date:   2018-09-19 (Wed, 19 Sep 2018)

  Changed paths:
M platform/linux-generic/pktio/netmap.c

  Log Message:
  ---
  linux-gen: netmap: remove minimum frame len check

Checking the minimum frame length is unnecessary as netmap drops truncated
frames internally.

Signed-off-by: Matias Elo 
Signed-off-by: Bill Fischofer 
Signed-off-by: Juha-Matti Tilli 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] b44cbb: helper: iplookuptable fix puting values to table

2018-09-13 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: b44cbbbfc148261843b041fbb5b4ea8f8879f44e
  
https://github.com/Linaro/odp/commit/b44cbbbfc148261843b041fbb5b4ea8f8879f44e
  Author: Maxim Uvarov 
  Date:   2018-09-13 (Thu, 13 Sep 2018)

  Changed paths:
M helper/iplookuptable.c

  Log Message:
  ---
  helper: iplookuptable fix puting values to table

On putting values to table we have to validate input data
and reject unaccepted data (cidr bits - Classless Inter-Domain
Routing is in range of 0 to 32).

Signed-off-by: Maxim Uvarov 
Reviewed-by: Bill Fischofer 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 6bcbd2: linux-gen: ipsec: fix sliding window shifts

2018-09-12 Thread GitHub
  Branch: refs/heads/tigermoth_lts
  Home:   https://github.com/Linaro/odp
  Commit: 6bcbd2be44c0a764e6ed995b2bb50ea265207795
  
https://github.com/Linaro/odp/commit/6bcbd2be44c0a764e6ed995b2bb50ea265207795
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_ipsec_sad.c

  Log Message:
  ---
  linux-gen: ipsec: fix sliding window shifts

If shift is greater than window bit-width, bit shift results in
undefined behaviour. Rewrite code to excplicitly set the mask in such
cases.
Fixes: https://bugs.linaro.org/show_bug.cgi?id=3999

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Janne Peltonen 
Signed-off-by: Maxim Uvarov 


  Commit: 487f052d596ea0c7c45de75738dcf418693a06dd
  
https://github.com/Linaro/odp/commit/487f052d596ea0c7c45de75738dcf418693a06dd
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_ipsec_sad.c

  Log Message:
  ---
  linux-gen: ipsec: reject SA creation with ESN flag set

Reject SA creation with ESN flag set.
Fixes: https://bugs.linaro.org/show_bug.cgi?id=4002

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/acebc12a2f2b...487f052d596e
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 461a16: linux-gen: ipsec: reject SA creation with ESN flag...

2018-09-12 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 461a16705242b1fd7e64b50fcaae57fce7cd7f79
  
https://github.com/Linaro/odp/commit/461a16705242b1fd7e64b50fcaae57fce7cd7f79
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_ipsec_sad.c

  Log Message:
  ---
  linux-gen: ipsec: reject SA creation with ESN flag set

Reject SA creation with ESN flag set.
Fixes: https://bugs.linaro.org/show_bug.cgi?id=4002

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] 94a499: linux-gen: ipsec: fix sliding window shifts

2018-09-12 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 94a4993ad85539f138178ba738b87d45ba09a1f9
  
https://github.com/Linaro/odp/commit/94a4993ad85539f138178ba738b87d45ba09a1f9
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_ipsec_sad.c

  Log Message:
  ---
  linux-gen: ipsec: fix sliding window shifts

If shift is greater than window bit-width, bit shift results in
undefined behaviour. Rewrite code to excplicitly set the mask in such
cases.
Fixes: https://bugs.linaro.org/show_bug.cgi?id=3999

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Janne Peltonen 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] c46f54: linux-gen: ishm: implement huge page cache

2018-09-12 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: c46f54d8c708d6335b0288ff4a5aad3a3b93e41c
  
https://github.com/Linaro/odp/commit/c46f54d8c708d6335b0288ff4a5aad3a3b93e41c
  Author: Josep Puigdemont 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/odp_ishm.c

  Log Message:
  ---
  linux-gen: ishm: implement huge page cache

With this patch, ODP will pre-allocate several huge pages at init
time. When memory is to be mapped into a huge page, one that was
pre-allocated will be used, if available, this way ODP won't have to
trap into the kernel to allocate huge pages.

The idea with this implementation is to trick ishm into thinking that
a file descriptor where to map the memory was provided, this way it
it won't try to allocate one itself. This file descriptor is one of
those previously allocated at init time. When the system is done with
this file descriptor, instead of closing it, it is put back into the
list of available huge pages, ready to be reused.

A collateral effect of this patch is that memory is not zeroed out
when it is reused.

WARNING: This patch will not work when using process mode threads.
For several reasons, this may not work when using ODP_ISHM_SINGLE_VA
either, so when this flag is set, the list of pre-allocated files is
not used.

By default ODP will not reserve any huge pages, to tell ODP to do that,
update the ODP configuration file with something like this:
shm: {
num_cached_hp = 32
}

Example usage:

$ echo odp.config
odp_implementation = "linux-generic"
config_file_version = "0.0.1"
shm: {
num_cached_hp = 32
}

$ ODP_CONFIG_FILE=odp.conf ./test/validation/api/shmem/shmem_main

This patch solves bug #3774:
https://bugs.linaro.org/show_bug.cgi?id=3774
Signed-off-by: Josep Puigdemont 
Reviewed-and-tested-by: Matias Elo 
Signed-off-by: Maxim Uvarov 


  Commit: c5789c8633254aca7e1d978d1e1f0ad7077e7e2c
  
https://github.com/Linaro/odp/commit/c5789c8633254aca7e1d978d1e1f0ad7077e7e2c
  Author: Josep Puigdemont 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M config/odp-linux-generic.conf
M platform/linux-generic/odp_ishm.c

  Log Message:
  ---
  linux-gen: ishm: make huge page cache size dynamic

Signed-off-by: Josep Puigdemont 
Reviewed-and-tested-by: Matias Elo 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/0b9a1a2e8334...c5789c863325
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] beece6: validation: time: fix c error

2018-09-12 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: beece6ec441455598b405c96672dad803bdeb04f
  
https://github.com/Linaro/odp/commit/beece6ec441455598b405c96672dad803bdeb04f
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M test/validation/api/time/time.c

  Log Message:
  ---
  validation: time: fix c error

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


  Commit: 379e29833c3ade07ffc5f41cf11aeee8bc15ae52
  
https://github.com/Linaro/odp/commit/379e29833c3ade07ffc5f41cf11aeee8bc15ae52
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: scheduler: print debug diagnostics on test_wait failure

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


  Commit: 90016dee6e905f2089266495fd29ec00d217c582
  
https://github.com/Linaro/odp/commit/90016dee6e905f2089266495fd29ec00d217c582
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M test/validation/api/time/time.c

  Log Message:
  ---
  validation: time: be more tolerant wrt delays

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


  Commit: 3c935f73096826f1ad837ef42ed377bbdffbdb4c
  
https://github.com/Linaro/odp/commit/3c935f73096826f1ad837ef42ed377bbdffbdb4c
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M test/validation/api/timer/timer.c

  Log Message:
  ---
  validation: timer: be more tolerant wrt delays

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


  Commit: 0b9a1a2e8334581126d4ece3fb4f9e019d88da0d
  
https://github.com/Linaro/odp/commit/0b9a1a2e8334581126d4ece3fb4f9e019d88da0d
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M test/validation/api/scheduler/scheduler.c

  Log Message:
  ---
  validation: scheduler: increase wait tolerance timeout to 150 msec

Signed-off-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/8e93d6504535...0b9a1a2e8334
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] e4a2c3: include: abi: set ODP_CACHE_LINE_SIZE to 128 on pp...

2018-09-12 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: e4a2c3e72e1c6fb6e6c6554971e4e01376b70034
  
https://github.com/Linaro/odp/commit/e4a2c3e72e1c6fb6e6c6554971e4e01376b70034
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M include/odp/arch/power64-linux/odp/api/abi/cpu.h

  Log Message:
  ---
  include: abi: set ODP_CACHE_LINE_SIZE to 128 on ppc64le

POWER8 has 128-byte cache lines

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 4b58f73b6f95501d7a6ad2c0b6cbdcb467644971
  
https://github.com/Linaro/odp/commit/4b58f73b6f95501d7a6ad2c0b6cbdcb467644971
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/arch/powerpc/odp/api/abi/cpu.h

  Log Message:
  ---
  linux-gen: abi: set ODP_CACHE_LINE_SIZE to 128 on ppc64le

POWER8 has 128-byte cache lines

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 8e93d650453505cf6a80154b83060e68dacc5fc9
  
https://github.com/Linaro/odp/commit/8e93d650453505cf6a80154b83060e68dacc5fc9
  Author: Dmitry Eremin-Solenikov 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/include/odp_packet_io_internal.h

  Log Message:
  ---
  linux-gen: fix pktio private size on 128-byte cache machines

Signed-off-by: Dmitry Eremin-Solenikov 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/42a46399f064...8e93d6504535
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp] db8c78: linux-gen: queue: remove extra checks

2018-09-12 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: db8c7882c2fc8c849cebef08e505343ae1396b79
  
https://github.com/Linaro/odp/commit/db8c7882c2fc8c849cebef08e505343ae1396b79
  Author: Petri Savolainen 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_queue_basic.c

  Log Message:
  ---
  linux-gen: queue: remove extra checks

Remove unnecessary checks from critical sections of scheduled
queue enqueue and dequeue operations. Parallelism improves when
the number of instructions and (potential) cache misses decreases
when holding the lock.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 3331e3b51dfcbfe8be5bc8c118cb8a2561294d60
  
https://github.com/Linaro/odp/commit/3331e3b51dfcbfe8be5bc8c118cb8a2561294d60
  Author: Petri Savolainen 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: clean up local data struct

Move stash variables into a struct. Use only 16 bits for thread id,
which is enough for 64k threads.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 2ba3fc5be07c77feaaffdaf7eb1bdd9f7c0f37c2
  
https://github.com/Linaro/odp/commit/2ba3fc5be07c77feaaffdaf7eb1bdd9f7c0f37c2
  Author: Petri Savolainen 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: single variable for sync context status

Use single thread local variable to keep track if
a synchronization context is held and the type of the context
(atomic or ordered). Performance is improved as sync context
status is located on single (the first) cache line of
sched_local_t.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 47c4ecd4bfdeeca0fd507dbb4f9182b36e5829f9
  
https://github.com/Linaro/odp/commit/47c4ecd4bfdeeca0fd507dbb4f9182b36e5829f9
  Author: Petri Savolainen 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/include/odp_queue_basic_internal.h
M platform/linux-generic/odp_queue_basic.c
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_iquery.c
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: sched: remove queue_destroy_finalize callback

Scheduled queue dequeue function calls directly the scheduler
queue destroy callback. Sched_queue_deq() usage is simpler
when the extra round of callbacks is removed.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 8ae6e015e8d73092b5c6b728fa39ff8190b88015
  
https://github.com/Linaro/odp/commit/8ae6e015e8d73092b5c6b728fa39ff8190b88015
  Author: Petri Savolainen 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_schedule_basic.c

  Log Message:
  ---
  linux-gen: sched: stash ring pointer

Save ring pointer into stash to avoid table lookups
when releasing the atomic context.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


  Commit: 42a46399f064212fc7a16f088779bee744d1241c
  
https://github.com/Linaro/odp/commit/42a46399f064212fc7a16f088779bee744d1241c
  Author: Petri Savolainen 
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
M platform/linux-generic/include/odp_ring_internal.h
M platform/linux-generic/odp_schedule_basic.c
M platform/linux-generic/odp_schedule_iquery.c
M platform/linux-generic/odp_schedule_sp.c

  Log Message:
  ---
  linux-gen: ring: change ring_deq return value

Return number of data values dequeued (0 or 1) instead of
the data value. This improves error tolerance as there's no
data value reserved to indicate empty ring. Also CPU may
speculate further before the actual data value is actually
needed.

Signed-off-by: Petri Savolainen 
Reviewed-by: Bill Fischofer 
Signed-off-by: Maxim Uvarov 


Compare: https://github.com/Linaro/odp/compare/1adfa2e17b27...42a46399f064
  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [PATCH v1 1/1] helper: iplookuptable fix puting values to table

2018-09-11 Thread Github ODP bot
From: Maxim Uvarov 

On putting values to table we have to validate input data
and reject unaccepted data.

Signed-off-by: Maxim Uvarov 
---
/** Email created from pull request 701 (muvarov:devel/master_iploopup)
 ** https://github.com/Linaro/odp/pull/701
 ** Patch: https://github.com/Linaro/odp/pull/701.patch
 ** Base sha: 1adfa2e17b27032ff31bd8f361e05970ce186148
 ** Merge commit sha: e0b5294f727aafbf91154ffe2a43a0736a1e6de3
 **/
 helper/iplookuptable.c | 18 ++
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c
index 61f634022..b0141c311 100644
--- a/helper/iplookuptable.c
+++ b/helper/iplookuptable.c
@@ -585,24 +585,25 @@ prefix_insert_into_lx(
odph_iplookup_table_impl *tbl, prefix_entry_t *entry,
uint8_t cidr, odp_buffer_t nexthop, uint8_t level)
 {
-   uint8_t ret = 0;
+   int ret = 0;
uint32_t i = 0, limit = (1 << (level - cidr));
prefix_entry_t *e = entry, *ne = NULL;
 
for (i = 0; i < limit; i++, e++) {
-   if (e->child == 1) {
-   if (e->cidr > cidr)
-   continue;
+   if (e->cidr > cidr)
+   continue;
 
+   if (e->child == 1) {
e->cidr = cidr;
/* push to next level */
ne = (prefix_entry_t *)e->ptr;
ret = prefix_insert_into_lx(
tbl, ne, cidr, nexthop, cidr + 8);
+   if (ret == -1)
+   return -1;
+   if (ret == 0)
+   return ret;
} else {
-   if (e->cidr > cidr)
-   continue;
-
e->child = 0;
e->cidr = cidr;
e->nexthop = nexthop;
@@ -678,8 +679,9 @@ odph_iplookup_table_put_value(odph_table_t tbl, void *key, 
void *value)
 
nexthop = *((odp_buffer_t *)value);
 
-   if (prefix->cidr == 0)
+   if (prefix->cidr == 0 || prefix->cidr == 255)
return -1;
+
prefix->ip = prefix->ip & (0x << (IP_LENGTH - prefix->cidr));
 
/* insert into trie */



[lng-odp] [PATCH v1 0/1] helper: iplookuptable fix puting values to table

2018-09-11 Thread Github ODP bot
On putting values to table we have to validate input data
and reject unaccepted data.
Signed-off-by: Maxim Uvarov maxim.uva...@linaro.org

github
/** Email created from pull request 701 (muvarov:devel/master_iploopup)
 ** https://github.com/Linaro/odp/pull/701
 ** Patch: https://github.com/Linaro/odp/pull/701.patch
 ** Base sha: 1adfa2e17b27032ff31bd8f361e05970ce186148
 ** Merge commit sha: e0b5294f727aafbf91154ffe2a43a0736a1e6de3
 **/
/github

checkpatch.pl
total: 0 errors, 0 warnings, 0 checks, 42 lines checked


to_send-p-000.patch has no obvious style problems and is ready for submission.
/checkpatch.pl


[lng-odp] [Linaro/odp] 1adfa2: linux-gen: shm: fix wrong spelling

2018-09-11 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/Linaro/odp
  Commit: 1adfa2e17b27032ff31bd8f361e05970ce186148
  
https://github.com/Linaro/odp/commit/1adfa2e17b27032ff31bd8f361e05970ce186148
  Author: Seungha Son 
  Date:   2018-09-11 (Tue, 11 Sep 2018)

  Changed paths:
M platform/linux-generic/odp_ishm.c

  Log Message:
  ---
  linux-gen: shm: fix wrong spelling

Signed-off-by: Seungha Son 
Reviewed-by: Dmitry Eremin-Solenikov 
Signed-off-by: Maxim Uvarov 



  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [Linaro/odp]

2018-09-11 Thread GitHub
  Branch: refs/heads/devel/master_iploopup
  Home:   https://github.com/Linaro/odp

  **NOTE:** This service has been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.


[lng-odp] [PATCH v5 0/2] linux-gen: ishm: implement huge page cache

2018-09-11 Thread Github ODP bot
With this patch, ODP will pre-allocate several huge pages at init
time. When memory is to be mapped into a huge page, one that was
pre-allocated will be used, if available, this way ODP won't have to
trap into the kernel to allocate huge pages.
The idea with this implementation is to trick ishm into thinking that
a file descriptor where to map the memory was provided, this way it
it won't try to allocate one itself. This file descriptor is one of
those previously allocated at init time. When the system is done with
this file descriptor, instead of closing it, it is put back into the
list of available huge pages, ready to be reused.
A collateral effect of this patch is that memory is not zeroed out
when it is reused.
WARNING: This patch will not work when using process mode threads.
For several reasons, this may not work when using ODP_ISHM_SINGLE_VA
either, so for this case the list of pre-allocated files is not used.
This patch should mitigate, if not solve, bug #3774:
https://bugs.linaro.org/show_bug.cgi?id=3774
To pre-allocate huge pages, define the environment variable
ODP_HP_CACHE, and possibly set it to the number of huge pages that
should be pre-allocated, setting it to -1 will reserve up to 32 huge
pages, which is currently a hard-coded limit.
example usage:
ODP_HP_CACHE=-1 ./test/validation/api/shmem/shmem_main
Signed-off-by: Josep Puigdemont josep.puigdem...@linaro.org

github
/** Email created from pull request 685 (joseppc:fix/cache_huge_pages)
 ** https://github.com/Linaro/odp/pull/685
 ** Patch: https://github.com/Linaro/odp/pull/685.patch
 ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508
 ** Merge commit sha: 9826130fb2849a5c4088572ca285b00e358be707
 **/
/github

checkpatch.pl
total: 0 errors, 0 warnings, 0 checks, 309 lines checked


to_send-p-000.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 0 checks, 159 lines checked


to_send-p-001.patch has no obvious style problems and is ready for submission.
/checkpatch.pl


[lng-odp] [PATCH v5 2/2] linux-gen: ishm: make huge page cache size dynamic

2018-09-11 Thread Github ODP bot
From: Josep Puigdemont 

Signed-off-by: Josep Puigdemont 
---
/** Email created from pull request 685 (joseppc:fix/cache_huge_pages)
 ** https://github.com/Linaro/odp/pull/685
 ** Patch: https://github.com/Linaro/odp/pull/685.patch
 ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508
 ** Merge commit sha: 9826130fb2849a5c4088572ca285b00e358be707
 **/
 config/odp-linux-generic.conf | 16 ---
 platform/linux-generic/odp_ishm.c | 73 +++
 2 files changed, 56 insertions(+), 33 deletions(-)

diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf
index 0dd2a6c13..bddc92dd4 100644
--- a/config/odp-linux-generic.conf
+++ b/config/odp-linux-generic.conf
@@ -18,14 +18,20 @@
 odp_implementation = "linux-generic"
 config_file_version = "0.0.1"
 
-# Internal shared memory allocator
+# Shared memory options
 shm: {
-   # ODP will try to reserve as many huge pages as the number indicated
-   # here, up to 64. A zero value means that no pages should be reserved.
+   # Number of cached default size huge pages. These pages are allocated
+   # during odp_init_global() and freed back to the kernel in
+   # odp_term_global(). A value of zero means no pages are cached.
+   # No negative values should be used here, they are reserved for future
+   # implementations.
+   #
+   # ODP will reserve as many huge pages as possible, which may be less
+   # than requested here if the system does not have enough huge pages
+   # available.
+   #
# When using process mode threads, this value should be set to 0
# because the current implementation won't work properly otherwise.
-   # These pages will only be freed when the application calls
-   # odp_term_global().
num_cached_hp = 0
 }
 
diff --git a/platform/linux-generic/odp_ishm.c 
b/platform/linux-generic/odp_ishm.c
index aeda50bec..11fbe8ef0 100644
--- a/platform/linux-generic/odp_ishm.c
+++ b/platform/linux-generic/odp_ishm.c
@@ -239,15 +239,15 @@ typedef struct {
 } ishm_ftable_t;
 static ishm_ftable_t *ishm_ftbl;
 
-#define HP_CACHE_SIZE 64
 struct huge_page_cache {
uint64_t len;
+   int max_fds; /* maximum amount requested of pre-allocated huge pages */
int total;   /* amount of actually pre-allocated huge pages */
int idx; /* retrieve fd[idx] to get a free file descriptor */
-   int fd[HP_CACHE_SIZE]; /* list of file descriptors */
+   int fd[];/* list of file descriptors */
 };
 
-static struct huge_page_cache hpc;
+static struct huge_page_cache *hpc;
 
 #ifndef MAP_ANONYMOUS
 #define MAP_ANONYMOUS MAP_ANON
@@ -301,19 +301,14 @@ static void hp_init(void)
char filename[ISHM_FILENAME_MAXLEN];
char dir[ISHM_FILENAME_MAXLEN];
int count;
-
-   hpc.total = 0;
-   hpc.idx = -1;
-   hpc.len = odp_sys_huge_page_size();
+   void *addr;
 
if (!_odp_libconfig_lookup_ext_int("shm", NULL, "num_cached_hp",
   )) {
return;
}
 
-   if (count > HP_CACHE_SIZE)
-   count = HP_CACHE_SIZE;
-   else if (count <= 0)
+   if (count <= 0)
return;
 
ODP_DBG("Init HP cache with up to %d pages\n", count);
@@ -339,55 +334,77 @@ static void hp_init(void)
 dir,
 odp_global_data.main_pid);
 
+   addr = mmap(NULL,
+   sizeof(struct huge_page_cache) + sizeof(int) * count,
+   PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
+   if (addr == MAP_FAILED) {
+   ODP_ERR("Unable to mmap memory for huge page cache\n.");
+   return;
+   }
+
+   hpc = addr;
+
+   hpc->max_fds = count;
+   hpc->total = 0;
+   hpc->idx = -1;
+   hpc->len = odp_sys_huge_page_size();
+
for (int i = 0; i < count; ++i) {
int fd;
 
-   fd = hp_create_file(hpc.len, filename);
-   if (fd == -1)
+   fd = hp_create_file(hpc->len, filename);
+   if (fd == -1) {
+   do {
+   hpc->fd[i++] = -1;
+   } while (i < count);
break;
-   hpc.total++;
-   hpc.fd[i] = fd;
+   }
+   hpc->total++;
+   hpc->fd[i] = fd;
}
-   hpc.idx = hpc.total - 1;
+   hpc->idx = hpc->total - 1;
 
ODP_DBG("HP cache has %d huge pages of size 0x%08" PRIx64 "\n",
-   hpc.total, hpc.len);
+   hpc->total, hpc->len);
 }
 
 static void hp_term(void)
 {
-   for (int i = 0; i < hpc.total; i++) {
-   if (hpc.fd[i] != -1)
-   close(hpc.fd[i]);
+   if (NULL == hpc)
+   return;
+
+   for (int i = 0; i < hpc->total; i++) {
+   if (hpc->fd[i] != -1)
+   close(hpc->fd[i]);

[lng-odp] [PATCH v5 1/2] linux-gen: ishm: implement huge page cache

2018-09-11 Thread Github ODP bot
From: Josep Puigdemont 

With this patch, ODP will pre-allocate several huge pages at init
time. When memory is to be mapped into a huge page, one that was
pre-allocated will be used, if available, this way ODP won't have to
trap into the kernel to allocate huge pages.

The idea with this implementation is to trick ishm into thinking that
a file descriptor where to map the memory was provided, this way it
it won't try to allocate one itself. This file descriptor is one of
those previously allocated at init time. When the system is done with
this file descriptor, instead of closing it, it is put back into the
list of available huge pages, ready to be reused.

A collateral effect of this patch is that memory is not zeroed out
when it is reused.

WARNING: This patch will not work when using process mode threads.
For several reasons, this may not work when using ODP_ISHM_SINGLE_VA
either, so when this flag is set, the list of pre-allocated files is
not used.

By default ODP will not reserve any huge pages, to tell ODP to do that,
update the ODP configuration file with something like this:
shm: {
num_cached_hp = 32
}

Example usage:

$ echo odp.config
odp_implementation = "linux-generic"
config_file_version = "0.0.1"
shm: {
num_cached_hp = 32
}

$ ODP_CONFIG_FILE=odp.conf ./test/validation/api/shmem/shmem_main

This patch solves bug #3774:
https://bugs.linaro.org/show_bug.cgi?id=3774

Signed-off-by: Josep Puigdemont 
---
/** Email created from pull request 685 (joseppc:fix/cache_huge_pages)
 ** https://github.com/Linaro/odp/pull/685
 ** Patch: https://github.com/Linaro/odp/pull/685.patch
 ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508
 ** Merge commit sha: 9826130fb2849a5c4088572ca285b00e358be707
 **/
 config/odp-linux-generic.conf |  11 ++
 platform/linux-generic/odp_ishm.c | 218 --
 2 files changed, 215 insertions(+), 14 deletions(-)

diff --git a/config/odp-linux-generic.conf b/config/odp-linux-generic.conf
index 85d5414ba..0dd2a6c13 100644
--- a/config/odp-linux-generic.conf
+++ b/config/odp-linux-generic.conf
@@ -18,6 +18,17 @@
 odp_implementation = "linux-generic"
 config_file_version = "0.0.1"
 
+# Internal shared memory allocator
+shm: {
+   # ODP will try to reserve as many huge pages as the number indicated
+   # here, up to 64. A zero value means that no pages should be reserved.
+   # When using process mode threads, this value should be set to 0
+   # because the current implementation won't work properly otherwise.
+   # These pages will only be freed when the application calls
+   # odp_term_global().
+   num_cached_hp = 0
+}
+
 # DPDK pktio options
 pktio_dpdk: {
# Default options
diff --git a/platform/linux-generic/odp_ishm.c 
b/platform/linux-generic/odp_ishm.c
index 59d1fe534..aeda50bec 100644
--- a/platform/linux-generic/odp_ishm.c
+++ b/platform/linux-generic/odp_ishm.c
@@ -63,6 +63,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -164,7 +165,7 @@ typedef struct ishm_fragment {
  * will allocate both a block and a fragment.
  * Blocks contain only global data common to all processes.
  */
-typedef enum {UNKNOWN, HUGE, NORMAL, EXTERNAL} huge_flag_t;
+typedef enum {UNKNOWN, HUGE, NORMAL, EXTERNAL, CACHED} huge_flag_t;
 typedef struct ishm_block {
char name[ISHM_NAME_MAXLEN];/* name for the ishm block (if any) */
char filename[ISHM_FILENAME_MAXLEN]; /* name of the .../odp-* file  */
@@ -238,6 +239,16 @@ typedef struct {
 } ishm_ftable_t;
 static ishm_ftable_t *ishm_ftbl;
 
+#define HP_CACHE_SIZE 64
+struct huge_page_cache {
+   uint64_t len;
+   int total;   /* amount of actually pre-allocated huge pages */
+   int idx; /* retrieve fd[idx] to get a free file descriptor */
+   int fd[HP_CACHE_SIZE]; /* list of file descriptors */
+};
+
+static struct huge_page_cache hpc;
+
 #ifndef MAP_ANONYMOUS
 #define MAP_ANONYMOUS MAP_ANON
 #endif
@@ -245,6 +256,142 @@ static ishm_ftable_t *ishm_ftbl;
 /* prototypes: */
 static void procsync(void);
 
+static int hp_create_file(uint64_t len, const char *filename)
+{
+   int fd;
+   void *addr;
+
+   if (len <= 0) {
+   ODP_ERR("Length is wrong\n");
+   return -1;
+   }
+
+   fd = open(filename, O_RDWR | O_CREAT | O_TRUNC,
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+   if (fd < 0) {
+   ODP_ERR("Could not create cache file %s\n", filename);
+   return -1;
+   }
+
+   /* remove file from file system */
+   unlink(filename);
+
+   if (ftruncate(fd, len) == -1) {
+   ODP_ERR("Could not truncate file: %s\n", strerror(errno));
+   close(fd);
+   return -1;
+   }
+
+   /* commit huge page */
+   addr = _odp_ishmphy_map(fd, NULL, len, 0);
+   if (addr == NULL) {
+   /* no more pages available */
+   close(fd);
+   return 

[lng-odp] [PATCH v1 6/6] linux-gen: ring: change ring_deq return value

2018-09-11 Thread Github ODP bot
From: Petri Savolainen 

Return number of data values dequeued (0 or 1) instead of
the data value. This improves error tolerance as there's no
data value reserved to indicate empty ring. Also CPU may
speculate further before the actual data value is actually
needed.

Signed-off-by: Petri Savolainen 
---
/** Email created from pull request 699 (psavol:master-sched-optim-clean-ups)
 ** https://github.com/Linaro/odp/pull/699
 ** Patch: https://github.com/Linaro/odp/pull/699.patch
 ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508
 ** Merge commit sha: 32d7a11f22e6f2e1e378b653993c5377d4116d8f
 **/
 platform/linux-generic/include/odp_ring_internal.h | 10 --
 platform/linux-generic/odp_schedule_basic.c|  8 +++-
 platform/linux-generic/odp_schedule_iquery.c   |  5 ++---
 platform/linux-generic/odp_schedule_sp.c   |  3 +--
 4 files changed, 10 insertions(+), 16 deletions(-)

diff --git a/platform/linux-generic/include/odp_ring_internal.h 
b/platform/linux-generic/include/odp_ring_internal.h
index 97673bef4..9a637afb3 100644
--- a/platform/linux-generic/include/odp_ring_internal.h
+++ b/platform/linux-generic/include/odp_ring_internal.h
@@ -18,9 +18,6 @@ extern "C" {
 #include 
 #include 
 
-/* Ring empty, not a valid data value. */
-#define RING_EMPTY ((uint32_t)-1)
-
 /* Ring of uint32_t data
  *
  * Ring stores head and tail counters. Ring indexes are formed from these
@@ -59,7 +56,7 @@ static inline void ring_init(ring_t *ring)
 }
 
 /* Dequeue data from the ring head */
-static inline uint32_t ring_deq(ring_t *ring, uint32_t mask)
+static inline uint32_t ring_deq(ring_t *ring, uint32_t mask, uint32_t *data)
 {
uint32_t head, tail, new_head;
 
@@ -73,7 +70,7 @@ static inline uint32_t ring_deq(ring_t *ring, uint32_t mask)
tail = odp_atomic_load_acq_u32(>w_tail);
 
if (head == tail)
-   return RING_EMPTY;
+   return 0;
 
new_head = head + 1;
 
@@ -83,7 +80,8 @@ static inline uint32_t ring_deq(ring_t *ring, uint32_t mask)
 
/* Read data. CAS acquire-release ensures that data read
 * does not move above from here. */
-   return ring->data[new_head & mask];
+   *data = ring->data[new_head & mask];
+   return 1;
 }
 
 /* Dequeue multiple data from the ring head. Num is smaller than ring size. */
diff --git a/platform/linux-generic/odp_schedule_basic.c 
b/platform/linux-generic/odp_schedule_basic.c
index 77fee74dd..a285edc3c 100644
--- a/platform/linux-generic/odp_schedule_basic.c
+++ b/platform/linux-generic/odp_schedule_basic.c
@@ -416,8 +416,7 @@ static int schedule_term_global(void)
ring_t *ring = >prio_q[grp][i][j].ring;
uint32_t qi;
 
-   while ((qi = ring_deq(ring, ring_mask)) !=
-  RING_EMPTY) {
+   while (ring_deq(ring, ring_mask, )) {
odp_event_t events[1];
int num;
 
@@ -907,10 +906,9 @@ static inline int do_schedule_grp(odp_queue_t *out_queue, 
odp_event_t out_ev[],
 
/* Get queue index from the priority queue */
ring = >prio_q[grp][prio][id].ring;
-   qi   = ring_deq(ring, ring_mask);
 
-   /* Priority queue empty */
-   if (qi == RING_EMPTY) {
+   if (ring_deq(ring, ring_mask, ) == 0) {
+   /* Priority queue empty */
i++;
id++;
continue;
diff --git a/platform/linux-generic/odp_schedule_iquery.c 
b/platform/linux-generic/odp_schedule_iquery.c
index f76942ff3..e1ef10c46 100644
--- a/platform/linux-generic/odp_schedule_iquery.c
+++ b/platform/linux-generic/odp_schedule_iquery.c
@@ -271,7 +271,7 @@ static int schedule_init_global(void)
ring_init(>ring);
 
for (k = 0; k < PKTIO_RING_SIZE; k++)
-   queue->cmd_index[k] = RING_EMPTY;
+   queue->cmd_index[k] = -1;
}
 
for (i = 0; i < NUM_PKTIO_CMD; i++)
@@ -668,9 +668,8 @@ static inline void pktio_poll_input(void)
for (i = 0; i < PKTIO_CMD_QUEUES; i++,
 hash = (hash + 1) % PKTIO_CMD_QUEUES) {
ring = >pktio_poll.queues[hash].ring;
-   index = ring_deq(ring, PKTIO_RING_MASK);
 
-   if (odp_unlikely(index == RING_EMPTY))
+   if (odp_unlikely(ring_deq(ring, PKTIO_RING_MASK, ) == 0))
continue;
 
cmd = >pktio_poll.commands[index];
diff --git a/platform/linux-generic/odp_schedule_sp.c 
b/platform/linux-generic/odp_schedule_sp.c
index 8ddd1e94e..6b9431b69 100644
--- a/platform/linux-generic/odp_schedule_sp.c
+++ 

[lng-odp] [PATCH v1 5/6] linux-gen: sched: stash ring pointer

2018-09-11 Thread Github ODP bot
From: Petri Savolainen 

Save ring pointer into stash to avoid table lookups
when releasing the atomic context.

Signed-off-by: Petri Savolainen 
---
/** Email created from pull request 699 (psavol:master-sched-optim-clean-ups)
 ** https://github.com/Linaro/odp/pull/699
 ** Patch: https://github.com/Linaro/odp/pull/699.patch
 ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508
 ** Merge commit sha: 32d7a11f22e6f2e1e378b653993c5377d4116d8f
 **/
 platform/linux-generic/odp_schedule_basic.c | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/platform/linux-generic/odp_schedule_basic.c 
b/platform/linux-generic/odp_schedule_basic.c
index 6ed1f8b49..77fee74dd 100644
--- a/platform/linux-generic/odp_schedule_basic.c
+++ b/platform/linux-generic/odp_schedule_basic.c
@@ -137,6 +137,7 @@ typedef struct ODP_ALIGNED_CACHE {
uint16_tev_index;
uint32_tqi;
odp_queue_t queue;
+   ring_t  *ring;
odp_event_t ev[BURST_SIZE_MAX];
} stash;
 
@@ -604,10 +605,7 @@ static void schedule_pktio_start(int pktio_index, int 
num_pktin,
 static inline void release_atomic(void)
 {
uint32_t qi  = sched_local.stash.qi;
-   int grp  = sched->queue[qi].grp;
-   int prio = sched->queue[qi].prio;
-   int spread   = sched->queue[qi].spread;
-   ring_t *ring = >prio_q[grp][prio][spread].ring;
+   ring_t *ring = sched_local.stash.ring;
 
/* Release current atomic queue */
ring_enq(ring, sched->ring_mask, qi);
@@ -990,8 +988,9 @@ static inline int do_schedule_grp(odp_queue_t *out_queue, 
odp_event_t out_ev[],
 
} else if (sync_ctx == ODP_SCHED_SYNC_ATOMIC) {
/* Hold queue during atomic access */
-   sched_local.stash.qi = qi;
-   sched_local.sync_ctx = sync_ctx;
+   sched_local.stash.qi   = qi;
+   sched_local.stash.ring = ring;
+   sched_local.sync_ctx   = sync_ctx;
} else {
/* Continue scheduling the queue */
ring_enq(ring, ring_mask, qi);



[lng-odp] [PATCH v1 4/6] linux-gen: sched: remove queue_destroy_finalize callback

2018-09-11 Thread Github ODP bot
From: Petri Savolainen 

Scheduled queue dequeue function calls directly the scheduler
queue destroy callback. Sched_queue_deq() usage is simpler
when the extra round of callbacks is removed.

Signed-off-by: Petri Savolainen 
---
/** Email created from pull request 699 (psavol:master-sched-optim-clean-ups)
 ** https://github.com/Linaro/odp/pull/699
 ** Patch: https://github.com/Linaro/odp/pull/699.patch
 ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508
 ** Merge commit sha: 32d7a11f22e6f2e1e378b653993c5377d4116d8f
 **/
 .../include/odp_queue_basic_internal.h|  1 -
 platform/linux-generic/odp_queue_basic.c  | 20 +++--
 platform/linux-generic/odp_schedule_basic.c   | 11 +
 platform/linux-generic/odp_schedule_iquery.c  | 35 +++
 platform/linux-generic/odp_schedule_sp.c  | 43 ++-
 5 files changed, 47 insertions(+), 63 deletions(-)

diff --git a/platform/linux-generic/include/odp_queue_basic_internal.h 
b/platform/linux-generic/include/odp_queue_basic_internal.h
index 46b747955..41ca424c7 100644
--- a/platform/linux-generic/include/odp_queue_basic_internal.h
+++ b/platform/linux-generic/include/odp_queue_basic_internal.h
@@ -113,7 +113,6 @@ static inline queue_entry_t *qentry_from_handle(odp_queue_t 
handle)
 void queue_spsc_init(queue_entry_t *queue, uint32_t queue_size);
 
 /* Functions for schedulers */
-void sched_queue_destroy_finalize(uint32_t queue_index);
 void sched_queue_set_status(uint32_t queue_index, int status);
 int sched_queue_deq(uint32_t queue_index, odp_event_t ev[], int num,
int update_status);
diff --git a/platform/linux-generic/odp_queue_basic.c 
b/platform/linux-generic/odp_queue_basic.c
index 61cf8a56c..3f00cc118 100644
--- a/platform/linux-generic/odp_queue_basic.c
+++ b/platform/linux-generic/odp_queue_basic.c
@@ -353,19 +353,6 @@ static odp_queue_t queue_create(const char *name,
return handle;
 }
 
-void sched_queue_destroy_finalize(uint32_t queue_index)
-{
-   queue_entry_t *queue = qentry_from_index(queue_index);
-
-   LOCK(queue);
-
-   if (queue->s.status == QUEUE_STATUS_DESTROYED) {
-   queue->s.status = QUEUE_STATUS_FREE;
-   sched_fn->destroy_queue(queue_index);
-   }
-   UNLOCK(queue);
-}
-
 void sched_queue_set_status(uint32_t queue_index, int status)
 {
queue_entry_t *queue = qentry_from_index(queue_index);
@@ -720,7 +707,12 @@ int sched_queue_deq(uint32_t queue_index, odp_event_t 
ev[], int max_num,
 
if (odp_unlikely(status < QUEUE_STATUS_READY)) {
/* Bad queue, or queue has been destroyed.
-* Scheduler finalizes queue destroy after this. */
+* Inform scheduler about a destroyed queue. */
+   if (queue->s.status == QUEUE_STATUS_DESTROYED) {
+   queue->s.status = QUEUE_STATUS_FREE;
+   sched_fn->destroy_queue(queue_index);
+   }
+
UNLOCK(queue);
return -1;
}
diff --git a/platform/linux-generic/odp_schedule_basic.c 
b/platform/linux-generic/odp_schedule_basic.c
index 46ae7f1c1..6ed1f8b49 100644
--- a/platform/linux-generic/odp_schedule_basic.c
+++ b/platform/linux-generic/odp_schedule_basic.c
@@ -402,11 +402,6 @@ static int schedule_init_global(void)
return 0;
 }
 
-static inline void queue_destroy_finalize(uint32_t qi)
-{
-   sched_queue_destroy_finalize(qi);
-}
-
 static int schedule_term_global(void)
 {
int ret = 0;
@@ -427,9 +422,6 @@ static int schedule_term_global(void)
 
num = sched_queue_deq(qi, events, 1, 1);
 
-   if (num < 0)
-   queue_destroy_finalize(qi);
-
if (num > 0)
ODP_ERR("Queue not empty\n");
}
@@ -944,10 +936,9 @@ static inline int do_schedule_grp(odp_queue_t *out_queue, 
odp_event_t out_ev[],
 
num = sched_queue_deq(qi, ev_tbl, max_deq, !pktin);
 
-   if (num < 0) {
+   if (odp_unlikely(num < 0)) {
/* Destroyed queue. Continue scheduling the same
 * priority queue. */
-   sched_queue_destroy_finalize(qi);
continue;
}
 
diff --git a/platform/linux-generic/odp_schedule_iquery.c 
b/platform/linux-generic/odp_schedule_iquery.c
index 7dde77844..f76942ff3 100644
--- a/platform/linux-generic/odp_schedule_iquery.c
+++ b/platform/linux-generic/odp_schedule_iquery.c
@@ -209,6 +209,7 @@ struct sched_thread_local {
 * in the same priority level.
 */
odp_rwlock_t lock;
+   int r_locked;
queue_index_sparse_t indexes[NUM_SCHED_PRIO];
sparse_bitmap_iterator_t 

[lng-odp] [PATCH v1 2/6] linux-gen: sched: clean up local data struct

2018-09-11 Thread Github ODP bot
From: Petri Savolainen 

Move stash variables into a struct. Use only 16 bits for thread id,
which is enough for 64k threads.

Signed-off-by: Petri Savolainen 
---
/** Email created from pull request 699 (psavol:master-sched-optim-clean-ups)
 ** https://github.com/Linaro/odp/pull/699
 ** Patch: https://github.com/Linaro/odp/pull/699.patch
 ** Base sha: 33fbc04b6373960ec3f84de4e7e7b34c49d71508
 ** Merge commit sha: 32d7a11f22e6f2e1e378b653993c5377d4116d8f
 **/
 platform/linux-generic/odp_schedule_basic.c | 62 -
 1 file changed, 35 insertions(+), 27 deletions(-)

diff --git a/platform/linux-generic/odp_schedule_basic.c 
b/platform/linux-generic/odp_schedule_basic.c
index e329a8e8c..89c0a5c42 100644
--- a/platform/linux-generic/odp_schedule_basic.c
+++ b/platform/linux-generic/odp_schedule_basic.c
@@ -84,6 +84,10 @@ ODP_STATIC_ASSERT(CHECK_IS_POWER2(ODP_CONFIG_QUEUES),
 ODP_STATIC_ASSERT(CHECK_IS_POWER2(MAX_RING_SIZE),
  "Ring_size_is_not_power_of_two");
 
+/* Thread ID is saved into uint16_t variable */
+ODP_STATIC_ASSERT(ODP_THREAD_COUNT_MAX < (64 * 1024),
+ "Max_64k_threads_supported");
+
 /* Mask of queues per priority */
 typedef uint8_t pri_mask_t;
 
@@ -118,19 +122,22 @@ ODP_STATIC_ASSERT(sizeof(lock_called_t) == 
sizeof(uint32_t),
  "Lock_called_values_do_not_fit_in_uint32");
 
 /* Scheduler local data */
-typedef struct {
-   int thr;
-   uint16_t stash_num;
-   uint16_t stash_index;
+typedef struct ODP_ALIGNED_CACHE {
+   uint16_t thr;
+   uint16_t pause;
uint16_t grp_round;
uint16_t spread_round;
-   uint32_t stash_qi;
-   odp_queue_t stash_queue;
-   odp_event_t stash_ev[BURST_SIZE_MAX];
+
+   struct {
+   uint16_tnum_ev;
+   uint16_tev_index;
+   uint32_tqi;
+   odp_queue_t queue;
+   odp_event_t ev[BURST_SIZE_MAX];
+   } stash;
 
uint32_t grp_epoch;
uint16_t num_grp;
-   uint16_t pause;
uint8_t grp[NUM_SCHED_GRPS];
uint8_t spread_tbl[SPREAD_TBL_SIZE];
uint8_t grp_weight[GRP_WEIGHT_TBL_SIZE];
@@ -304,8 +311,8 @@ static void sched_local_init(void)
memset(_local, 0, sizeof(sched_local_t));
 
sched_local.thr = odp_thread_id();
-   sched_local.stash_queue = ODP_QUEUE_INVALID;
-   sched_local.stash_qi= PRIO_QUEUE_EMPTY;
+   sched_local.stash.queue = ODP_QUEUE_INVALID;
+   sched_local.stash.qi= PRIO_QUEUE_EMPTY;
sched_local.ordered.src_queue = NULL_INDEX;
 
spread = prio_spread_index(sched_local.thr);
@@ -445,7 +452,7 @@ static int schedule_init_local(void)
 
 static int schedule_term_local(void)
 {
-   if (sched_local.stash_num) {
+   if (sched_local.stash.num_ev) {
ODP_ERR("Locally pre-scheduled events exist.\n");
return -1;
}
@@ -618,9 +625,9 @@ static void schedule_pktio_start(int pktio_index, int 
num_pktin,
 
 static void schedule_release_atomic(void)
 {
-   uint32_t qi = sched_local.stash_qi;
+   uint32_t qi = sched_local.stash.qi;
 
-   if (qi != PRIO_QUEUE_EMPTY && sched_local.stash_num  == 0) {
+   if (qi != PRIO_QUEUE_EMPTY && sched_local.stash.num_ev  == 0) {
int grp  = sched->queue[qi].grp;
int prio = sched->queue[qi].prio;
int spread   = sched->queue[qi].spread;
@@ -629,7 +636,7 @@ static void schedule_release_atomic(void)
/* Release current atomic queue */
ring_enq(ring, sched->ring_mask, qi);
 
-   sched_local.stash_qi = PRIO_QUEUE_EMPTY;
+   sched_local.stash.qi = PRIO_QUEUE_EMPTY;
}
 }
 
@@ -717,7 +724,8 @@ static void schedule_release_ordered(void)
 
queue_index = sched_local.ordered.src_queue;
 
-   if (odp_unlikely((queue_index == NULL_INDEX) || sched_local.stash_num))
+   if (odp_unlikely((queue_index == NULL_INDEX) ||
+sched_local.stash.num_ev))
return;
 
release_ordered();
@@ -735,10 +743,10 @@ static inline int copy_from_stash(odp_event_t out_ev[], 
unsigned int max)
 {
int i = 0;
 
-   while (sched_local.stash_num && max) {
-   out_ev[i] = sched_local.stash_ev[sched_local.stash_index];
-   sched_local.stash_index++;
-   sched_local.stash_num--;
+   while (sched_local.stash.num_ev && max) {
+   out_ev[i] = sched_local.stash.ev[sched_local.stash.ev_index];
+   sched_local.stash.ev_index++;
+   sched_local.stash.num_ev--;
max--;
i++;
}
@@ -889,7 +897,7 @@ static inline int do_schedule_grp(odp_queue_t *out_queue, 
odp_event_t out_ev[],
int pktin;
unsigned int max_deq = max_burst;
int stashed = 1;
-   odp_event_t *ev_tbl = 

  1   2   3   4   5   6   7   8   9   10   >