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 9fa4b3c5efa041351ba915ca35b3dfe252ecb34c (commit)
from 983712f43845f8fa7967039d2fd067f9a3ecba20 (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 -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/include/odp_buffer_internal.h | 7 +++----
platform/linux-generic/pktio/ipc.c | 7 -------
2 files changed, 3 insertions(+), 11 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, next has been updated
via 9fa4b3c5efa041351ba915ca35b3dfe252ecb34c (commit)
from 983712f43845f8fa7967039d2fd067f9a3ecba20 (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 9fa4b3c5efa041351ba915ca35b3dfe252ecb34c
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Dec 16 17:27:35 2016 +0300
linux-gen: pktio ipc: fix clang build
clang is more clever on setting and not using variables,
so it traps compilation. Also buffers header almost everywhere
reference by pointer so size of it should not impact on
performance.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer(a)linaro.org>
diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h
index 903f0a7..4cc51d3 100644
--- a/platform/linux-generic/include/odp_buffer_internal.h
+++ b/platform/linux-generic/include/odp_buffer_internal.h
@@ -64,11 +64,10 @@ struct odp_buffer_hdr_t {
struct {
void *hdr;
uint8_t *data;
-#ifdef _ODP_PKTIO_IPC
- /* ipc mapped process can not walk over pointers,
- * offset has to be used */
+ /* Used only if _ODP_PKTIO_IPC is set.
+ * ipc mapped process can not walk over pointers,
+ * offset has to be used */
uint64_t ipc_data_offset;
-#endif
uint32_t len;
} seg[CONFIG_PACKET_MAX_SEGS];
diff --git a/platform/linux-generic/pktio/ipc.c b/platform/linux-generic/pktio/ipc.c
index 5f26b56..c9df043 100644
--- a/platform/linux-generic/pktio/ipc.c
+++ b/platform/linux-generic/pktio/ipc.c
@@ -459,12 +459,7 @@ static int ipc_pktio_recv_lockless(pktio_entry_t *pktio_entry,
if (odp_unlikely(pool == ODP_POOL_INVALID))
ODP_ABORT("invalid pool");
-#ifdef _ODP_PKTIO_IPC
data_pool_off = phdr->buf_hdr.seg[0].ipc_data_offset;
-#else
- /* compile all function code even if ipc disabled with config */
- data_pool_off = 0;
-#endif
pkt = odp_packet_alloc(pool, phdr->frame_len);
if (odp_unlikely(pkt == ODP_PACKET_INVALID)) {
@@ -590,7 +585,6 @@ static int ipc_pktio_send_lockless(pktio_entry_t *pktio_entry,
data_pool_off = (uint8_t *)pkt_hdr->buf_hdr.seg[0].data -
(uint8_t *)odp_shm_addr(pool->shm);
-#ifdef _ODP_PKTIO_IPC
/* compile all function code even if ipc disabled with config */
pkt_hdr->buf_hdr.seg[0].ipc_data_offset = data_pool_off;
IPC_ODP_DBG("%d/%d send packet %llx, pool %llx,"
@@ -598,7 +592,6 @@ static int ipc_pktio_send_lockless(pktio_entry_t *pktio_entry,
i, len,
odp_packet_to_u64(pkt), odp_pool_to_u64(pool_hdl),
pkt_hdr, pkt_hdr->buf_hdr.seg[0].ipc_data_offset);
-#endif
}
/* Put packets to ring to be processed by other process. */
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/include/odp_buffer_internal.h | 7 +++----
platform/linux-generic/pktio/ipc.c | 7 -------
2 files changed, 3 insertions(+), 11 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 983712f43845f8fa7967039d2fd067f9a3ecba20 (commit)
from 7e0461544a5bb9052d84843c5043c68d34b17ba3 (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 983712f43845f8fa7967039d2fd067f9a3ecba20
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Wed Dec 14 22:57:57 2016 +0300
linux-gen: pktio ipc: tests: remove comment about master-slave
Implementation take care which process to name master and which
slave. Comment is useless.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer(a)linaro.org>
diff --git a/test/linux-generic/pktio_ipc/pktio_ipc1.c b/test/linux-generic/pktio_ipc/pktio_ipc1.c
index 838b672..705c205 100644
--- a/test/linux-generic/pktio_ipc/pktio_ipc1.c
+++ b/test/linux-generic/pktio_ipc/pktio_ipc1.c
@@ -52,9 +52,6 @@ static int pktio_run_loop(odp_pool_t pool)
start_cycle = odp_time_local();
current_cycle = start_cycle;
- /* slave process should always be run after master process to be
- * able to create the same pktio.
- */
for (;;) {
if (run_time_sec) {
cycle = odp_time_local();
diff --git a/test/linux-generic/pktio_ipc/pktio_ipc2.c b/test/linux-generic/pktio_ipc/pktio_ipc2.c
index fb6f994..daf3841 100644
--- a/test/linux-generic/pktio_ipc/pktio_ipc2.c
+++ b/test/linux-generic/pktio_ipc/pktio_ipc2.c
@@ -49,9 +49,6 @@ static int ipc_second_process(int master_pid)
wait = odp_time_local_from_ns(run_time_sec * ODP_TIME_SEC_IN_NS);
start_cycle = odp_time_local();
- /* slave process should always be run after master process to be
- * able to create the same pktio.
- */
for (;;) {
/* exit loop if time specified */
if (run_time_sec) {
-----------------------------------------------------------------------
Summary of changes:
test/linux-generic/pktio_ipc/pktio_ipc1.c | 3 ---
test/linux-generic/pktio_ipc/pktio_ipc2.c | 3 ---
2 files changed, 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, api-next has been updated
via 03ec3dcd7ed9d55b91d58d6969114e7de71b88fe (commit)
via e454f36a4a7c70dafd87eab03b3ba740dc10860a (commit)
via 27a05a1d61f3b7e4d58ac0e89db43db069dcc9a3 (commit)
from 362035d60fda8a566636aa5ba58250a8fae9169b (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 03ec3dcd7ed9d55b91d58d6969114e7de71b88fe
Merge: 362035d e454f36
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Thu Dec 15 22:28:01 2016 +0300
Merge branch 'master' into api-next
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 1 -
example/traffic_mgmt/odp_traffic_mgmt.c | 20 ++++++++++++--------
2 files changed, 12 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, master has been updated
via e454f36a4a7c70dafd87eab03b3ba740dc10860a (commit)
from 27a05a1d61f3b7e4d58ac0e89db43db069dcc9a3 (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 e454f36a4a7c70dafd87eab03b3ba740dc10860a
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Tue Dec 13 16:34:31 2016 +0300
configure.ac: do not disable shared lib for non abi mode
After discussion on mailing list there is case to support
shared library for non abi compatibility mode.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
diff --git a/configure.ac b/configure.ac
index 20ec479..54d62f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -253,7 +253,6 @@ AC_ARG_ENABLE([abi-compat],
[if test "x$enableval" = "xno"; then
ODP_ABI_COMPAT=0
abi_compat=no
- enable_shared=no
#if there is no ABI compatibility the .so numbers are meaningless
ODP_LIBSO_VERSION=0:0:0
fi])
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 1 -
1 file changed, 1 deletion(-)
hooks/post-receive
--