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 bf9380296de8cd62c0a8569c1fc775869b8501ab (commit)
from f83b71e6a9c685227615455df1f9e4fefeff19ae (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 bf9380296de8cd62c0a8569c1fc775869b8501ab
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Sep 23 16:44:19 2016 +0300
test: skip pktio_perf tests on 1 and 2 cpus machines
Make check should skip the test instead of failing it.
Test splits RX and TX cores for packet processing. Core
0 bind to control thread. So running machine should have
at least 2 worker threads which is not enough on 1 and 2
cpus machine. CUnit uses special value 77 to mark test as
SKIPPED and not fail on it.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-and-tested-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/test/common_plat/performance/odp_pktio_perf.c b/test/common_plat/performance/odp_pktio_perf.c
index f041b13..846dfaa 100644
--- a/test/common_plat/performance/odp_pktio_perf.c
+++ b/test/common_plat/performance/odp_pktio_perf.c
@@ -34,6 +34,8 @@
#include <inttypes.h>
#include <test_debug.h>
+#define TEST_SKIP 77
+
#define PKT_BUF_NUM 8192
#define MAX_NUM_IFACES 2
#define TEST_HDR_MAGIC 0x92749451
@@ -558,7 +560,7 @@ static int setup_txrx_masks(odp_cpumask_t *thd_mask_tx,
gbl_args->args.cpu_count);
if (num_workers < 2) {
LOG_ERR("Need at least two cores\n");
- return -1;
+ return TEST_SKIP;
}
if (gbl_args->args.num_tx_workers) {
@@ -669,8 +671,9 @@ static int run_test(void)
.warmup = 1,
};
- if (setup_txrx_masks(&txmask, &rxmask) != 0)
- return -1;
+ ret = setup_txrx_masks(&txmask, &rxmask);
+ if (ret)
+ return ret;
printf("Starting test with params:\n");
printf("\tTransmit workers: \t%d\n", odp_cpumask_count(&txmask));
@@ -691,8 +694,11 @@ static int run_test(void)
run_test_single(&txmask, &rxmask, &status);
status.warmup = 0;
- while (ret > 0)
+ while (1) {
ret = run_test_single(&txmask, &rxmask, &status);
+ if (ret)
+ break;
+ }
return ret;
}
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/performance/odp_pktio_perf.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 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 a8e5a8f6853ddc998430d112c22994928ddb4070 (commit)
from 09abf90268a0a5a2daf7c7e0ae37a2d7c35e87c5 (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 a8e5a8f6853ddc998430d112c22994928ddb4070
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Thu Sep 8 18:53:00 2016 +0300
linux-gen: pktio: ipc: remove todos
Remove todo around copying packet data from
shared pool as it's not a bug and can be
considered as future request. But left small
comment that we coping packet data to make
it more visible.
https://bugs.linaro.org/show_bug.cgi?id=2408
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/platform/linux-generic/pktio/ipc.c b/platform/linux-generic/pktio/ipc.c
index b779ab7..c1f28db 100644
--- a/platform/linux-generic/pktio/ipc.c
+++ b/platform/linux-generic/pktio/ipc.c
@@ -373,11 +373,6 @@ static int _ipc_slave_start(pktio_entry_t *pktio_entry)
pinfo->master.mdata_offset;
pktio_entry->s.ipc.pkt_size = pinfo->master.shm_pkt_size;
- /* @todo: to simplify in odp-linux implementation we create pool for
- * packets from IPC queue. On receive implementation copies packets to
- * that pool. Later we can try to reuse original pool without packets
- * copying. (pkt refcounts needs to be implemented).
- */
_ipc_export_pool(pinfo, pktio_entry->s.ipc.pool);
odp_atomic_store_u32(&pktio_entry->s.ipc.ready, 1);
@@ -573,7 +568,7 @@ static int ipc_pktio_recv_lockless(pktio_entry_t *pktio_entry,
(PKTIO_TYPE_IPC_SLAVE ==
pktio_entry->s.ipc.type));
- /* @todo fix copy packet!!! */
+ /* Copy packet data from shared pool to local pool. */
memcpy(pkt_data, remote_pkt_data, phdr.frame_len);
/* Copy packets L2, L3 parsed offsets and size */
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/pktio/ipc.c | 7 +------
1 file changed, 1 insertion(+), 6 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 09abf90268a0a5a2daf7c7e0ae37a2d7c35e87c5 (commit)
from 88df2613cb91022233f9ec973f6ef338eb060f17 (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 09abf90268a0a5a2daf7c7e0ae37a2d7c35e87c5
Author: Christophe Milard <christophe.milard(a)linaro.org>
Date: Mon Sep 19 17:56:57 2016 +0200
linux-gen: using ODP instantiation pid as odp instance
Rather than using INSTANCE_ID (constant 0xdeadbeef), the ODP main
instantiation process ID is used as instance ID in the linux-generic
implementation. This is a simple way to guarantee instance uniqueness
on linux systems.
Signed-off-by: Christophe Milard <christophe.milard(a)linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h
index 8bad450..3429781 100644
--- a/platform/linux-generic/include/odp_internal.h
+++ b/platform/linux-generic/include/odp_internal.h
@@ -25,7 +25,6 @@ extern "C" {
extern __thread int __odp_errno;
-#define INSTANCE_ID 0xdeadbeef
#define MAX_CPU_NUMBER 128
typedef struct {
diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c
index f534759..77f4f8a 100644
--- a/platform/linux-generic/odp_init.c
+++ b/platform/linux-generic/odp_init.c
@@ -116,8 +116,7 @@ int odp_init_global(odp_instance_t *instance,
goto init_failed;
}
- /* Dummy support for single instance */
- *instance = INSTANCE_ID;
+ *instance = (odp_instance_t)odp_global_data.main_pid;
return 0;
@@ -128,7 +127,7 @@ init_failed:
int odp_term_global(odp_instance_t instance)
{
- if (instance != INSTANCE_ID) {
+ if (instance != (odp_instance_t)odp_global_data.main_pid) {
ODP_ERR("Bad instance.\n");
return -1;
}
@@ -250,7 +249,7 @@ int odp_init_local(odp_instance_t instance, odp_thread_type_t thr_type)
{
enum init_stage stage = NO_INIT;
- if (instance != INSTANCE_ID) {
+ if (instance != (odp_instance_t)odp_global_data.main_pid) {
ODP_ERR("Bad instance.\n");
goto init_fail;
}
diff --git a/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic/odp_traffic_mngr.c
index 4fe07ef..85228cd 100644
--- a/platform/linux-generic/odp_traffic_mngr.c
+++ b/platform/linux-generic/odp_traffic_mngr.c
@@ -2317,7 +2317,8 @@ static void *tm_system_thread(void *arg)
uint32_t destroying, work_queue_cnt, timer_cnt;
int rc;
- rc = odp_init_local(INSTANCE_ID, ODP_THREAD_WORKER);
+ rc = odp_init_local((odp_instance_t)odp_global_data.main_pid,
+ ODP_THREAD_WORKER);
ODP_ASSERT(rc == 0);
tm_group = arg;
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/include/odp_internal.h | 1 -
platform/linux-generic/odp_init.c | 7 +++----
platform/linux-generic/odp_traffic_mngr.c | 3 ++-
3 files changed, 5 insertions(+), 6 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 566492d067083e870548c78a89f8c65b02ecde89 (commit)
from ea0b2211f1c5d90e1699aa94b3192704fbf6ca91 (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 566492d067083e870548c78a89f8c65b02ecde89
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Thu Sep 22 17:00:46 2016 +0300
Revert "example: generator: actually use specified default"
This reverts commit ea0b2211f1c5d90e1699aa94b3192704fbf6ca91.
This parameter need to be accounted also in l2fwd performance
test which fails after this patch.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index 48d7f5f..b0053b9 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -946,7 +946,6 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args)
appl_args->number = -1;
appl_args->payload = 56;
appl_args->timeout = -1;
- appl_args->interval = DEFAULT_PKT_INTERVAL;
opterr = 0; /* do not issue errors on helper options */
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 1 -
1 file changed, 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 cf6425f16f8ee554815f6697a231e398ddb0546c (commit)
from 6085237938d93c68710db69f70014eca2238492a (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 cf6425f16f8ee554815f6697a231e398ddb0546c
Author: Christophe Milard <christophe.milard(a)linaro.org>
Date: Tue Sep 13 14:40:46 2016 +0200
linux-generic: _fdserver: allocating data table dynamicaly
The table containing the saved file-descriptors<->{context, key} couples is
now dynamically malloc'd in the fd server process, hence avoiding
the memory waste which happened in other process when the table was
staticaly reserved in all processes.
Signed-off-by: Christophe Milard <christophe.milard(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/platform/linux-generic/_fdserver.c b/platform/linux-generic/_fdserver.c
index 97661d0..41a630b 100644
--- a/platform/linux-generic/_fdserver.c
+++ b/platform/linux-generic/_fdserver.c
@@ -73,7 +73,7 @@ typedef struct fdentry_s {
uint64_t key;
int fd;
} fdentry_t;
-static fdentry_t fd_table[FDSERVER_MAX_ENTRIES];
+static fdentry_t *fd_table;
static int fd_table_nb_entries;
/*
@@ -622,8 +622,20 @@ int _odp_fdserver_init_global(void)
/* TODO: pin the server on appropriate service cpu mask */
/* when (if) we can agree on the usage of service mask */
+ /* allocate the space for the file descriptor<->key table: */
+ fd_table = malloc(FDSERVER_MAX_ENTRIES * sizeof(fdentry_t));
+ if (!fd_table) {
+ ODP_ERR("maloc failed!\n");
+ exit(1);
+ }
+
+ /* wait for clients requests */
wait_requests(sock); /* Returns when server is stopped */
close(sock);
+
+ /* release the file descriptor table: */
+ free(fd_table);
+
exit(0);
}
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/_fdserver.c | 14 +++++++++++++-
1 file changed, 13 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 6085237938d93c68710db69f70014eca2238492a (commit)
via 03626c586519818ef4de9a2f733ebfd46a0bf6be (commit)
via ea0b2211f1c5d90e1699aa94b3192704fbf6ca91 (commit)
from c070eda5f78f9209ef3c7a0fe6dfc0cff210894b (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 6085237938d93c68710db69f70014eca2238492a
Merge: 03626c5 ea0b221
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Wed Sep 14 17:29:27 2016 +0300
Merge branch 'master' into api-next
commit 03626c586519818ef4de9a2f733ebfd46a0bf6be
Author: Christophe Milard <christophe.milard(a)linaro.org>
Date: Tue Sep 13 12:05:18 2016 +0200
linux-generic: _fdserver: fixing comment typo
Signed-off-by: Christophe Milard <christophe.milard(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/platform/linux-generic/_fdserver.c b/platform/linux-generic/_fdserver.c
index bf36eb2..97661d0 100644
--- a/platform/linux-generic/_fdserver.c
+++ b/platform/linux-generic/_fdserver.c
@@ -103,7 +103,7 @@ typedef struct fd_server_msg {
* Send a fdserver_msg, possibly including a file descriptor, on the socket
* This function is used both by:
* -the client (sending a FD_REGISTER_REQ with a file descriptor to be shared,
- * or FD_LOOKUP_REQ/FD_DEREGISTER_REQ without a file descirptor)
+ * or FD_LOOKUP_REQ/FD_DEREGISTER_REQ without a file descriptor)
* -the server (sending FD_REGISTER_ACK/NACK, FD_LOOKUP_NACK,
* FD_DEREGISTER_ACK/NACK... without a fd or a
* FD_LOOKUP_ACK with a fd)
@@ -165,7 +165,7 @@ static int send_fdserver_msg(int sock, int command,
* given socket.
* This function is used both by:
* -the server (receiving a FD_REGISTER_REQ with a file descriptor to be shared,
- * or FD_LOOKUP_REQ, FD_DEREGISTER_REQ without a file descirptor)
+ * or FD_LOOKUP_REQ, FD_DEREGISTER_REQ without a file descriptor)
* -the client (receiving FD_REGISTER_ACK...without a fd or a FD_LOOKUP_ACK with
* a fd)
* This function make use of the ancillary data (control data) to pass and
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 1 +
platform/linux-generic/_fdserver.c | 4 ++--
2 files changed, 3 insertions(+), 2 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 ea0b2211f1c5d90e1699aa94b3192704fbf6ca91 (commit)
from 1d43e53c96246c5625ae619d0667b179ea8bd4b2 (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 ea0b2211f1c5d90e1699aa94b3192704fbf6ca91
Author: Mike Holmes <mike.holmes(a)linaro.org>
Date: Tue Sep 13 13:35:40 2016 -0400
example: generator: actually use specified default
The help states default is 1000ms. 0 for flood mode, however the
default was incorrectly set to zero.
Signed-off-by: Mike Holmes <mike.holmes(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/example/generator/odp_generator.c b/example/generator/odp_generator.c
index b0053b9..48d7f5f 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -946,6 +946,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args)
appl_args->number = -1;
appl_args->payload = 56;
appl_args->timeout = -1;
+ appl_args->interval = DEFAULT_PKT_INTERVAL;
opterr = 0; /* do not issue errors on helper options */
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--