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 5ffbdadc12513adb3e8847692d51963cab223084 (commit)
from c709c9f1f235551c27f8db14f7c947f334b10d98 (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 5ffbdadc12513adb3e8847692d51963cab223084
Author: Bill Fischofer <bill.fischofer(a)linaro.org>
Date: Thu Dec 22 06:43:44 2016 -0600
test: perf: add assert since src_idx cannot be negative
Address Bug https://bugs.linaro.org/show_bug.cgi?id=2790 by adding an
assert. odp_packet_input_index() only returns a negative value if the
packet did not originate on an I/O interface, which is known to be false
here.
Signed-off-by: Bill Fischofer <bill.fischofer(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/test/common_plat/performance/odp_l2fwd.c b/test/common_plat/performance/odp_l2fwd.c
index 8dc4dbe..82c3a25 100644
--- a/test/common_plat/performance/odp_l2fwd.c
+++ b/test/common_plat/performance/odp_l2fwd.c
@@ -20,6 +20,7 @@
#include <unistd.h>
#include <errno.h>
#include <inttypes.h>
+#include <assert.h>
#include <test_debug.h>
@@ -353,6 +354,7 @@ static int run_worker_sched_mode(void *arg)
/* packets from the same queue are from the same interface */
src_idx = odp_packet_input_index(pkt_tbl[0]);
+ assert(src_idx >= 0);
dst_idx = gbl_args->dst_port_from_idx[src_idx];
fill_eth_addrs(pkt_tbl, pkts, dst_idx);
-----------------------------------------------------------------------
Summary of changes:
test/common_plat/performance/odp_l2fwd.c | 2 ++
1 file changed, 2 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 c709c9f1f235551c27f8db14f7c947f334b10d98 (commit)
via 5d2595d1b470497c7fa04fe698f79a5f0346e5b8 (commit)
via ad6219e3682d94fb8971261936ace46399ed2085 (commit)
from 47b343a8f508b1dad511a1498999caa876c12eb5 (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 c709c9f1f235551c27f8db14f7c947f334b10d98
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Dec 23 22:23:20 2016 +0300
scripts/build-pktio-dpdk: do not download full dpdk git
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/scripts/build-pktio-dpdk b/scripts/build-pktio-dpdk
index 280f518..36727dd 100755
--- a/scripts/build-pktio-dpdk
+++ b/scripts/build-pktio-dpdk
@@ -10,9 +10,9 @@ if [ "$?" != "0" ]; then
echo "Error: pcap is not installed. You may need to install libpcap-dev"
fi
-git clone http://dpdk.org/git/dpdk dpdk
+git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v16.07 http://dpdk.org/git/dpdk dpdk
pushd dpdk
-git checkout -b bv16.07 v16.07
+git log --oneline --decorate
#Make and edit DPDK configuration
make config T=${TARGET} O=${TARGET}
commit 5d2595d1b470497c7fa04fe698f79a5f0346e5b8
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Dec 23 22:23:19 2016 +0300
travis: accelerate dpdk cloning
No need to download full history of dpdk for CI runs.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/.travis.yml b/.travis.yml
index 0bab50e..03e61b1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,9 +36,9 @@ before_install:
- export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
# DPDK pktio
- TARGET=${TARGET:-"x86_64-native-linuxapp-gcc"}
- - git clone http://dpdk.org/git/dpdk dpdk
+ - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v16.07 http://dpdk.org/git/dpdk dpdk
- pushd dpdk
- - git checkout -b bv16.07 v16.07
+ - git log --oneline --decorate
- make config T=${TARGET} O=${TARGET}
- pushd ${TARGET}
- sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config
commit ad6219e3682d94fb8971261936ace46399ed2085
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Dec 23 22:23:18 2016 +0300
travis: do not print dpdk build log
print only stderr on building dpdk to have log more
readable for odp things.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/.travis.yml b/.travis.yml
index adf3307..0bab50e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -43,7 +43,7 @@ before_install:
- pushd ${TARGET}
- sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config
- popd
- - make install T=${TARGET} EXTRA_CFLAGS="-fPIC"
+ - make install T=${TARGET} EXTRA_CFLAGS="-fPIC" > /dev/null
- popd
script:
-----------------------------------------------------------------------
Summary of changes:
.travis.yml | 6 +++---
scripts/build-pktio-dpdk | 4 ++--
2 files changed, 5 insertions(+), 5 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 b18dc645a68fd0ae50f1a361aa408b3e74e46c0d (commit)
from 29dde30264da8106d64328b0d81eb19dad0065ac (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 b18dc645a68fd0ae50f1a361aa408b3e74e46c0d
Author: Joe Savage <joe.savage(a)arm.com>
Date: Wed Jan 4 14:52:35 2017 +0000
helper: fix odph_ipv4_csum functions for L3 offset 0
Fix a bug where odph_ipv4_csum_{valid, update} would interpret an L3
offset of zero as a sign that the packet has no L3 offset.
Signed-off-by: Joe Savage <joe.savage(a)arm.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/helper/include/odp/helper/ip.h b/helper/include/odp/helper/ip.h
index 4cfc00f..ba6e675 100644
--- a/helper/include/odp/helper/ip.h
+++ b/helper/include/odp/helper/ip.h
@@ -101,17 +101,18 @@ ODP_STATIC_ASSERT(sizeof(odph_ipv4hdr_t) == ODPH_IPV4HDR_LEN,
*/
static inline int odph_ipv4_csum_valid(odp_packet_t pkt)
{
+ uint32_t offset;
odp_u16be_t res = 0;
uint16_t *w;
int nleft = sizeof(odph_ipv4hdr_t);
odph_ipv4hdr_t ip;
odp_u16be_t chksum;
- if (!odp_packet_l3_offset(pkt))
+ offset = odp_packet_l3_offset(pkt);
+ if (offset == ODP_PACKET_OFFSET_INVALID)
return 0;
- odp_packet_copy_to_mem(pkt, odp_packet_l3_offset(pkt),
- sizeof(odph_ipv4hdr_t), &ip);
+ odp_packet_copy_to_mem(pkt, offset, sizeof(odph_ipv4hdr_t), &ip);
w = (uint16_t *)(void *)&ip;
chksum = ip.chksum;
@@ -137,10 +138,10 @@ static inline odp_u16sum_t odph_ipv4_csum_update(odp_packet_t pkt)
odph_ipv4hdr_t *ip;
int nleft = sizeof(odph_ipv4hdr_t);
- if (!odp_packet_l3_offset(pkt))
+ ip = (odph_ipv4hdr_t *)odp_packet_l3_ptr(pkt, NULL);
+ if (ip == NULL)
return 0;
- ip = (odph_ipv4hdr_t *)odp_packet_l3_ptr(pkt, NULL);
w = (uint16_t *)(void *)ip;
ip->chksum = odph_chksum(w, nleft);
return ip->chksum;
-----------------------------------------------------------------------
Summary of changes:
helper/include/odp/helper/ip.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 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 29b05df013426838fe166084fed9f1d56c59ebed (commit)
from 54c15b2da776d8c71366a2f952998be23933d6de (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 29b05df013426838fe166084fed9f1d56c59ebed
Author: Christophe Milard <christophe.milard(a)linaro.org>
Date: Wed Dec 21 13:55:56 2016 +0100
linux-gen: _ishm: fixing typos
Fixing a set of iritating typos. just in comments.
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/_ishm.c b/platform/linux-generic/_ishm.c
index 6d5b752..23f620d 100644
--- a/platform/linux-generic/_ishm.c
+++ b/platform/linux-generic/_ishm.c
@@ -76,7 +76,7 @@
/*
* Maximum number of internal shared memory blocks.
*
- * This the the number of separate ISHM areas that can be reserved concurrently
+ * This is the number of separate ISHM areas that can be reserved concurrently
* (Note that freeing such blocks may take time, or possibly never happen
* if some of the block ownwers never procsync() after free). This number
* should take that into account)
@@ -240,7 +240,7 @@ static void procsync(void);
* Take a piece of the preallocated virtual space to fit "size" bytes.
* (best fit). Size must be rounded up to an integer number of pages size.
* Possibly split the fragment to keep track of remaining space.
- * Returns the allocated fragment (best_fragmnt) and the corresponding address.
+ * Returns the allocated fragment (best_fragment) and the corresponding address.
* External caller must ensure mutex before the call!
*/
static void *alloc_fragment(uintptr_t size, int block_index, intptr_t align,
@@ -286,11 +286,11 @@ static void *alloc_fragment(uintptr_t size, int block_index, intptr_t align,
/*
* if there is room between previous fragment and new one, (due to
- * alignement requirement) then fragment (split) the space between
+ * alignment requirement) then fragment (split) the space between
* the end of the previous fragment and the beginning of the new one:
*/
if (border - (uintptr_t)(*best_fragmnt)->start > 0) {
- /* frangment space, i.e. take a new fragment descriptor... */
+ /* fragment space, i.e. take a new fragment descriptor... */
rem_fragmnt = ishm_ftbl->unused_fragmnts;
if (!rem_fragmnt) {
ODP_ERR("unable to get shmem fragment descriptor!\n.");
@@ -320,7 +320,7 @@ static void *alloc_fragment(uintptr_t size, int block_index, intptr_t align,
if (remainder == 0)
return (*best_fragmnt)->start;
- /* otherwise, frangment space, i.e. take a new fragment descriptor... */
+ /* otherwise, fragment space, i.e. take a new fragment descriptor... */
rem_fragmnt = ishm_ftbl->unused_fragmnts;
if (!rem_fragmnt) {
ODP_ERR("unable to get shmem fragment descriptor!\n.");
@@ -515,7 +515,7 @@ static void delete_file(ishm_block_t *block)
* performs the mapping, possibly allocating a fragment of the pre-reserved
* VA space if the _ODP_ISHM_SINGLE_VA flag was given.
* Sets fd, and returns the mapping address.
- * This funstion will also set the _ODP_ISHM_SINGLE_VA flag if the alignment
+ * This function will also set the _ODP_ISHM_SINGLE_VA flag if the alignment
* requires it
* Mutex must be assured by the caller.
*/
@@ -736,7 +736,7 @@ static void procsync(void)
last = ishm_proctable->nb_entries;
while (i < last) {
- /* if the procecess sequence number doesn't match the main
+ /* if the process sequence number doesn't match the main
* table seq number, this entry is obsolete
*/
block = &ishm_tbl->block[ishm_proctable->entry[i].block_index];
@@ -1065,7 +1065,7 @@ static int block_free(int block_index)
}
/*
- * Free and unmap internal shared memory, intentified by its block number:
+ * Free and unmap internal shared memory, identified by its block number:
* return -1 on error. 0 if OK.
*/
int _odp_ishm_free_by_index(int block_index)
@@ -1081,7 +1081,7 @@ int _odp_ishm_free_by_index(int block_index)
}
/*
- * free and unmap internal shared memory, intentified by its block name:
+ * free and unmap internal shared memory, identified by its block name:
* return -1 on error. 0 if OK.
*/
int _odp_ishm_free_by_name(const char *name)
@@ -1492,8 +1492,8 @@ static int do_odp_ishm_term_local(void)
* Go through the table of visible blocks for this process,
* decreasing the refcnt of each visible blocks, and issuing
* warning for those no longer referenced by any process.
- * Note that non-referenced blocks are nor freeed: this is
- * deliberate as this would imply that the sementic of the
+ * Note that non-referenced blocks are not freed: this is
+ * deliberate as this would imply that the semantic of the
* freeing function would differ depending on whether we run
* with odp_thread as processes or pthreads. With this approach,
* the user should always free the blocks manually, which is
@@ -1699,7 +1699,7 @@ int _odp_ishm_status(const char *title)
fragmnt; fragmnt = fragmnt->next)
nb_unused_frgments++;
- ODP_DBG("ishm: %d fragment used. %d fragements unused. (total=%d)\n",
+ ODP_DBG("ishm: %d fragment used. %d fragments unused. (total=%d)\n",
nb_used_frgments, nb_unused_frgments,
nb_used_frgments + nb_unused_frgments);
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/_ishm.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 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 29dde30264da8106d64328b0d81eb19dad0065ac (commit)
from 92ae191876c39a3f5d4fba63e58dd9e8c444239b (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 29dde30264da8106d64328b0d81eb19dad0065ac
Author: Stanislaw Kardach <kda(a)semihalf.com>
Date: Wed Dec 28 16:12:52 2016 +0100
helper: do not break odp_term_global protocol
As per API documentation, odp_term_global() should be a final ODP call
when terminating the ODP application in a controlled way. Therefore ODP
threads or sub-processes created using ODP helper API should not call
this function but leave it to the main application thread/process.
Signed-off-by: Stanislaw Kardach <kda(a)semihalf.com>
Reviewed-by: Christophe Milard <christophe.milard(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/helper/linux.c b/helper/linux.c
index 7bd0b07..1f009cd 100644
--- a/helper/linux.c
+++ b/helper/linux.c
@@ -42,8 +42,6 @@ static void *odp_run_start_routine(void *arg)
if (ret < 0)
ODPH_ERR("Local term failed\n");
- else if (ret == 0 && odp_term_global(thr_params->instance))
- ODPH_ERR("Global term failed\n");
return ret_ptr;
}
@@ -277,8 +275,6 @@ static void *odpthread_run_start_routine(void *arg)
if (ret < 0)
ODPH_ERR("Local term failed\n");
- else if (ret == 0 && odp_term_global(thr_params->instance))
- ODPH_ERR("Global term failed\n");
/* for process implementation of odp threads, just return status... */
if (start_args->linuxtype == ODPTHREAD_PROCESS)
-----------------------------------------------------------------------
Summary of changes:
helper/linux.c | 4 ----
1 file changed, 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, next has been updated
via 4f87885fe0d7301cc8ff7da6d925c18a09e7e6be (commit)
from ec84962de6f2b392bbde9e8ebc802781979b95dc (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 4f87885fe0d7301cc8ff7da6d925c18a09e7e6be
Author: Bill Fischofer <bill.fischofer(a)linaro.org>
Date: Wed Dec 28 14:33:12 2016 -0600
api: pktio: pktio documentation typo correction
Signed-off-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/packet_io.h b/include/odp/api/spec/packet_io.h
index 2dabfcc..85cd6d1 100644
--- a/include/odp/api/spec/packet_io.h
+++ b/include/odp/api/spec/packet_io.h
@@ -189,7 +189,7 @@ typedef struct odp_pktin_queue_param_t {
/** Number of input queues to be created
*
- * When classifier is enabled in odp_ipktin_queue_config() this
+ * When classifier is enabled in odp_pktin_queue_config() this
* value is ignored, otherwise at least one queue is required.
* More than one input queues require flow hashing configured.
* The maximum value is defined by pktio capability 'max_input_queues'.
-----------------------------------------------------------------------
Summary of changes:
include/odp/api/spec/packet_io.h | 2 +-
1 file changed, 1 insertion(+), 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 54c15b2da776d8c71366a2f952998be23933d6de (commit)
from c237528646417ba4056118b9e95ca1f690489274 (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 54c15b2da776d8c71366a2f952998be23933d6de
Author: Bill Fischofer <bill.fischofer(a)linaro.org>
Date: Wed Dec 28 14:33:12 2016 -0600
api: pktio: pktio documentation typo correction
Signed-off-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/packet_io.h b/include/odp/api/spec/packet_io.h
index 2dabfcc..85cd6d1 100644
--- a/include/odp/api/spec/packet_io.h
+++ b/include/odp/api/spec/packet_io.h
@@ -189,7 +189,7 @@ typedef struct odp_pktin_queue_param_t {
/** Number of input queues to be created
*
- * When classifier is enabled in odp_ipktin_queue_config() this
+ * When classifier is enabled in odp_pktin_queue_config() this
* value is ignored, otherwise at least one queue is required.
* More than one input queues require flow hashing configured.
* The maximum value is defined by pktio capability 'max_input_queues'.
-----------------------------------------------------------------------
Summary of changes:
include/odp/api/spec/packet_io.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--