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 29483528be6b0878a73c5b0d34e91dd34ade3f43 (commit)
from 50f15e48f30ddafcbeac77fa5dcfbd8eb6f55353 (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 29483528be6b0878a73c5b0d34e91dd34ade3f43
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Thu Sep 27 11:10:07 2018 +0300
test: ipc: reduce interface start poll frequency
This test fails frequently in Travis since log get filled with
debug prints from odp_pktio_start(). Reduce polling frequency to
once per 50ms. This gives both process time to start up, before
log is filled with unnecessary error messages.
Signed-off-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c b/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
index e704d7a9..4f77306d 100644
--- a/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
+++ b/platform/linux-generic/test/pktio_ipc/pktio_ipc1.c
@@ -96,6 +96,9 @@ static int pktio_run_loop(odp_pool_t pool)
ret = odp_pktio_start(ipc_pktio);
if (!ret)
break;
+
+ /* Reduce polling frequency to once per 50ms */
+ odp_time_wait_ns(50 * ODP_TIME_MSEC_IN_NS);
}
/* packets loop */
diff --git a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c b/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
index 89ebea6d..e6270f89 100644
--- a/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
+++ b/platform/linux-generic/test/pktio_ipc/pktio_ipc2.c
@@ -97,6 +97,9 @@ static int ipc_second_process(int master_pid)
ret = odp_pktio_start(ipc_pktio);
if (!ret)
break;
+
+ /* Reduce polling frequency to once per 50ms */
+ odp_time_wait_ns(50 * ODP_TIME_MSEC_IN_NS);
}
for (;;) {
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/test/pktio_ipc/pktio_ipc1.c | 3 +++
platform/linux-generic/test/pktio_ipc/pktio_ipc2.c | 3 +++
2 files changed, 6 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 50f15e48f30ddafcbeac77fa5dcfbd8eb6f55353 (commit)
from f8e019e23d8348506c1121c73d63ee4e1b584e6e (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 50f15e48f30ddafcbeac77fa5dcfbd8eb6f55353
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Thu Sep 27 10:24:34 2018 +0300
linux-gen: queue: fix error print format
Add missing '%' from printf formats. Also use hex instead of int
format as queue handles are pointers.
Signed-off-by: Petri Savolainen <petri.savolainen(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/odp_queue_basic.c b/platform/linux-generic/odp_queue_basic.c
index 3f00cc11..9eb3c79e 100644
--- a/platform/linux-generic/odp_queue_basic.c
+++ b/platform/linux-generic/odp_queue_basic.c
@@ -559,7 +559,7 @@ static int error_enqueue(odp_queue_t handle, odp_buffer_hdr_t *buf_hdr)
{
(void)buf_hdr;
- ODP_ERR("Enqueue not supported (" PRIu64 ")\n",
+ ODP_ERR("Enqueue not supported (0x%" PRIx64 ")\n",
odp_queue_to_u64(handle));
return -1;
@@ -571,7 +571,7 @@ static int error_enqueue_multi(odp_queue_t handle,
(void)buf_hdr;
(void)num;
- ODP_ERR("Enqueue multi not supported (" PRIu64 ")\n",
+ ODP_ERR("Enqueue multi not supported (0x%" PRIx64 ")\n",
odp_queue_to_u64(handle));
return -1;
@@ -579,7 +579,7 @@ static int error_enqueue_multi(odp_queue_t handle,
static odp_buffer_hdr_t *error_dequeue(odp_queue_t handle)
{
- ODP_ERR("Dequeue not supported (" PRIu64 ")\n",
+ ODP_ERR("Dequeue not supported (0x%" PRIx64 ")\n",
odp_queue_to_u64(handle));
return NULL;
@@ -591,7 +591,7 @@ static int error_dequeue_multi(odp_queue_t handle,
(void)buf_hdr;
(void)num;
- ODP_ERR("Dequeue multi not supported (" PRIu64 ")\n",
+ ODP_ERR("Dequeue multi not supported (0x%" PRIx64 ")\n",
odp_queue_to_u64(handle));
return -1;
@@ -623,7 +623,7 @@ static int queue_info(odp_queue_t handle, odp_queue_info_t *info)
queue_id = queue_to_index(handle);
if (odp_unlikely(queue_id >= ODP_CONFIG_QUEUES)) {
- ODP_ERR("Invalid queue handle:%" PRIu64 "\n",
+ ODP_ERR("Invalid queue handle: 0x%" PRIx64 "\n",
odp_queue_to_u64(handle));
return -1;
}
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_queue_basic.c | 10 +++++-----
1 file 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, monarch_lts has been updated
via b06b87af01c29544a46b7e25b20d099d4850148c (commit)
from 0e9e5654cf04c6f92a3539fec06f6cf51a86168d (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 b06b87af01c29544a46b7e25b20d099d4850148c
Author: Juha-Matti Tilli <juha-matti.tilli(a)iki.fi>
Date: Thu Sep 13 20:13:47 2018 +0300
linux-gen: netmap: remove minimum frame len check
Checking the minimum frame length is unnecessary as netmap drops truncated
frames internally.
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Signed-off-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Juha-Matti Tilli <juha-matti.tilli(a)iki.fi>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/pktio/netmap.c b/platform/linux-generic/pktio/netmap.c
index 3017e403..45b193d1 100644
--- a/platform/linux-generic/pktio/netmap.c
+++ b/platform/linux-generic/pktio/netmap.c
@@ -606,11 +606,6 @@ static inline int netmap_pkt_to_odp(pktio_entry_t *pktio_entry,
return -1;
}
- if (odp_unlikely(len < _ODP_ETH_LEN_MIN)) {
- ODP_ERR("RX: Frame truncated: %" PRIu16 "\n", len);
- return -1;
- }
-
if (pktio_cls_enabled(pktio_entry)) {
if (cls_classify_packet(pktio_entry, (const uint8_t *)buf, len,
len, &pool, &parsed_hdr))
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/pktio/netmap.c | 5 -----
1 file changed, 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 b44cbbbfc148261843b041fbb5b4ea8f8879f44e (commit)
from 461a16705242b1fd7e64b50fcaae57fce7cd7f79 (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 b44cbbbfc148261843b041fbb5b4ea8f8879f44e
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Tue Sep 11 16:35:27 2018 +0300
helper: iplookuptable fix puting values to table
On putting values to table we have to validate input data
and reject unaccepted data (cidr bits - Classless Inter-Domain
Routing is in range of 0 to 32).
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c
index 61f63402..7102eb54 100644
--- a/helper/iplookuptable.c
+++ b/helper/iplookuptable.c
@@ -585,24 +585,25 @@ prefix_insert_into_lx(
odph_iplookup_table_impl *tbl, prefix_entry_t *entry,
uint8_t cidr, odp_buffer_t nexthop, uint8_t level)
{
- uint8_t ret = 0;
+ int ret = 0;
uint32_t i = 0, limit = (1 << (level - cidr));
prefix_entry_t *e = entry, *ne = NULL;
for (i = 0; i < limit; i++, e++) {
- if (e->child == 1) {
- if (e->cidr > cidr)
- continue;
+ if (e->cidr > cidr)
+ continue;
+ if (e->child == 1) {
e->cidr = cidr;
/* push to next level */
ne = (prefix_entry_t *)e->ptr;
ret = prefix_insert_into_lx(
tbl, ne, cidr, nexthop, cidr + 8);
+ if (ret == -1)
+ return -1;
+ if (ret == 0)
+ return ret;
} else {
- if (e->cidr > cidr)
- continue;
-
e->child = 0;
e->cidr = cidr;
e->nexthop = nexthop;
@@ -678,8 +679,9 @@ odph_iplookup_table_put_value(odph_table_t tbl, void *key, void *value)
nexthop = *((odp_buffer_t *)value);
- if (prefix->cidr == 0)
+ if (prefix->cidr == 0 || prefix->cidr > 32)
return -1;
+
prefix->ip = prefix->ip & (0xffffffff << (IP_LENGTH - prefix->cidr));
/* insert into trie */
@@ -899,7 +901,7 @@ odph_iplookup_table_remove_value(odph_table_t tbl, void *key)
ip = prefix->ip;
cidr = prefix->cidr;
- if (cidr == 0)
+ if (cidr == 0 || cidr > 32)
return -EINVAL;
prefix_entry_t *entry = &impl->l1e[ip >> 16];
-----------------------------------------------------------------------
Summary of changes:
helper/iplookuptable.c | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
hooks/post-receive
--