[lng-odp] [PATCH v1 3/7] build: change order of subdirectories

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Descend into examples after building/running tests. It is quite logical that first we build validation & performance tests, then we build platform tests, helper tests and only after that descend into examples. Signed-off-by:

[lng-odp] [PATCH v1 2/7] example: generator: skip execution on unsupported platforms

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov null: pktio class is not a part of ABI, so it might be unsupported on some of platforms. Add condition guarding execution of this example only on supported platforms. Signed-off-by: Dmitry Eremin-Solenikov

[lng-odp] [PATCH v1 7/7] validation: move pktio test to api/ dir

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch:

[lng-odp] [PATCH v1 6/7] validation: move traffic_mngr test to api/ dir

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch:

[lng-odp] [PATCH v1 4/7] validation: init: remove "library" file

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Split init.c/init.h files into individual tests, simplifying setup. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) **

[lng-odp] [PATCH v1 5/7] validation: move most of tests to common directory

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov There is little benefit from keeping each test in it's own subdirectory. It just slows down build process. Move most of the tests to just api/ diretory to be built in parallel. Signed-off-by: Dmitry Eremin-Solenikov

[lng-odp] [PATCH v2 6/7] validation: move traffic_mngr test to api/ dir

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch:

[lng-odp] [PATCH v2 0/10] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Optimize queues and scheduling with a ring based implementation. Ring operations are not atomic and behind locks. Scheduler throughput improves in L2fwd test about 30%. Buffer header gets smaller and not related to burst size, which has positive impact to direct mode pktio throughput also.

