[lng-odp] [PATCH v3] Test program to measure crypto operation performance.

2015-12-17 Thread alexandru.badicioiu
From: Alexandru Badicioiu Measures the time required to launch and get the result of ODP crypto operations in async and sync API mode with configurable payload size, crypto algorithms and iteration number. Both asynchronous scheduled and polled are supported. In scheduled mode a separate worker t

[lng-odp] [PATCH v1] doc/users-guide: add cryptographic services section

2015-12-15 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- doc/users-guide/users-guide.adoc | 21 + 1 file changed, 21 insertions(+) diff --git a/doc/users-guide/users-guide.adoc b/doc/users-guide/users-guide.adoc index 2e30f3a..7ec7957 100644 --- a/doc/users-guide/us

[lng-odp] [PATCH v2] test: performance: add crypto test

2015-11-04 Thread alexandru.badicioiu
From: Alexandru Badicioiu Test program to measure crypto operation performance. Measures the time required to launch and get the result of ODP crypto operations in async and sync API mode with configurable payload size, crypto algorithms and iteration number. Both asynchronous scheduled and polle

[lng-odp] [PATCH v1] test: performance: add crypto test

2015-11-03 Thread alexandru.badicioiu
From: Alexandru Badicioiu Test program to measure crypto operation performance. Measures the time required to launch and get the result of ODP crypto operations in async and sync API mode with configurable payload size, crypto algorithms and iteration number. Both asynchronous scheduled and polle

[lng-odp] [odp-lng][PATCH v0] test: performance: add crypto test

2015-10-19 Thread alexandru.badicioiu
From: Alexandru Badicioiu Test program to measure crypto operation performance. Measures the time required to launch and get the result of ODP crypto operations in async and sync API mode with configurable payload size, crypto algorithms and iteration number. Both asynchronous scheduled and polle

[lng-odp] [PATCH 1/1] helpers: linux: add application defined counters

2015-09-01 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch provides the applications with helpers to create, update and read counters associated with application defined objects - e.g. IPSec security associations in a multi-threading scenario where multiple threads use the same object. Each worker thread must create a

[lng-odp] [API-NEXT PATCH] api: crypto: add crypto IPSec extension

2015-07-22 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds IPSec protocol processing capabilities to crypto sesssions. Implementations which have these capabilities in hardware crypto engines can use the extension to offload the application from IPSec protocol processing. Signed-off-by: Alexandru Badicioiu ---

[lng-odp] [PATCH v1] examples: ipsec: fix inner IP checksum computation

2015-07-14 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec_stream.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c index a140d36..9c4d682 100644 --- a/example/ipsec/odp_i

[lng-odp] [PATCH 1/2 v3] examples: ipsec: tunnel mode support

2015-06-10 Thread alexandru.badicioiu
From: Alexandru Badicioiu Tunnel mode is enabled from the command line using -t argument with the following format: SrcIP:DstIP:TunnelSrcIP:TunnelDstIP. SrcIP - cleartext packet source IP DstIP - cleartext packet destination IP TunnelSrcIP - tunnel source IP TunnelDstIP - tunnel destination IP T

[lng-odp] [PATCH 1/2 v2] examples: ipsec: tunnel mode support

2015-05-22 Thread alexandru.badicioiu
From: Alexandru Badicioiu v1 - added comment for tunnel DB entry use v2 - fixed tun pointer initialization, new checkpatch compliance Tunnel mode is enabled from the command line using -t argument with the following format: SrcIP:DstIP:TunnelSrcIP:TunnelDstIP. SrcIP - cleartext packet source IP

[lng-odp] [PATCH 1/2 v1] examples: ipsec: tunnel mode support

2015-05-19 Thread alexandru.badicioiu
From: Alexandru Badicioiu v1 - added comment for tunnel DB entry use Tunnel mode is enabled from the command line using -t argument with the following format: SrcIP:DstIP:TunnelSrcIP:TunnelDstIP. SrcIP - cleartext packet source IP DstIP - cleartext packet destination IP TunnelSrcIP - tunnel sour

[lng-odp] [PATCH 2/2] examples: ipsec: add run scripts for tunnel mode

2015-05-11 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- example/ipsec/run_ah_in_tun| 13 + example/ipsec/run_ah_out_tun | 13 + example/ipsec/run_both_in_tun | 15 +++ example/ipsec/run_both_out_tun | 15 +++ example/ipsec/

[lng-odp] [PATCH 1/2] examples: ipsec: tunnel mode support

