This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, api-next has been updated
via dd36b4758d0cd9f9929a13d42ec2ac38ae972e37 (commit)
via f9a28807aaf8781c9b9576a04dce207f95fb8118 (commit)
from 186c93faeecb570db14da3d4ce3b192a25724de1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit dd36b4758d0cd9f9929a13d42ec2ac38ae972e37
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Thu Apr 13 17:40:51 2017 +0300
validation: queue: test queue max_num per type
Updated implementation and test with type specific number of
queues.
Signed-off-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli(a)linaro.org>
Reviewed-by: Balasubramanian Manoharan <bala.manoharan(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/odp_queue.c b/platform/linux-generic/odp_queue.c
index fcf4bf5b..1114c95c 100644
--- a/platform/linux-generic/odp_queue.c
+++ b/platform/linux-generic/odp_queue.c
@@ -175,6 +175,8 @@ int odp_queue_capability(odp_queue_capability_t *capa)
capa->max_ordered_locks = sched_fn->max_ordered_locks();
capa->max_sched_groups = sched_fn->num_grps();
capa->sched_prios = odp_schedule_num_prio();
+ capa->plain.max_num = capa->max_queues;
+ capa->sched.max_num = capa->max_queues;
return 0;
}
diff --git a/test/common_plat/validation/api/queue/queue.c b/test/common_plat/validation/api/queue/queue.c
index 1f7913a1..6a13c006 100644
--- a/test/common_plat/validation/api/queue/queue.c
+++ b/test/common_plat/validation/api/queue/queue.c
@@ -56,7 +56,7 @@ void queue_test_capa(void)
odp_queue_param_t qparams;
char name[ODP_QUEUE_NAME_LEN];
odp_queue_t queue[MAX_QUEUES];
- uint32_t num_queues, i;
+ uint32_t num_queues, min, i, j;
memset(&capa, 0, sizeof(odp_queue_capability_t));
CU_ASSERT(odp_queue_capability(&capa) == 0);
@@ -65,34 +65,49 @@ void queue_test_capa(void)
CU_ASSERT(capa.max_ordered_locks != 0);
CU_ASSERT(capa.max_sched_groups != 0);
CU_ASSERT(capa.sched_prios != 0);
+ CU_ASSERT(capa.plain.max_num != 0);
+ CU_ASSERT(capa.sched.max_num != 0);
+
+ min = capa.plain.max_num;
+ if (min > capa.sched.max_num)
+ min = capa.sched.max_num;
+
+ CU_ASSERT(capa.max_queues >= min);
for (i = 0; i < ODP_QUEUE_NAME_LEN; i++)
name[i] = 'A' + (i % 26);
name[ODP_QUEUE_NAME_LEN - 1] = 0;
- if (capa.max_queues > MAX_QUEUES)
- num_queues = MAX_QUEUES;
- else
- num_queues = capa.max_queues;
-
odp_queue_param_init(&qparams);
- for (i = 0; i < num_queues; i++) {
- generate_name(name, i);
- queue[i] = odp_queue_create(name, &qparams);
+ for (j = 0; j < 2; j++) {
+ if (j == 0) {
+ num_queues = capa.plain.max_num;
+ } else {
+ num_queues = capa.sched.max_num;
+ qparams.type = ODP_QUEUE_TYPE_SCHED;
+ }
+
+ if (num_queues > MAX_QUEUES)
+ num_queues = MAX_QUEUES;
- if (queue[i] == ODP_QUEUE_INVALID) {
- CU_FAIL("Queue create failed");
- num_queues = i;
- break;
+ for (i = 0; i < num_queues; i++) {
+ generate_name(name, i);
+ queue[i] = odp_queue_create(name, &qparams);
+
+ if (queue[i] == ODP_QUEUE_INVALID) {
+ CU_FAIL("Queue create failed");
+ num_queues = i;
+ break;
+ }
+
+ CU_ASSERT(odp_queue_lookup(name) != ODP_QUEUE_INVALID);
}
- CU_ASSERT(odp_queue_lookup(name) != ODP_QUEUE_INVALID);
+ for (i = 0; i < num_queues; i++)
+ CU_ASSERT(odp_queue_destroy(queue[i]) == 0);
}
-
- for (i = 0; i < num_queues; i++)
- CU_ASSERT(odp_queue_destroy(queue[i]) == 0);
}
void queue_test_mode(void)
commit f9a28807aaf8781c9b9576a04dce207f95fb8118
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Thu Apr 13 17:40:50 2017 +0300
api: queue: added queue size param
Added capability information about maximum number of queues
and queue sizes. Both are defined per queue type, since
plain and scheduled queues may have different implementations
(e.g. one uses HW while the other is SW).
Added queue size parameter, which specifies how large
storage size application requires in minimum.
Signed-off-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli(a)linaro.org>
Reviewed-by: Balasubramanian Manoharan <bala.manoharan(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
index 7972feac..9dd0a561 100644
--- a/include/odp/api/spec/queue.h
+++ b/include/odp/api/spec/queue.h
@@ -100,7 +100,9 @@ typedef enum odp_queue_op_mode_t {
* Queue capabilities
*/
typedef struct odp_queue_capability_t {
- /** Maximum number of event queues */
+ /** Maximum number of event queues of any type (default size). Use
+ * this in addition to queue type specific 'max_num', if both queue
+ * types are used simultaneously. */
uint32_t max_queues;
/** Maximum number of ordered locks per queue */
@@ -112,6 +114,32 @@ typedef struct odp_queue_capability_t {
/** Number of scheduling priorities */
unsigned sched_prios;
+ /** Plain queue capabilities */
+ struct {
+ /** Maximum number of plain queues of the default size. */
+ uint32_t max_num;
+
+ /** Maximum number of events a plain queue can store
+ * simultaneously. The value of zero means that plain
+ * queues do not have a size limit, but a single queue can
+ * store all available events. */
+ uint32_t max_size;
+
+ } plain;
+
+ /** Scheduled queue capabilities */
+ struct {
+ /** Maximum number of scheduled queues of the default size. */
+ uint32_t max_num;
+
+ /** Maximum number of events a scheduled queue can store
+ * simultaneously. The value of zero means that scheduled
+ * queues do not have a size limit, but a single queue can
+ * store all available events. */
+ uint32_t max_size;
+
+ } sched;
+
} odp_queue_capability_t;
/**
@@ -165,6 +193,15 @@ typedef struct odp_queue_param_t {
* The implementation may use this value as a hint for the number of
* context data bytes to prefetch. Default value is zero (no hint). */
uint32_t context_len;
+
+ /** Queue size
+ *
+ * The queue must be able to store at minimum this many events
+ * simultaneously. The value must not exceed 'max_size' queue
+ * capability. The value of zero means implementation specific
+ * default size. */
+ uint32_t size;
+
} odp_queue_param_t;
/**
-----------------------------------------------------------------------
Summary of changes:
include/odp/api/spec/queue.h | 39 ++++++++++++++++++++-
platform/linux-generic/odp_queue.c | 2 ++
test/common_plat/validation/api/queue/queue.c | 49 +++++++++++++++++----------
3 files changed, 72 insertions(+), 18 deletions(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via 077b6c427cac9687349a56ebf5602bb953348440 (commit)
via 66869dae3b8cce7ed020d6922bd68ed30542f753 (commit)
via c9417b862f7df0213b5135f0aa364761cb23cec6 (commit)
from 0955fbb395dc1651a8bcd473beae2154d39f4a69 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 077b6c427cac9687349a56ebf5602bb953348440
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Mar 31 15:18:49 2017 +0300
validation: packet: use common define for test pool sizes
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Balakrishna Garapati <balakrishna.garapati(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c
index af9a667e..284aaeb5 100644
--- a/test/common_plat/validation/api/packet/packet.c
+++ b/test/common_plat/validation/api/packet/packet.c
@@ -1386,7 +1386,7 @@ void packet_test_concat_small(void)
param.type = ODP_POOL_PACKET;
param.pkt.len = len;
- param.pkt.num = 100;
+ param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_concat", ¶m);
CU_ASSERT(packet_pool != ODP_POOL_INVALID);
@@ -1451,7 +1451,7 @@ void packet_test_concat_extend_trunc(void)
param.type = ODP_POOL_PACKET;
param.pkt.len = len;
- param.pkt.num = 100;
+ param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_concat", ¶m);
CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID);
@@ -1544,7 +1544,7 @@ void packet_test_extend_small(void)
param.type = ODP_POOL_PACKET;
param.pkt.len = len;
- param.pkt.num = 100;
+ param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_extend", ¶m);
CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID);
@@ -1639,7 +1639,7 @@ void packet_test_extend_large(void)
param.type = ODP_POOL_PACKET;
param.pkt.len = len;
- param.pkt.num = 100;
+ param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_extend", ¶m);
CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID);
@@ -1758,7 +1758,7 @@ void packet_test_extend_mix(void)
param.type = ODP_POOL_PACKET;
param.pkt.len = len;
- param.pkt.num = 100;
+ param.pkt.num = PACKET_POOL_NUM;
pool = odp_pool_create("packet_pool_extend", ¶m);
CU_ASSERT_FATAL(packet_pool != ODP_POOL_INVALID);
commit 66869dae3b8cce7ed020d6922bd68ed30542f753
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Mar 31 15:18:48 2017 +0300
validation: packet: remove invalid check from packet_test_alloc_segmented()
One can't assume that the packet should be segmented as this test is using
a different pool with different parameters than the default test pool.
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Balakrishna Garapati <balakrishna.garapati(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c
index 619f99a6..af9a667e 100644
--- a/test/common_plat/validation/api/packet/packet.c
+++ b/test/common_plat/validation/api/packet/packet.c
@@ -422,9 +422,6 @@ void packet_test_alloc_segmented(void)
CU_ASSERT_FATAL(pkt != ODP_PACKET_INVALID);
CU_ASSERT(odp_packet_len(pkt) == max_len);
- if (segmentation_supported)
- CU_ASSERT(odp_packet_is_segmented(pkt) == 1);
-
odp_packet_free(pkt);
num_alloc = 0;
commit c9417b862f7df0213b5135f0aa364761cb23cec6
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Mar 31 15:18:47 2017 +0300
validation: packet: increase test pool size
Previously packet_test_concatsplit() could fail on some pool
implementations as the pool ran out of buffers. Increase default pools size
and use capability to make sure the value is valid.
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Balakrishna Garapati <balakrishna.garapati(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c
index 2ffd9247..619f99a6 100644
--- a/test/common_plat/validation/api/packet/packet.c
+++ b/test/common_plat/validation/api/packet/packet.c
@@ -13,6 +13,8 @@
#define PACKET_BUF_LEN ODP_CONFIG_PACKET_SEG_LEN_MIN
/* Reserve some tailroom for tests */
#define PACKET_TAILROOM_RESERVE 4
+/* Number of packets in the test packet pool */
+#define PACKET_POOL_NUM 300
static odp_pool_t packet_pool, packet_pool_no_uarea, packet_pool_double_uarea;
static uint32_t packet_len;
@@ -109,6 +111,7 @@ int packet_suite_init(void)
uint32_t udat_size;
uint8_t data = 0;
uint32_t i;
+ uint32_t num = PACKET_POOL_NUM;
if (odp_pool_capability(&capa) < 0) {
printf("pool_capability failed\n");
@@ -130,13 +133,15 @@ int packet_suite_init(void)
segmented_packet_len = capa.pkt.min_seg_len *
capa.pkt.max_segs_per_pkt;
}
+ if (capa.pkt.max_num != 0 && capa.pkt.max_num < num)
+ num = capa.pkt.max_num;
odp_pool_param_init(¶ms);
params.type = ODP_POOL_PACKET;
params.pkt.seg_len = capa.pkt.min_seg_len;
params.pkt.len = capa.pkt.min_seg_len;
- params.pkt.num = 100;
+ params.pkt.num = num;
params.pkt.uarea_size = sizeof(struct udata_struct);
packet_pool = odp_pool_create("packet_pool", ¶ms);
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/validation/api/packet/packet.c | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, api-next has been updated
via 6ae7b56334f1795203355f3f4429d3f76bce15bf (commit)
from 38485719c028918b019c6a5fc67cf05053421c83 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6ae7b56334f1795203355f3f4429d3f76bce15bf
Author: Janne Peltonen <janne.peltonen(a)nokia.com>
Date: Fri Apr 7 12:54:00 2017 +0300
abi: event: add ODP_EVENT_IPSEC_STATUS
Update ABI spec with the new IPsec event type.
Signed-off-by: Janne Peltonen <janne.peltonen(a)nokia.com>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/include/odp/arch/default/api/abi/event.h b/include/odp/arch/default/api/abi/event.h
index ab141572..87220d63 100644
--- a/include/odp/arch/default/api/abi/event.h
+++ b/include/odp/arch/default/api/abi/event.h
@@ -29,7 +29,8 @@ typedef enum odp_event_type_t {
ODP_EVENT_PACKET = 2,
ODP_EVENT_TIMEOUT = 3,
ODP_EVENT_CRYPTO_COMPL = 4,
- ODP_EVENT_IPSEC_RESULT = 5
+ ODP_EVENT_IPSEC_RESULT = 5,
+ ODP_EVENT_IPSEC_STATUS = 6
} odp_event_type_t;
/**
-----------------------------------------------------------------------
Summary of changes:
include/odp/arch/default/api/abi/event.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, api-next has been updated
via 38485719c028918b019c6a5fc67cf05053421c83 (commit)
from 5a770508ecf93cd026eed5091d6325688c3c375d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 38485719c028918b019c6a5fc67cf05053421c83
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Fri Apr 7 15:35:20 2017 +0300
api: ipsec: spi_overlap and lookup modes
Lookup modes are per SA and thus may be used in a mix. Spi_overlap
parameter is global. So, removed comment about ignoring it in
LOOKUP_SPI mode.
Signed-off-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index b3dc0ca..a0ceb11 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -111,9 +111,7 @@ typedef struct odp_ipsec_inbound_config_t {
uint32_t max_spi;
/** Select if SPI values for SA lookup are unique or may contain
- * the same value multiple times. This configuration is not
- * relevant in ODP_IPSEC_LOOKUP_SPI mode. The default value
- * is 0.
+ * the same SPI value multiple times. The default value is 0.
*
* 0: All SAs in SA lookup have unique SPI value
* 1: The same SPI value may be used for multiple SAs
-----------------------------------------------------------------------
Summary of changes:
include/odp/api/spec/ipsec.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via ce61337e6a7e955913fa64412c75d2066e0f121c (commit)
from c7014b4848c276c17dcdddab103ce88b3eb29235 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ce61337e6a7e955913fa64412c75d2066e0f121c
Author: Balakrishna Garapati <balakrishna.garapati(a)linaro.org>
Date: Wed Mar 29 10:15:17 2017 +0200
validation: packet: do assert on newly created pkt reference
Signed-off-by: Balakrishna Garapati <balakrishna.garapati(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c
index 669122a..2ffd924 100644
--- a/test/common_plat/validation/api/packet/packet.c
+++ b/test/common_plat/validation/api/packet/packet.c
@@ -2234,12 +2234,15 @@ void packet_test_ref(void)
/* Create references */
ref_pkt[0] = odp_packet_ref(segmented_base_pkt, offset[0]);
+ CU_ASSERT_FATAL(ref_pkt[0] != ODP_PACKET_INVALID);
+
if (odp_packet_has_ref(ref_pkt[0]) == 1) {
/* CU_ASSERT needs braces */
CU_ASSERT(odp_packet_has_ref(segmented_base_pkt) == 1);
}
ref_pkt[1] = odp_packet_ref(segmented_base_pkt, offset[1]);
+ CU_ASSERT_FATAL(ref_pkt[1] != ODP_PACKET_INVALID);
if (odp_packet_has_ref(ref_pkt[1]) == 1) {
/* CU_ASSERT needs braces */
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/validation/api/packet/packet.c | 3 +++
1 file changed, 3 insertions(+)
hooks/post-receive
--