[lng-odp] [PATCH v2 8/10] linux-gen: queue: simplify lock macro usage

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Use queue entry pointer as macro parameter instead of lock pointer. Signed-off-by: Petri Savolainen --- /** Email created from pull request 492 (psavol:master-sched-optim) **

[lng-odp] [PATCH v2 1/7] Revert "example: generator move to platform tests"

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov This reverts commit 5a58bbf2bb331fd7dde2ebbc0430634ace6900fb. Don't make platform tests depend on examples. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496

[lng-odp] [PATCH v2 2/10] linux-gen: ring_st: ring for single thread usage

2018-02-22 Thread Github ODP bot
From: Petri Savolainen This ring can be used as simple FIFO when enqueue / dequeue operation synchronization is not needed, or synchronization is provided by an upper layer already. Signed-off-by: Petri Savolainen --- /** Email created

[lng-odp] [PATCH v5 3/8] build: change order of subdirectories

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Descend into examples after building/running tests. It is quite logical that first we build validation & performance tests, then we build platform tests, helper tests and only after that descend into examples. Signed-off-by:

[lng-odp] [PATCH v5 4/8] validation: init: remove "library" file

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Split init.c/init.h files into individual tests, simplifying setup. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) **

Re: [lng-odp] [PATCH v3] linux-generic: pool: Return address range in pool info

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: test/validation/api/pool/pool.c line 39 @@ -217,6 +217,50 @@ static void pool_test_info_packet(void) CU_ASSERT(odp_pool_destroy(pool) == 0); } +static void pool_test_info_data_range(void) +{ + odp_pool_t pool; +

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: include/odp/api/spec/ipsec.h line 8 @@ -1346,9 +1346,7 @@ int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in, * and content of packet data before the IP header is undefined. Use outbound * operation parameters to specify

[lng-odp] [PATCH v5 2/8] example: generator: skip execution on unsupported platforms

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov null: pktio class is not a part of ABI, so it might be unsupported on some of platforms. Add condition guarding execution of this example only on supported platforms. Signed-off-by: Dmitry Eremin-Solenikov

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Dmitry Eremin-Solenikov(lumag) replied on github web page: platform/linux-generic/odp_packet.c line 5 @@ -1286,7 +1286,7 @@ int odp_packet_l2_offset_set(odp_packet_t pkt, uint32_t offset) { odp_packet_hdr_t *pkt_hdr = packet_hdr(pkt); - if (offset >= pkt_hdr->frame_len) +

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Dmitry Eremin-Solenikov(lumag) replied on github web page: platform/linux-generic/odp_ipsec.c line 245 @@ -1165,6 +1167,8 @@ static int ipsec_out_esp(odp_packet_t *pkt, ipsec_offset + _ODP_ESPHDR_LEN, ipsec_sa->esp_iv_len,

[lng-odp] [PATCH v2 5/7] validation: move most of tests to common directory

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov There is little benefit from keeping each test in it's own subdirectory. It just slows down build process. Move most of the tests to just api/ diretory to be built in parallel. Signed-off-by: Dmitry Eremin-Solenikov

[lng-odp] [PATCH v2 10/10] test: l2fwd: increase num pkt and honour pool capability

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Increase number of packets to 16k as 8k packets limit throughput on 40Gbit testing. Also limit packet count and length to pool capability maximums when needed. Signed-off-by: Petri Savolainen --- /** Email created

[lng-odp] [PATCH v2 1/10] linux-gen: queue: inline queue from index conversion

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Inline queue handle from queue index conversion function. Signed-off-by: Petri Savolainen --- /** Email created from pull request 492 (psavol:master-sched-optim) ** https://github.com/Linaro/odp/pull/492 **

[lng-odp] [PATCH v2 4/7] validation: init: remove "library" file

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Split init.c/init.h files into individual tests, simplifying setup. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) **

[lng-odp] [PATCH v2 4/10] validation: sched: honour max queue size

2018-02-22 Thread Github ODP bot
From: Petri Savolainen When needed, scale down atomic queue size requirement to maximum queue size capability. Signed-off-by: Petri Savolainen --- /** Email created from pull request 492 (psavol:master-sched-optim) **

[lng-odp] [PATCH v2 0/7] More tests rework

2018-02-22 Thread Github ODP bot
Rework generator fix for "no null: pktio on non-linux-generic platforms" issue Change order of tests execution Move all validation tests to single directory to simplify builds. github /** Email created from pull request 496 (lumag:tests-fix-2) **

[lng-odp] [PATCH v2 5/10] test: pktio_ordered: honour max queue size

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Limit maximum number of events to maximum pool and queue capability when needed. Pool size should not be larger than queue size as test run in validation suite suffers from queue enqueue failures (queue full) and sequence number checking does

[lng-odp] [PATCH v5 6/8] validation: move traffic_mngr test to api/ dir

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch:

[lng-odp] [PATCH v5 5/8] validation: move most of tests to common directory

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov There is little benefit from keeping each test in it's own subdirectory. It just slows down build process. Move most of the tests to just api/ diretory to be built in parallel. Signed-off-by: Dmitry Eremin-Solenikov

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 46 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

[lng-odp] [PATCH v2 7/7] validation: move pktio test to api/ dir

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch:

[lng-odp] [PATCH v2 9/10] test: l2fwd: remove unnecessary doxygen tags

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Doxygen documentation is not generated from this file. Remove unnecessary and incomplete doxygen taggings. Signed-off-by: Petri Savolainen --- /** Email created from pull request 492 (psavol:master-sched-optim)

[lng-odp] [PATCH v5 1/8] Revert "example: generator move to platform tests"

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov This reverts commit 5a58bbf2bb331fd7dde2ebbc0430634ace6900fb. Don't make platform tests depend on examples. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Dmitry Eremin-Solenikov(lumag) replied on github web page: include/odp/api/spec/ipsec.h line 8 @@ -1346,9 +1346,7 @@ int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in, * and content of packet data before the IP header is undefined. Use outbound * operation parameters to specify the

[lng-odp] [PATCH v5 8/8] linux-gen: move pktio test to api/ dir

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch:

[lng-odp] [PATCH v2 3/7] build: change order of subdirectories

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Descend into examples after building/running tests. It is quite logical that first we build validation & performance tests, then we build platform tests, helper tests and only after that descend into examples. Signed-off-by:

[lng-odp] [PATCH v2 2/7] example: generator: skip execution on unsupported platforms

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov null: pktio class is not a part of ABI, so it might be unsupported on some of platforms. Add condition guarding execution of this example only on supported platforms. Signed-off-by: Dmitry Eremin-Solenikov

[lng-odp] [PATCH v2 6/10] linux-gen: queue: ring based queue implementation

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Change from linked list of bursts to a ring implementation. Queues have maximum size but code is simpler and performance is a bit better. This step helps in a potential future step to implement queues with a lockless ring. Signed-off-by: Petri

[lng-odp] [PATCH v2 7/10] linux-gen: config: increase max burst size

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Burst size can be now increased without overhead as buffer header size is not tied to it. Burst size increase from 16 to 32 improves e.g. l2fwd throughput more than 10%. Signed-off-by: Petri Savolainen --- /**

[lng-odp] [PATCH v2 3/10] helper: cuckoo: check pool and queue limits

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Use capability to check if pool and queue can hold enough events. Also lower test case resource requirement. Signed-off-by: Petri Savolainen --- /** Email created from pull request 492 (psavol:master-sched-optim)

[lng-odp] [PATCH v5 0/8] More tests rework

2018-02-22 Thread Github ODP bot
Rework generator fix for "no null: pktio on non-linux-generic platforms" issue Change order of tests execution Move all validation tests to single directory to simplify builds. github /** Email created from pull request 496 (lumag:tests-fix-2) **

[lng-odp] [PATCH v5 7/8] validation: move pktio test to api/ dir

2018-02-22 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch:

[lng-odp] [Linaro/odp] 95e2a1: linux-generic: pktio: drop support for indefinite ...

2018-02-22 Thread GitHub
Branch: refs/heads/next Home: https://github.com/Linaro/odp Commit: 95e2a19bb8c3d8f16dcaf70240b83cc782b3f655 https://github.com/Linaro/odp/commit/95e2a19bb8c3d8f16dcaf70240b83cc782b3f655 Author: Bill Fischofer Date: 2018-02-22 (Thu, 22 Feb 2018)

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 28 @@ -296,7 +282,9 @@ static void init_buffers(pool_t *pool) memset(buf_hdr, 0, (uintptr_t)data - (uintptr_t)buf_hdr); /* Initialize buffer metadata */ -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_buffer_internal.h line 17 @@ -41,11 +41,19 @@ typedef struct seg_entry_t { uint32_t len; } seg_entry_t; +typedef union buffer_index_t { + uint32_t u32; + + struct { +

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 78 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_RING_ST_INTERNAL_H_ +#define

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/include/odp_buffer_internal.h line 17 @@ -41,11 +41,19 @@ typedef struct seg_entry_t { uint32_t len; } seg_entry_t; +typedef union buffer_index_t { + uint32_t u32; + + struct { +

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/odp_queue.c line 420 @@ -584,8 +556,9 @@ static int queue_init(queue_entry_t *queue, const char *name, queue->s.pktin = PKTIN_INVALID; queue->s.pktout = PKTOUT_INVALID; - queue->s.head = NULL; -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 78 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 24 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c @@ -263,7 +275,7 @@ static int queue_destroy(odp_queue_t handle) ODP_ERR("queue \"%s\" already destroyed\n", queue->s.name); return -1; } - if

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 24 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_RING_ST_INTERNAL_H_ +#define

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/odp_pool.c line 28 @@ -296,7 +282,9 @@ static void init_buffers(pool_t *pool) memset(buf_hdr, 0, (uintptr_t)data - (uintptr_t)buf_hdr); /* Initialize buffer metadata */ -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/odp_queue.c line 92 @@ -143,8 +150,10 @@ static int queue_capability(odp_queue_capability_t *capa) capa->max_sched_groups = sched_fn->num_grps(); capa->sched_prios = odp_schedule_num_prio();

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/odp_queue.c line 103 @@ -192,6 +201,9 @@ static odp_queue_t queue_create(const char *name, param = _param; } + if (param->size > CONFIG_QUEUE_SIZE) Comment: One entry is not lost. User

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/odp_queue.c line 95 @@ -143,8 +150,10 @@ static int queue_capability(odp_queue_capability_t *capa) capa->max_sched_groups = sched_fn->num_grps(); capa->sched_prios = odp_schedule_num_prio();

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/odp_queue.c @@ -471,51 +476,18 @@ static inline int deq_multi(queue_entry_t *queue, odp_buffer_hdr_t *buf_hdr[], } UNLOCK(>s.lock); - return 0; - } - - for (i =

[lng-odp] [Linaro/odp] 082150: api: queue: block-free capabilities

2018-02-22 Thread GitHub
Branch: refs/heads/next Home: https://github.com/Linaro/odp Commit: 08215084ecd932d35bf663327e37e417949750d9 https://github.com/Linaro/odp/commit/08215084ecd932d35bf663327e37e417949750d9 Author: Petri Savolainen Date: 2018-02-22 (Thu, 22 Feb 2018)

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 92 @@ -143,8 +150,10 @@ static int queue_capability(odp_queue_capability_t *capa) capa->max_sched_groups = sched_fn->num_grps(); capa->sched_prios =

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_packet.c line 5 @@ -1286,7 +1286,7 @@ int odp_packet_l2_offset_set(odp_packet_t pkt, uint32_t offset) { odp_packet_hdr_t *pkt_hdr = packet_hdr(pkt); - if (offset >= pkt_hdr->frame_len) +

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_RING_ST_INTERNAL_H_

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_config_internal.h line 5 @@ -144,7 +144,7 @@ extern "C" { * This controls the burst size on various enqueue, dequeue, etc calls. Large * burst size improves throughput, but may degrade QoS

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_ipsec.c line 245 @@ -1165,6 +1167,8 @@ static int ipsec_out_esp(odp_packet_t *pkt, ipsec_offset + _ODP_ESPHDR_LEN, ipsec_sa->esp_iv_len,

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c @@ -471,51 +476,18 @@ static inline int deq_multi(queue_entry_t *queue, odp_buffer_hdr_t *buf_hdr[], } UNLOCK(>s.lock); - return 0; - } - -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 420 @@ -584,8 +556,9 @@ static int queue_init(queue_entry_t *queue, const char *name, queue->s.pktin = PKTIN_INVALID; queue->s.pktout = PKTOUT_INVALID; -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 32 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_RING_ST_INTERNAL_H_ +#define

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/odp_queue.c @@ -263,7 +275,7 @@ static int queue_destroy(odp_queue_t handle) ODP_ERR("queue \"%s\" already destroyed\n", queue->s.name); return -1; } - if (queue->s.head !=

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 103 @@ -192,6 +201,9 @@ static odp_queue_t queue_create(const char *name, param = _param; } + if (param->size > CONFIG_QUEUE_SIZE) Comment: Change to `if

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_RING_ST_INTERNAL_H_ +#define

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 32 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 95 @@ -143,8 +150,10 @@ static int queue_capability(odp_queue_capability_t *capa) capa->max_sched_groups = sched_fn->num_grps(); capa->sched_prios =

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Petri Savolainen(psavol) replied on github web page: platform/linux-generic/include/odp_config_internal.h line 5 @@ -144,7 +144,7 @@ extern "C" { * This controls the burst size on various enqueue, dequeue, etc calls. Large * burst size improves throughput, but may degrade QoS (increase

[lng-odp] [Linaro/odp] 225de4: linux-gen: packet: hide internal definitions from ...

2018-02-22 Thread GitHub
Branch: refs/heads/next Home: https://github.com/Linaro/odp Commit: 225de4341d55fa2ad7783e16fd406d47f5a1119e https://github.com/Linaro/odp/commit/225de4341d55fa2ad7783e16fd406d47f5a1119e Author: Petri Savolainen Date: 2018-02-22 (Thu, 22 Feb 2018)

[lng-odp] [Linaro/odp] e85a54: api: pktio: drop support for indefinite waits on r...

2018-02-22 Thread GitHub
Branch: refs/heads/next Home: https://github.com/Linaro/odp Commit: e85a5453f2f85e4d5794d3ea2fc9e7b8433485a9 https://github.com/Linaro/odp/commit/e85a5453f2f85e4d5794d3ea2fc9e7b8433485a9 Author: Bill Fischofer Date: 2018-02-22 (Thu, 22 Feb 2018)

[lng-odp] [PATCH v5 2/2] validation: pool: verify pool data range

2018-02-22 Thread Github ODP bot
From: Michal Mazur Allocate maximum number of packets from pool and verify that packet data are located inside range returned by odp_pool_info. Signed-off-by: Michal Mazur --- /** Email created from pull request 495 (semihalf-mazur-michal:master) **

[lng-odp] [PATCH v5 1/2] linux-generic: pool: Return address range in pool info

2018-02-22 Thread Github ODP bot
From: Michal Mazur Implement support in odp_pool_info function to provide address range of pool data available to application. Pull request of related API change: https://github.com/Linaro/odp/pull/200 Signed-off-by: Michal Mazur --- /** Email created

[lng-odp] [PATCH v5 0/2] linux-generic: pool: Return address range in pool info

2018-02-22 Thread Github ODP bot
Implement support in odp_pool_info function to provide address range of pool data available to application. Similar change was already merged to caterpillar/linux-dpdk: #400 Pull request of related API change: #200 github /** Email created from pull request

Re: [lng-odp] [PATCH API-NEXT v1] api: packet: data and segment length

2018-02-22 Thread Github ODP bot
Dmitry Eremin-Solenikov(lumag) replied on github web page: include/odp/api/spec/packet.h line 9 @@ -401,30 +401,39 @@ uint32_t odp_packet_buf_len(odp_packet_t pkt); /** * Packet data pointer * - * Returns the current packet data pointer. When a packet is received - * from packet input, this

Re: [lng-odp] [PATCH API-NEXT v1] api: packet: data and segment length

2018-02-22 Thread Github ODP bot
Dmitry Eremin-Solenikov(lumag) replied on github web page: include/odp/api/spec/packet.h line 28 @@ -401,30 +401,39 @@ uint32_t odp_packet_buf_len(odp_packet_t pkt); /** * Packet data pointer * - * Returns the current packet data pointer. When a packet is received - * from packet input, this

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: include/odp/api/spec/ipsec.h line 8 @@ -1346,9 +1346,7 @@ int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in, * and content of packet data before the IP header is undefined. Use outbound * operation parameters to specify

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 92 @@ -143,8 +150,10 @@ static int queue_capability(odp_queue_capability_t *capa) capa->max_sched_groups = sched_fn->num_grps(); capa->sched_prios =

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 95 @@ -143,8 +150,10 @@ static int queue_capability(odp_queue_capability_t *capa) capa->max_sched_groups = sched_fn->num_grps(); capa->sched_prios =

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 46 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 103 @@ -192,6 +201,9 @@ static odp_queue_t queue_create(const char *name, param = _param; } + if (param->size > CONFIG_QUEUE_SIZE) Comment: Agreed, this is

Re: [lng-odp] [PATCH API-NEXT v2] IPsec TFC implementation

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_ipsec.c line 245 @@ -1165,6 +1167,8 @@ static int ipsec_out_esp(odp_packet_t *pkt, ipsec_offset + _ODP_ESPHDR_LEN, ipsec_sa->esp_iv_len,

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_pool.c line 28 @@ -296,7 +282,9 @@ static void init_buffers(pool_t *pool) memset(buf_hdr, 0, (uintptr_t)data - (uintptr_t)buf_hdr); /* Initialize buffer metadata */ -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c line 420 @@ -584,8 +556,9 @@ static int queue_init(queue_entry_t *queue, const char *name, queue->s.pktin = PKTIN_INVALID; queue->s.pktout = PKTOUT_INVALID; -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 78 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

[lng-odp] [PATCH API-NEXT v1 2/4] api: packet: add combined packet data and seg len

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Packet data pointer and segment length used often. Combine two calls into one call. One call performs better in ABI compatible mode than two calls. Signed-off-by: Petri Savolainen --- /** Email created from pull

[lng-odp] [PATCH API-NEXT v1 1/4] api: packet: improve segmented packet documentation

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Improve documentation text to be more explicit that packets may be segmented. Signed-off-by: Petri Savolainen --- /** Email created from pull request 497 (psavol:next-packet-data-doc) **

[lng-odp] [PATCH v4 0/2] linux-generic: pool: Return address range in pool info

2018-02-22 Thread Github ODP bot
Implement support in odp_pool_info function to provide address range of pool data available to application. Similar change was already merged to caterpillar/linux-dpdk: #400 Pull request of related API change: #200 github /** Email created from pull request

[lng-odp] [PATCH v4 1/2] linux-generic: pool: Return address range in pool info

2018-02-22 Thread Github ODP bot
From: Michal Mazur Implement support in odp_pool_info function to provide address range of pool data available to application. Pull request of related API change: https://github.com/Linaro/odp/pull/200 Signed-off-by: Michal Mazur --- /** Email created

[lng-odp] [PATCH v4 2/2] validation: pool: verify pool data range

2018-02-22 Thread Github ODP bot
From: Michal Mazur Allocate maximum number of packets from pool and verify that packet data are located inside range returned by odp_pool_info. Signed-off-by: Michal Mazur --- /** Email created from pull request 495 (semihalf-mazur-michal:master) **

[lng-odp] [PATCH API-NEXT v1 4/4] validation: packet: test packet_data_seg_len

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Test the new combined packet data and seg_len function. Signed-off-by: Petri Savolainen --- /** Email created from pull request 497 (psavol:next-packet-data-doc) ** https://github.com/Linaro/odp/pull/497 **

Re: [lng-odp] [PATCH v4] linux-generic: pool: Return address range in pool info

2018-02-22 Thread Github ODP bot
semihalf-mazur-michal replied on github web page: test/validation/api/pool/pool.c @@ -217,6 +217,50 @@ static void pool_test_info_packet(void) CU_ASSERT(odp_pool_destroy(pool) == 0); } +static void pool_test_info_data_range(void) +{ + odp_pool_t pool; + odp_pool_info_t

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c @@ -263,7 +275,7 @@ static int queue_destroy(odp_queue_t handle) ODP_ERR("queue \"%s\" already destroyed\n", queue->s.name); return -1; } - if

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 24 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

[lng-odp] [Linaro/odp] 601c8a: linux-gen: crypto: drop stale enum

2018-02-22 Thread GitHub
Branch: refs/heads/next Home: https://github.com/Linaro/odp Commit: 601c8a1c38bd5a284c0df8d7bc88fa7445f42a99 https://github.com/Linaro/odp/commit/601c8a1c38bd5a284c0df8d7bc88fa7445f42a99 Author: Dmitry Eremin-Solenikov Date: 2018-02-22 (Thu,

[lng-odp] [PATCH API-NEXT v1 0/4] api: packet: data and segment length

2018-02-22 Thread Github ODP bot
Improved documentation and added new combined function for better performance in ABI compat mode. github /** Email created from pull request 497 (psavol:next-packet-data-doc) ** https://github.com/Linaro/odp/pull/497 ** Patch:

[lng-odp] [PATCH API-NEXT v1 3/4] linux-gen: packet: implement packet_data_seg_len

2018-02-22 Thread Github ODP bot
From: Petri Savolainen Implement the new combined packet data and seg_len function. Signed-off-by: Petri Savolainen --- /** Email created from pull request 497 (psavol:next-packet-data-doc) ** https://github.com/Linaro/odp/pull/497 **

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/odp_queue.c @@ -471,51 +476,18 @@ static inline int deq_multi(queue_entry_t *queue, odp_buffer_hdr_t *buf_hdr[], } UNLOCK(>s.lock); - return 0; - } - -

Re: [lng-odp] [PATCH v2] Ring implementation of queues

2018-02-22 Thread Github ODP bot
Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page: platform/linux-generic/include/odp_ring_st_internal.h line 32 @@ -0,0 +1,118 @@ +/* Copyright (c) 2018, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef

  1   2   >