2015-05-11 Thread alexandru.badicioiu
From: Alexandru Badicioiu Tunnel mode is enabled from the command line using -t argument with the following format: SrcIP:DstIP:TunnelSrcIP:TunnelDstIP. SrcIP - cleartext packet source IP DstIP - cleartext packet destination IP TunnelSrcIP - tunnel source IP TunnelDstIP - tunnel destination IP T

[lng-odp] [PATCH 1/1 v1] helpers: fix udp checksum computation

2015-05-05 Thread alexandru.badicioiu
From: Alexandru Badicioiu v1 - fixed compile error due to -Wcast-align Signed-off-by: Alexandru Badicioiu --- helper/include/odp/helper/udp.h | 37 + 1 files changed, 13 insertions(+), 24 deletions(-) diff --git a/helper/include/odp/helper/udp.h b/helper/

[lng-odp] [PATCH 1/1] helpers: fix udp checksum computation

2015-04-30 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- helper/include/odp/helper/udp.h | 35 +++ 1 files changed, 11 insertions(+), 24 deletions(-) diff --git a/helper/include/odp/helper/udp.h b/helper/include/odp/helper/udp.h index 99a96f2..8565bab

[lng-odp] [PATCH 1/1] validation: pktio: fix polling tests

2015-04-30 Thread alexandru.badicioiu
From: Alexandru Badicioiu Some tests poll input queues for packets but the queues are setup as scheduled. Signed-off-by: Alexandru Badicioiu --- test/validation/odp_pktio.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test/validation/odp_pktio.c b/test/va

[lng-odp] [PATCH 1/1] odp_ipsec: handle alloc_pkt_ctx failure

2015-04-11 Thread alexandru.badicioiu
From: Alexandru Badicioiu Application should continue in case a packet context cannot be allocated. Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c

[lng-odp] [PATCH 1/1 v1] examples: odp_ipsec: runtime select multiple vs single deq

2015-04-07 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c|3 +++ example/ipsec/odp_ipsec_stream.c | 27 +++ 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec

[lng-odp] [PATCH 1/1 v1] examples: odp_ipsec: runtime select scheduled vs poll queues

2015-04-07 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c | 64 +++- 1 files changed, 33 insertions(+), 31 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 0cbf5b4..9fb048a 100644 --

[lng-odp] [PATCH 1/1 v1] examples: odp_ipsec: handle alloc_pkt_ctx failure

2015-04-07 Thread alexandru.badicioiu
From: Alexandru Badicioiu Application should continue in case a packet context cannot be allocated. Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c

[lng-odp] [PATCH 1/1 v1] odp_ipsec: runtime select multiple vs single deq

2015-04-02 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c|3 +++ example/ipsec/odp_ipsec_stream.c | 27 +++ 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec

[lng-odp] [PATCH 1/1] odp_ipsec: runtime select multiple vs single deq

2015-04-02 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c|3 +++ example/ipsec/odp_ipsec_stream.c | 19 +++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index

[lng-odp] [PATCH 1/1] odp_ipsec: runtime select scheduled vs poll queues

2015-04-02 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c | 64 +++- 1 files changed, 33 insertions(+), 31 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 0cbf5b4..9fb048a 100644 --

[lng-odp] [PATCH v2] crypto: cunit test suite for rng

2014-12-02 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- test/validation/Makefile.am |1 + test/validation/crypto/odp_crypto_test_rng.c | 30 ++ test/validation/crypto/odp_crypto_test_rng.h | 17 ++ test/validation/crypto/test

[lng-odp] [PATCH] crypto: fix cunit test extern array declaration

2014-11-27 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- test/validation/crypto/odp_crypto_test_async_inp.h |2 +- test/validation/crypto/odp_crypto_test_sync_inp.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/validation/crypto/odp_crypto_test_asyn

[lng-odp] [PATCH v1] crypto: cunit test suite for rng

2014-11-27 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- test/validation/Makefile.am |1 + test/validation/crypto/odp_crypto_test_rng.c | 30 ++ test/validation/crypto/odp_crypto_test_rng.h | 17 ++ test/validation/crypto/test

[lng-odp] [PATCH] odp_ipsec: fix odp_crypto_get_operation_compl_status arg order

2014-11-25 Thread alexandru.badicioiu
From: Alexandru Badicioiu This fixes https://bugs.linaro.org/show_bug.cgi?id=714. Signed-off-by: Alexandru Badicioiu --- example/ipsec/odp_ipsec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index ec115fc..fb06

[lng-odp] [PATCH v0] crypto : cunit test suite for rng

