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:
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
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:
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:
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)
**
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
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:
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.
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)
**
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
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
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:
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)
**
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;
+
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
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
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)
+
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,
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
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
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
**
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)
**
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)
**
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)
**
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
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:
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
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
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:
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)
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
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
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:
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:
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
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
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
---
/**
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)
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)
**
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:
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)
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 */
-
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 {
+
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
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 {
+
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;
-
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
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
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
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
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 */
-
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();
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
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();
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 =
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)
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 =
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)
+
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_
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
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,
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;
- }
-
-
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;
-
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
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 !=
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
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
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
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 =
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
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)
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)
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)
**
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
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
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
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
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
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 =
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 =
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
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
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,
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 */
-
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;
-
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
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
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)
**
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
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
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)
**
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
**
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
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
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
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,
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:
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
**
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;
- }
-
-
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
100 matches
Mail list logo