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 fb3f36cec108ce9c55241d9f0e66d4832a552b8a (commit)
via 3b31169bee4f036bacbe823c27c9b199fc35fe75 (commit)
via 2cb0edd5820fc7fc14d6f4018a605873fdf47033 (commit)
from d6e2cd7830bd474e78980414ad7046443a4a3720 (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 fb3f36cec108ce9c55241d9f0e66d4832a552b8a
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Fri Sep 8 13:08:36 2017 +0300
configure: call PKG_PROG_PKG_CONFIG explicitly
Since it well might be that first PKG_CHECK_* call ends up under if, it
is required (by pkg-config docs) to call PKG_PROG_PKG_CONFIG explicitly.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(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/configure.ac b/configure.ac
index d4c07a2c..4af2c7c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,8 @@ LT_INIT([])
AC_SUBST([LIBTOOL_DEPS])
AM_PROG_LIBTOOL
+PKG_PROG_PKG_CONFIG
+
# Checks for library functions.
dnl breaks cross-compilation and malloc(0) behaviour is not that important
dnl AC_FUNC_MALLOC
commit 3b31169bee4f036bacbe823c27c9b199fc35fe75
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Fri Sep 8 13:05:52 2017 +0300
test: try detecting CUnit location, if it is not found by pkg-config
CUnit 2.1-2 supplied incorrect cunit.pc file, resulting in pkg-config
failing to detect library. Try checking CUnit header/library in case of
pkg-config failure.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(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/m4/validation.m4 b/test/common_plat/m4/validation.m4
index e303f8f2..78c4ec03 100644
--- a/test/common_plat/m4/validation.m4
+++ b/test/common_plat/m4/validation.m4
@@ -12,7 +12,13 @@ AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ])
##########################################################################
cunit_support=$test_vald
AS_IF([test "x$cunit_support" = "xyes"],
- [PKG_CHECK_MODULES([CUNIT], [cunit])])
+ [PKG_CHECK_MODULES([CUNIT], [cunit], [],
+ [AC_MSG_WARN([pkg-config could not find CUnit, guessing])
+ AC_CHECK_HEADERS([CUnit/Basic.h], [],
+ [AC_MSG_ERROR(["can't find CUnit headers"])])
+ AC_CHECK_LIB([cunit],[CU_get_error], [CUNIT_LIBS="-lcunit"],
+ [AC_MSG_ERROR([CUnit libraries required])])
+])])
AC_SUBST([CUNIT_CFLAGS])
AC_SUBST([CUNIT_LIBS])
commit 2cb0edd5820fc7fc14d6f4018a605873fdf47033
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Tue Sep 5 14:57:47 2017 +0300
DEPENDENCIES: document changes in CUnit localization
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(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/DEPENDENCIES b/DEPENDENCIES
index a194cad1..e309b339 100644
--- a/DEPENDENCIES
+++ b/DEPENDENCIES
@@ -9,12 +9,13 @@ Prerequisites for building the OpenDataPlane (ODP) API
automake
autoconf
libtool
+ pkg-config
On Debian/Ubuntu systems:
- $ sudo apt-get install automake autoconf libtool
+ $ sudo apt-get install automake autoconf libtool pkg-config
On CentOS/RedHat/Fedora systems:
- $ sudo yum install automake autoconf libtool
+ $ sudo yum install automake autoconf libtool pkgconfig
3. Required libraries
@@ -199,11 +200,11 @@ Prerequisites for building the OpenDataPlane (ODP) API
4.0 Packages needed to build API tests
- Cunit test framework version 2.1-3 is required
- Cunit prvodes a framework to run the API test suite that proves conformance to the
+ CUnit test framework version 2.1-3 is required
+ CUnit provides a framework to run the API test suite that proves conformance to the
ODP API. The home page http://cunit.sourceforge.net/doc/introduction.html
-4.1 Native Cunit install
+4.1 Native CUnit install
# Debian/Ubuntu
$ apt-get install libcunit1-dev
@@ -223,7 +224,7 @@ Prerequisites for building the OpenDataPlane (ODP) API
sudo make install
# ... OR ... Install CUnit into user defined location. The same path is
- # used in step 4.4 --with-cunit-path=/home/<my_cunit_path>
+ # used in step 4.4: PKG_CONFIG_PATH=/home/<my_cunit_path>/lib/pkgconfig
./configure --prefix=/home/<my_cunit_path>
make
make install
@@ -232,20 +233,24 @@ Prerequisites for building the OpenDataPlane (ODP) API
# reboot, before trying to run e.g. 'make distcheck'.
sudo ldconfig
-4.3 Cross compile of Cunit
+4.3 Cross compile of CUnit
$ git svn clone http://svn.code.sf.net/p/cunit/code/trunk cunit-code
$ cd cunit-code
$ ./bootstrap
$ ./configure --host=arm-linux-gnueabihf --prefix=/home/${USER}/src/install-cunit
-4.4 Using Cunit with ODP
- $ Add the configuration option to the regular configuration options
- # Use the default path ...
- ./configure --enable-cunit
+4.4 Using CUnit with ODP
- # ... OR the user defined path.
- ./configure --with-cunit-path=/home/<my_cunit_path>
+ Configure will automatically look for CUnit if validation testsuite is
+ enabled. By default it uses pkg-config to locate CUnit. Usually no
+ additional configuration will be required. Few corner cases:
+
+ # User directory installation
+ ./configure PKG_CONFIG_PATH=/home/<my_cunit_path>/lib/pkgconfig
+
+ # ... OR directly specifying flags
+ ./configure CUNIT_CFLAGS="-I/home/<my_cunit_path>/include" CUNIT_LIBS="/home/<my_cunit_path>/lib -lcunit"
5.0 Documentation Images & Doxygen
-----------------------------------------------------------------------
Summary of changes:
DEPENDENCIES | 31 ++++++++++++++++++-------------
configure.ac | 2 ++
test/common_plat/m4/validation.m4 | 8 +++++++-
3 files changed, 27 insertions(+), 14 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 360c1d34b52a2356619b9290811862b9de41de00 (commit)
from 43ea7311f98d1602ab29e9eec4ea9c895d73181d (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 360c1d34b52a2356619b9290811862b9de41de00
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Sep 1 15:33:30 2017 +0300
linux-gen: socket: don't use odp_packet_l2_offset() in _tx_pkt_to_iovec()
A packet may not have valid L2 offset set, so odp_packet_l2_offset() cannot
be used when transmitting packets.
Signed-off-by: Matias Elo <matias.elo(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/platform/linux-generic/pktio/socket.c b/platform/linux-generic/pktio/socket.c
index 130c60d2..5841e244 100644
--- a/platform/linux-generic/pktio/socket.c
+++ b/platform/linux-generic/pktio/socket.c
@@ -697,7 +697,7 @@ static uint32_t _tx_pkt_to_iovec(odp_packet_t pkt,
struct iovec iovecs[MAX_SEGS])
{
uint32_t pkt_len = odp_packet_len(pkt);
- uint32_t offset = odp_packet_l2_offset(pkt);
+ uint32_t offset = 0;
uint32_t iov_count = 0;
while (offset < pkt_len) {
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/pktio/socket.c | 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 a3ca7d17f74e515f9ab4a738191a6a1da96463ab (commit)
via 60d79f29df4ace1eac5ee53fbc4ab153398d36fd (commit)
via 43ea7311f98d1602ab29e9eec4ea9c895d73181d (commit)
via df29614a6174b03d03d44041e13c0c83199e42c3 (commit)
via 77ac5252a71c92e991c3e797c668f30f712ca111 (commit)
via 465069926f1eef1f28b64c4380b552251bcd1841 (commit)
via 1abaebb5e2af4713c9230c9d5d52aa53b01809f5 (commit)
via 9b7b03c4b7983c97ae6bb79df941edb08a60c6b7 (commit)
via 4897f9783e623dfeb0d82e552e9961b603ae9077 (commit)
from 4eae04e80a634c17ac276bb06bce468cbe28cde0 (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 a3ca7d17f74e515f9ab4a738191a6a1da96463ab
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Tue Aug 29 15:39:26 2017 +0300
api: event: add documentation for ODP_EVENT_PACKET_CRYPTO
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(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/event.h b/include/odp/api/spec/event.h
index 2ad3ce84..f924973f 100644
--- a/include/odp/api/spec/event.h
+++ b/include/odp/api/spec/event.h
@@ -77,6 +77,10 @@ extern "C" {
* List of event subtypes:
* - ODP_EVENT_PACKET_BASIC
* - Packet event (odp_packet_t) with basic packet metadata
+ * - ODP_EVENT_PACKET_CRYPTO
+ * - Packet event (odp_packet_t) generated as a result of a Crypto
+ * operation. It contains crypto specific metadata in addition to the
+ * basic packet metadata.
* - ODP_EVENT_PACKET_IPSEC
* - Packet event (odp_packet_t) generated as a result of an IPsec
* operation. It contains IPSEC specific metadata in addition to the basic
commit 60d79f29df4ace1eac5ee53fbc4ab153398d36fd
Merge: 4eae04e8 43ea7311
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Wed Sep 6 17:31:32 2017 +0300
Merge branch 'master' into api-next
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 167 ++++++++++++++++----
include/odp/api/spec/event.h | 4 +
platform/linux-generic/pktio/dpdk.c | 225 ++++++++++++++++++++++++++-
test/common_plat/validation/api/Makefile.inc | 2 +-
4 files changed, 362 insertions(+), 36 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 43ea7311f98d1602ab29e9eec4ea9c895d73181d (commit)
from df29614a6174b03d03d44041e13c0c83199e42c3 (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 43ea7311f98d1602ab29e9eec4ea9c895d73181d
Author: Ilias Apalodimas <ilias.apalodimas(a)linaro.org>
Date: Mon Sep 4 13:02:39 2017 +0300
examples: generator: use clock related functions less when printing
Using odp_time_local() on each iteration consumes too much cpu for
no reason. Netmap pktio reported a boost from ~550kpps to ~1.2Mpps
when odp_generator was used as a receiver on 1Gbit links.
Signed-off-by: Ilias Apalodimas <ilias.apalodimas(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-and-tested-by: <Bogdan Pricope bogdan.pricope(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 df18ea80..cc07cf1d 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -850,11 +850,12 @@ static int gen_recv_thread(void *arg)
*/
static void print_global_stats(int num_workers)
{
- odp_time_t cur, wait, next;
+ odp_time_t cur, wait, next, left;
uint64_t pkts_snd = 0, pkts_snd_prev = 0;
uint64_t pps_snd = 0, maximum_pps_snd = 0;
uint64_t pkts_rcv = 0, pkts_rcv_prev = 0;
uint64_t pps_rcv = 0, maximum_pps_rcv = 0;
+ uint64_t stall;
int verbose_interval = 20;
odp_thrmask_t thrd_mask;
@@ -871,8 +872,15 @@ static void print_global_stats(int num_workers)
}
cur = odp_time_local();
- if (odp_time_cmp(next, cur) > 0)
+ if (odp_time_cmp(next, cur) > 0) {
+ left = odp_time_diff(next, cur);
+ stall = odp_time_to_ns(left);
+ if (stall / ODP_TIME_SEC_IN_NS)
+ sleep(1);
+ else
+ usleep(stall / ODP_TIME_USEC_IN_NS);
continue;
+ }
next = odp_time_sum(cur, wait);
switch (args->appl.mode) {
-----------------------------------------------------------------------
Summary of changes:
example/generator/odp_generator.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
hooks/post-receive
--