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 7af8b884256bbab5070996d7897216ae77b758fe (commit)
from f73250fc93346412b526c97de3554ddc9186d7c0 (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 7af8b884256bbab5070996d7897216ae77b758fe
Author: Bill Fischofer <bill.fischofer(a)linaro.org>
Date: Thu Sep 22 14:04:41 2016 -0500
linux-generic: ticketlock: add missing doxygen for ticketlock_inlines.h
Add the missing internal doxygen documentation for the ticketlock_inlines
functions used to accelerate odp-linux even when building with
--enable-abi-compat=yes
Signed-off-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-and-tested-by: Mike Holmes <mike.holmes(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/include/odp/api/plat/ticketlock_inlines.h b/platform/linux-generic/include/odp/api/plat/ticketlock_inlines.h
index 957d22e..87432a7 100644
--- a/platform/linux-generic/include/odp/api/plat/ticketlock_inlines.h
+++ b/platform/linux-generic/include/odp/api/plat/ticketlock_inlines.h
@@ -18,6 +18,11 @@
#include <odp/api/sync.h>
#include <odp/api/cpu.h>
+/** @internal
+ * Acquire ticket lock.
+ *
+ * @param ticketlock Pointer to a ticket lock
+ */
static inline void _odp_ticketlock_lock(odp_ticketlock_t *ticketlock)
{
uint32_t ticket;
@@ -33,6 +38,14 @@ static inline void _odp_ticketlock_lock(odp_ticketlock_t *ticketlock)
odp_cpu_pause();
}
+/** @internal
+ * Try to acquire ticket lock.
+ *
+ * @param tklock Pointer to a ticket lock
+ *
+ * @retval 1 lock acquired
+ * @retval 0 lock not acquired
+ */
static inline int _odp_ticketlock_trylock(odp_ticketlock_t *tklock)
{
/* We read 'next_ticket' and 'cur_ticket' non-atomically which should
@@ -61,6 +74,11 @@ static inline int _odp_ticketlock_trylock(odp_ticketlock_t *tklock)
return 0;
}
+/** @internal
+ * Release ticket lock
+ *
+ * @param ticketlock Pointer to a ticket lock
+ */
static inline void _odp_ticketlock_unlock(odp_ticketlock_t *ticketlock)
{
/* Release the lock by incrementing 'cur_ticket'. As we are the
@@ -73,6 +91,14 @@ static inline void _odp_ticketlock_unlock(odp_ticketlock_t *ticketlock)
odp_atomic_store_rel_u32(&ticketlock->cur_ticket, cur + 1);
}
+/** @internal
+ * Check if ticket lock is locked
+ *
+ * @param ticketlock Pointer to a ticket lock
+ *
+ * @retval 1 the lock is busy (locked)
+ * @retval 0 the lock is available (unlocked)
+ */
static inline int _odp_ticketlock_is_locked(odp_ticketlock_t *ticketlock)
{
/* Compare 'cur_ticket' with 'next_ticket'. Ideally we should read
-----------------------------------------------------------------------
Summary of changes:
.../include/odp/api/plat/ticketlock_inlines.h | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
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 f73250fc93346412b526c97de3554ddc9186d7c0 (commit)
from 79833e86ea0be9e1f337dd4baff096bce7067b51 (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 f73250fc93346412b526c97de3554ddc9186d7c0
Author: Mike Holmes <mike.holmes(a)linaro.org>
Date: Wed Oct 12 14:42:29 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.
Fix odp_l2fwd to specify the timeout it requires to flood mode
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 */
diff --git a/test/common_plat/performance/odp_l2fwd_run.sh b/test/common_plat/performance/odp_l2fwd_run.sh
index e64aa47..757cf53 100755
--- a/test/common_plat/performance/odp_l2fwd_run.sh
+++ b/test/common_plat/performance/odp_l2fwd_run.sh
@@ -32,6 +32,8 @@ TEST_SKIPPED=77
PLATFORM_VALIDATION=${TEST_SRC_DIR}/../../$ODP_PLATFORM/validation
+FLOOD_MODE=0
+
# Use installed pktio env or for make check take it from platform directory
if [ -f "./pktio_env" ]; then
. ./pktio_env
@@ -66,7 +68,7 @@ run_l2fwd()
#@todo: limit odp_generator to cores
#https://bugs.linaro.org/show_bug.cgi?id=1398
- (odp_generator${EXEEXT} -I $IF0 \
+ (odp_generator${EXEEXT} --interval $FLOOD_MODE -I $IF0 \
--srcip 192.168.0.1 --dstip 192.168.0.2 \
-m u 2>&1 > /dev/null) \
2>&1 > /dev/null &
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 1 +
test/common_plat/performance/odp_l2fwd_run.sh | 4 +++-
2 files changed, 4 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, master has been updated
via 79833e86ea0be9e1f337dd4baff096bce7067b51 (commit)
from bf9380296de8cd62c0a8569c1fc775869b8501ab (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 79833e86ea0be9e1f337dd4baff096bce7067b51
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Oct 14 14:23:58 2016 +0300
Revert "test: skip pktio_perf tests on 1 and 2 cpus machines"
This reverts commit bf9380296de8cd62c0a8569c1fc775869b8501ab.
Patch has logic break of original code. if (ret) break is not
correct statement.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/common_plat/performance/odp_pktio_perf.c b/test/common_plat/performance/odp_pktio_perf.c
index 846dfaa..f041b13 100644
--- a/test/common_plat/performance/odp_pktio_perf.c
+++ b/test/common_plat/performance/odp_pktio_perf.c
@@ -34,8 +34,6 @@
#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
@@ -560,7 +558,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 TEST_SKIP;
+ return -1;
}
if (gbl_args->args.num_tx_workers) {
@@ -671,9 +669,8 @@ static int run_test(void)
.warmup = 1,
};
- ret = setup_txrx_masks(&txmask, &rxmask);
- if (ret)
- return ret;
+ if (setup_txrx_masks(&txmask, &rxmask) != 0)
+ return -1;
printf("Starting test with params:\n");
printf("\tTransmit workers: \t%d\n", odp_cpumask_count(&txmask));
@@ -694,11 +691,8 @@ static int run_test(void)
run_test_single(&txmask, &rxmask, &status);
status.warmup = 0;
- while (1) {
+ while (ret > 0)
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, 4 insertions(+), 10 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 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
--