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 f4c213cccc49b4b28557506ad19fba49b872d24f (commit)
via 3a8ba69bff8052cbe35dcca71ebda9b669dbf807 (commit)
via 160f71a48b5891b49a84cc849f08c1ff99d26b3f (commit)
via 8b9783b7f5667b3a37f039222e06448af2eec070 (commit)
via 036f1d33b5d186a68748a5465713370b1c602545 (commit)
via 91f92891554b9c335e9f51f8ef574b74a37a11fb (commit)
via 86e5b478325a0f5422fc6edff9db168d44852d2e (commit)
via c1e962548f5082554bb52137765a258b3a29283c (commit)
via bd583923b29e5dddc4d1b9c6d0e0a513edb69496 (commit)
from 900dd9e2d3d2ae751ab2bc4e11dbd48ea7ed7030 (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:
.checkpatch.conf | 2 ++
configure.ac | 6 ++++--
helper/hashtable.c | 3 +--
helper/lineartable.c | 3 +--
platform/linux-generic/odp_crypto.c | 3 +++
platform/linux-generic/odp_rwlock.c | 9 +++++++--
platform/linux-generic/odp_schedule.c | 3 ++-
platform/linux-generic/odp_schedule_iquery.c | 2 +-
platform/linux-generic/odp_traffic_mngr.c | 4 ++--
test/common_plat/validation/api/lock/lock.c | 21 +++++++++++++++++++--
10 files changed, 42 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 3a8ba69bff8052cbe35dcca71ebda9b669dbf807 (commit)
from 160f71a48b5891b49a84cc849f08c1ff99d26b3f (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 3a8ba69bff8052cbe35dcca71ebda9b669dbf807
Author: Yi He <yi.he(a)linaro.org>
Date: Tue May 16 06:00:06 2017 +0300
checkpatch.conf: ignore PREFER_PRINTF, PREFER_SCANF
This is not the kernel, ignore these preferences
Signed-off-by: Yi He <yi.he(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/.checkpatch.conf b/.checkpatch.conf
index 1e7d6638..043551a4 100644
--- a/.checkpatch.conf
+++ b/.checkpatch.conf
@@ -6,5 +6,7 @@
--ignore=DEPRECATED_VARIABLE
--ignore=COMPARISON_TO_NULL
--ignore=BIT_MACRO
+--ignore=PREFER_PRINTF
+--ignore=PREFER_SCANF
--codespell
--codespellfile=/usr/share/codespell/dictionary.txt
-----------------------------------------------------------------------
Summary of changes:
.checkpatch.conf | 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 160f71a48b5891b49a84cc849f08c1ff99d26b3f (commit)
from 8b9783b7f5667b3a37f039222e06448af2eec070 (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 160f71a48b5891b49a84cc849f08c1ff99d26b3f
Author: Dmitriy Krot <globaxbiz(a)gmail.com>
Date: Fri May 12 03:00:13 2017 +0300
linux-gen: tm: fix wrr/wfq bug when weight=1
Usage of 0x10000 in the inverted weight calculation causes overflow of
uint16_t if weight=1. As a result of this bug, frame len used for virtual
finish time calculation is always zero, despite of packet size, so packets
from input with weight=1 always pass first.
Signed-off-by: Dmitriy Krot <globaxbiz(a)gmail.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/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic/odp_traffic_mngr.c
index 4e9358b9..a93b3ba9 100644
--- a/platform/linux-generic/odp_traffic_mngr.c
+++ b/platform/linux-generic/odp_traffic_mngr.c
@@ -3238,7 +3238,7 @@ static void tm_sched_params_cvt_to(odp_tm_sched_params_t *odp_sched_params,
if (weight == 0)
inv_weight = 0;
else
- inv_weight = 0x10000 / weight;
+ inv_weight = 0xFFFF / weight;
tm_sched_params->sched_modes[priority] = sched_mode;
tm_sched_params->inverted_weights[priority] = inv_weight;
@@ -3254,7 +3254,7 @@ static void tm_sched_params_cvt_from(tm_sched_params_t *tm_sched_params,
for (priority = 0; priority < ODP_TM_MAX_PRIORITIES; priority++) {
sched_mode = tm_sched_params->sched_modes[priority];
inv_weight = tm_sched_params->inverted_weights[priority];
- weight = 0x10000 / inv_weight;
+ weight = 0xFFFF / inv_weight;
odp_sched_params->sched_modes[priority] = sched_mode;
odp_sched_params->sched_weights[priority] = weight;
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_traffic_mngr.c | 4 ++--
1 file changed, 2 insertions(+), 2 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 8b9783b7f5667b3a37f039222e06448af2eec070 (commit)
from 036f1d33b5d186a68748a5465713370b1c602545 (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 8b9783b7f5667b3a37f039222e06448af2eec070
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Wed May 10 02:47:11 2017 +0300
linux-generic: crypto: don't leak sessions if creation fails
We should free allocated session in odp_crypto_session_create() error
paths, so that the session is not leaked.
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/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c
index b432f84a..c5473d95 100644
--- a/platform/linux-generic/odp_crypto.c
+++ b/platform/linux-generic/odp_crypto.c
@@ -678,6 +678,7 @@ odp_crypto_session_create(odp_crypto_session_param_t *param,
if (session->p.iv.data) {
if (session->p.iv.length > MAX_IV_LEN) {
ODP_DBG("Maximum IV length exceeded\n");
+ free_session(session);
return -1;
}
@@ -724,6 +725,7 @@ odp_crypto_session_create(odp_crypto_session_param_t *param,
/* Check result */
if (rc) {
*status = ODP_CRYPTO_SES_CREATE_ERR_INV_CIPHER;
+ free_session(session);
return -1;
}
@@ -763,6 +765,7 @@ odp_crypto_session_create(odp_crypto_session_param_t *param,
/* Check result */
if (rc) {
*status = ODP_CRYPTO_SES_CREATE_ERR_INV_AUTH;
+ free_session(session);
return -1;
}
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_crypto.c | 3 +++
1 file changed, 3 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 036f1d33b5d186a68748a5465713370b1c602545 (commit)
from 91f92891554b9c335e9f51f8ef574b74a37a11fb (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 036f1d33b5d186a68748a5465713370b1c602545
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Fri May 12 03:00:05 2017 +0300
configure.ac: fix mcx16 vs clang check
Currently configure script outputs the following error on my sistem,
because the syntax is far from being standard. Use standard case/esac
instead.
./configure: line 23507: x86_64-pc-linux-gnu: command not found
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/configure.ac b/configure.ac
index d364b8dd..7569ebe0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -306,7 +306,8 @@ ODP_CFLAGS="$ODP_CFLAGS $ODP_CFLAGS_EXTRA"
##########################################################################
# Check if compiler supports cmpxchng16 on x86-based architectures
##########################################################################
-if "${host}" == i?86* -o "${host}" == x86*; then
+case "${host}" in
+ i?86? | x86*)
if test "${CC}" != "gcc" -o ${CC_VERSION_MAJOR} -ge 5; then
my_save_cflags="$CFLAGS"
@@ -319,7 +320,8 @@ if "${host}" == i?86* -o "${host}" == x86*; then
)
CFLAGS="$my_save_cflags"
fi
-fi
+ ;;
+esac
##########################################################################
# Default include setup
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 6 ++++--
1 file changed, 4 insertions(+), 2 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 c1e962548f5082554bb52137765a258b3a29283c (commit)
from bd583923b29e5dddc4d1b9c6d0e0a513edb69496 (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 c1e962548f5082554bb52137765a258b3a29283c
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Thu May 11 14:48:38 2017 +0300
linux-gen: sched: fix one at a time low priority event scheduling
If CONFIG_BURST_SIZE was set to one low priority events were never
scheduled.
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/odp_schedule.c b/platform/linux-generic/odp_schedule.c
index f366e7ed..f680ac47 100644
--- a/platform/linux-generic/odp_schedule.c
+++ b/platform/linux-generic/odp_schedule.c
@@ -799,7 +799,8 @@ static inline int do_schedule_grp(odp_queue_t *out_queue, odp_event_t out_ev[],
/* Low priorities have smaller batch size to limit
* head of line blocking latency. */
- if (odp_unlikely(prio > ODP_SCHED_PRIO_DEFAULT))
+ if (odp_unlikely(MAX_DEQ > 1 &&
+ prio > ODP_SCHED_PRIO_DEFAULT))
max_deq = MAX_DEQ / 2;
ordered = sched_cb_queue_is_ordered(qi);
diff --git a/platform/linux-generic/odp_schedule_iquery.c b/platform/linux-generic/odp_schedule_iquery.c
index b6924578..b8a40011 100644
--- a/platform/linux-generic/odp_schedule_iquery.c
+++ b/platform/linux-generic/odp_schedule_iquery.c
@@ -1457,7 +1457,7 @@ static inline int consume_queue(int prio, unsigned int queue_index)
/* Low priorities have smaller batch size to limit
* head of line blocking latency.
*/
- if (odp_unlikely(prio > ODP_SCHED_PRIO_DEFAULT))
+ if (odp_unlikely(MAX_DEQ > 1 && prio > ODP_SCHED_PRIO_DEFAULT))
max = MAX_DEQ / 2;
/* For ordered queues we want consecutive events to
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_schedule.c | 3 ++-
platform/linux-generic/odp_schedule_iquery.c | 2 +-
2 files changed, 3 insertions(+), 2 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 bd583923b29e5dddc4d1b9c6d0e0a513edb69496 (commit)
from 79ba737a404d2833ad33d8f84ed6ce82c9a8c18e (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 bd583923b29e5dddc4d1b9c6d0e0a513edb69496
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri May 5 15:49:56 2017 +0300
helper: tables: avoid invalid odp_shm_addr() calls
odp_shm_lookup() return value can be used to detect name conflicts.
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/helper/hashtable.c b/helper/hashtable.c
index 9d411444..f26b18b2 100644
--- a/helper/hashtable.c
+++ b/helper/hashtable.c
@@ -76,8 +76,7 @@ odph_table_t odph_hash_table_create(const char *name, uint32_t capacity,
ODPH_DBG("create para input error!\n");
return NULL;
}
- tbl = (odph_hash_table_imp *)odp_shm_addr(odp_shm_lookup(name));
- if (tbl != NULL) {
+ if (odp_shm_lookup(name) != ODP_SHM_INVALID) {
ODPH_DBG("name already exist\n");
return NULL;
}
diff --git a/helper/lineartable.c b/helper/lineartable.c
index 32c4956e..dd4a5995 100644
--- a/helper/lineartable.c
+++ b/helper/lineartable.c
@@ -55,8 +55,7 @@ odph_table_t odph_linear_table_create(const char *name, uint32_t capacity,
return NULL;
}
/* check name confict in shm*/
- tbl = (odph_linear_table_imp *)odp_shm_addr(odp_shm_lookup(name));
- if (tbl != NULL) {
+ if (odp_shm_lookup(name) != ODP_SHM_INVALID) {
ODPH_DBG("name already exist\n");
return NULL;
}
-----------------------------------------------------------------------
Summary of changes:
helper/hashtable.c | 3 +--
helper/lineartable.c | 3 +--
2 files changed, 2 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, api-next has been updated
via 900dd9e2d3d2ae751ab2bc4e11dbd48ea7ed7030 (commit)
via 15ba8d1e557073921f8fa2cf5eb1e7673052526f (commit)
from 1d01a8cb56618aa062740a2e9ad13898c7aa5a38 (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 900dd9e2d3d2ae751ab2bc4e11dbd48ea7ed7030
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Thu May 11 00:00:05 2017 +0300
api: ipsec: split INLINE capability into in and out pair
Unlike SYNC/ASYNC operation modes, it well might be that the
implementation provides only INLINE support only for inbound or outbound
packets. Let's split the capability into two new caps.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(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/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index f55afe93..9a7404c9 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -241,8 +241,17 @@ typedef struct odp_ipsec_capability_t {
*/
odp_support_t op_mode_async;
- /** Inline IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) support */
- odp_support_t op_mode_inline;
+ /**
+ * Inline inbound IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE)
+ * support
+ */
+ odp_support_t op_mode_inline_in;
+
+ /**
+ * Inline outgoing IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE)
+ * support
+ */
+ odp_support_t op_mode_inline_out;
/** IP Authenticated Header (ODP_IPSEC_AH) support */
odp_support_t proto_ah;
commit 15ba8d1e557073921f8fa2cf5eb1e7673052526f
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Thu May 11 00:00:04 2017 +0300
api: ipsec: add AH capability
RFC4301 marks AH support as MAY instead of MUST. Some platforms might
skip implementing AH. Thus we should provide capability to allow
applications to check if AH is actually implemented or not.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(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/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 59737e63..f55afe93 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -244,6 +244,9 @@ typedef struct odp_ipsec_capability_t {
/** Inline IPSEC operation mode (ODP_IPSEC_OP_MODE_INLINE) support */
odp_support_t op_mode_inline;
+ /** IP Authenticated Header (ODP_IPSEC_AH) support */
+ odp_support_t proto_ah;
+
/**
* Support of pipelined classification (ODP_IPSEC_PIPELINE_CLS) of
* resulting inbound packets
-----------------------------------------------------------------------
Summary of changes:
include/odp/api/spec/ipsec.h | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 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 1d01a8cb56618aa062740a2e9ad13898c7aa5a38 (commit)
from 3ea9c1dac34e0fb4785b0d643056c731daa55e85 (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 1d01a8cb56618aa062740a2e9ad13898c7aa5a38
Author: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Date: Thu May 11 01:00:10 2017 +0300
api: ipsec: mark odp_ipsec_sa_create argument as constant
odp_ipsec_sa_create() should not change its argument. Thus mark it as a
constant.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index e83494d3..59737e63 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -773,7 +773,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param);
*
* @see odp_ipsec_sa_param_init()
*/
-odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param);
+odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param);
/**
* Disable IPSEC SA
diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c
index 5eb1be30..10918dfb 100644
--- a/platform/linux-generic/odp_ipsec.c
+++ b/platform/linux-generic/odp_ipsec.c
@@ -52,7 +52,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param)
memset(param, 0, sizeof(odp_ipsec_sa_param_t));
}
-odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param)
+odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param)
{
(void)param;
-----------------------------------------------------------------------
Summary of changes:
include/odp/api/spec/ipsec.h | 2 +-
platform/linux-generic/odp_ipsec.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--