2014-11-24 Thread alexandru.badicioiu
From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- test/validation/Makefile.am |1 + test/validation/crypto/odp_crypto_test_rng.c | 31 ++ test/validation/crypto/odp_crypto_test_rng.h | 18 +++ test/validation/crypto/tes

[lng-odp] [PATCH v1] crypto : use override_iv_ptr when session IV is NULL

2014-11-19 Thread alexandru.badicioiu
From: Alexandru Badicioiu NULL session IV prevents using per operation IV (override_iv_ptr). This fixes *_OVR_IV cunit tests segfaults. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --g

[lng-odp] [PATCH v8] cunit : add tests for crypto APIs

2014-11-18 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for sync and async inplace mode of crypto APIs. Correctness of crypto operation output is verified with known test vectors. Various options and functionalities like use session IV or operation IV for ciphering are exercised for both modes. For asy

[lng-odp] [PATCH v7] cunit : add tests for crypto APIs

2014-11-18 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for sync and async inplace mode of crypto APIs. Correctness of crypto operation output is verified with known test vectors. Various options and functionalities like use session IV or operation IV for ciphering are exercised for both modes. For asy

[lng-odp] [PATCH v6] cunit : add tests for crypto APIs

2014-11-17 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for sync and async inplace mode of crypto APIs. Correctness of crypto operation output is verified with known test vectors. Various options and functionalities like use session IV or operation IV for ciphering are exercised for both modes. For asy

[lng-odp] [PATCH v5] cunit : add tests for crypto APIs

2014-11-14 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for sync and async inplace mode of crypto APIs. Correctness of crypto operation output is verified with known test vectors. Various options and functionalities like use session IV or operation IV for ciphering are exercised for both modes. For asy

[lng-odp] [PATCH v4] cunit : add tests for crypto APIs

2014-11-13 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for sync and async inplace mode of crypto APIs. Correctness of crypto operation output is verified with known test vectors. Various options and functionalities like use session IV or operation IV for ciphering are exercised for both modes. For asy

[lng-odp] [PATCH v3] cunit : add tests for crypto APIs

2014-11-12 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for sync and async inplace mode of crypto APIs. Correctness of crypto operation output is verified with known test vectors. Various options and functionalities like use session IV or operation IV for ciphering are exercised for both modes. For asy

[lng-odp] [PATCH v4] crypto : add stubs for missing functions

2014-11-12 Thread alexandru.badicioiu
From: Alexandru Badicioiu Required by crypto unit testing. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp

[lng-odp] [PATCH v3] odp_crypto.c : Add stubs for missing functions

2014-11-10 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch is required by crypto unit testing. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform

[lng-odp] [PATCH v2 1/1] cunit : add tests for crypto APIs

2014-11-05 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for sync and async inplace mode of crypto APIs. Correctness of crypto operation output is verified with known test vectors. Various options and functionalities like use session IV or operation IV for ciphering are exercised for both modes. For asy

[lng-odp] [PATCH v2 1/1] linux-generic : crypto

2014-11-05 Thread alexandru.badicioiu
From: Alexandru Badicioiu Add missing API functions to crypto implementation. Required by crypto unit testing. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/platform/linu

[lng-odp] [PATCH v2 1/1] cunit : add tests for crypto APIs

2014-10-31 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for async inplace mode of crypto APIs. Correctness of crypto operations output is verified with known test vectors as well as various options and functionalities: use session IV or operation IV for ciphering, use input packet buffer or a separate

[lng-odp] [PATCH v1/1] linux-generic : crypto

2014-10-31 Thread alexandru.badicioiu
From: Alexandru Badicioiu Add missing API functions to crypto implementation. Required by crypto unit testing. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/platform/

[lng-odp] [PATCH v1/1] linux-generic : crypto

2014-10-31 Thread alexandru.badicioiu
From: Alexandru Badicioiu Add missing API functions to crypto implementation. Required by crypto unit testing. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/platform/

[lng-odp] [PATCH v1/1] cunit : add tests for crypto APIs

2014-10-31 Thread alexandru.badicioiu
From: Alexandru Badicioiu This patch adds a suite for async inplace mode of crypto APIs. Correctness of crypto operations output is verified with known test vectors as well as various options and functionalities: use session IV or operation IV for ciphering, use input packet buffer or a separate

[lng-odp] [PATCH 1/1] cunit : add tests for crypto APIs

2014-10-30 Thread alexandru.badicioiu
This patch adds a suite for async inplace mode of crypto APIs. Correctness of crypto operations output is verified with known test vectors as well as various options and functionalities: use session IV or operation IV for ciphering, use input packet buffer or a separate buffer as the completion ev