[lng-odp] [API-NEXT PATCHv4] api: crypto: change iv_len field to feature min-max len

2017-05-19 Thread Balakrishna Garapati
dpdk pmd's require to minatain min, max, inc fields for all crypto capabilitites. By making iv_len to feature like dpdk pmd's it is easier to create cipher entires in odp based on key_len. Signed-off-by: Balakrishna Garapati --- since v1: fixed comments from v1, - u

[lng-odp] [API-NEXT PATCHv3] api: crypto: change iv_len field to feature min-max len

2017-05-17 Thread Balakrishna Garapati
dpdk pmd's require to minatain min, max, inc fields for all crypto capabilitites. By making iv_len to feature like dpdk pmd's it is easier to create cipher entires in odp based on key_len. Signed-off-by: Balakrishna Garapati --- since v1: fixed comments from v1, - u

[lng-odp] [API-NEXT PATCHv2] api: crypto: change iv_len field to feature min-max len

2017-05-17 Thread Balakrishna Garapati
dpdk pmd's require to minatain min, max, inc fields for all crypto capabilitites. By making iv_len to feature like dpdk pmd's it is easier to create cipher entires in odp based on key_len. Signed-off-by: Balakrishna Garapati --- since v1: fixed comments from v1, - u

[lng-odp] [API-NEXT PATCH] api: crypto: change iv_len field to feature min-max len

2017-05-15 Thread Balakrishna Garapati
This change is needed to support dpdk crypto pmd's Signed-off-by: Balakrishna Garapati --- include/odp/api/spec/crypto.h | 12 +++- platform/linux-generic/odp_crypto.c| 8 +-- .../validation/api/crypto/odp_crypto_test_inp.c| 76 +---

[lng-odp] [PATCHv2] linux-generic: decouple odp_errno define from odp-linux

2017-04-05 Thread Balakrishna Garapati
makes it easy to define odp_errno to dpdk rteerrno and fixes linking issues. Signed-off-by: Balakrishna Garapati --- since v1: Fixed the extra blank line platform/linux-generic/Makefile.am| 1 + platform/linux-generic/include/odp_errno_define.h | 26

[lng-odp] [PATCH] linux-generic: decouple odp_errno define from odp-linux

2017-03-30 Thread Balakrishna Garapati
makes it easy to define odp_errno to dpdk rteerrno and fixes linking issues. Signed-off-by: Balakrishna Garapati --- platform/linux-generic/Makefile.am| 1 + platform/linux-generic/include/odp_errno_define.h | 27 +++ platform/linux-generic/include

[lng-odp] [PATCH] validation: packet: do assert on newly created pkt reference

2017-03-29 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- test/common_plat/validation/api/packet/packet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c index 669122a..2ffd924 100644 --- a/test/common_plat

[lng-odp] [PATCH] test: performance: lower the MAX_PKT_SIZE to 1518

2017-03-24 Thread Balakrishna Garapati
"bench_packet_tailroom" test fails on odp-dpdk with the pkt size 2048 leaving no space for tailroom. Signed-off-by: Balakrishna Garapati --- test/common_plat/performance/odp_bench_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common_plat/p

[lng-odp] [PATCHv3] example: hello: set cpu affinity from cgroup

2017-01-09 Thread Balakrishna Garapati
This will resolve the test in ci when using cgroups. odp_hello app fails to set cpu affinity to zero all ways when cgroup doesn't include that cpu in the set. Fixes: https://bugs.linaro.org/show_bug.cgi?id=2806 Signed-off-by: Balakrishna Garapati --- since v2: Added link to bug ex

[lng-odp] [PATCHv2] example: hello: set cpu affinity from cgroup

2017-01-09 Thread Balakrishna Garapati
This will resolve the test in ci when using cgroups. odp_hello app fails to set cpu affinity to zero all ways when cgroup doesn't include that cpu in the set. Signed-off-by: Balakrishna Garapati --- example/hello/odp_hello.c | 19 --- 1 file changed, 16 insertions(

[lng-odp] [PATCH] example: hello: set cpu affinity from cgroup

2017-01-09 Thread Balakrishna Garapati
This will resolve the test in ci when using cgroups Signed-off-by: Balakrishna Garapati --- example/hello/odp_hello.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/example/hello/odp_hello.c b/example/hello/odp_hello.c index 6d114ee..59a31b2 100644 --- a

[lng-odp] [PATCHv4] platform: linux-generic: reading cpu affinity from cpuset

2016-12-06 Thread Balakrishna Garapati
With this new proposal cpu affinity is read correctly especially when using cgroups otherwise wrong cpu mask is set. Fixes bug: https://bugs.linaro.org/show_bug.cgi?id=2472 Signed-off-by: Balakrishna Garapati --- since v3: Renaming function call platform/linux-generic/odp_cpumask.c | 73

[lng-odp] [PATCHv3] platform: linux-generic: reading cpu affinity from cpuset

2016-11-28 Thread Balakrishna Garapati
With this new proposal cpu affinity is read correctly especially when using cgroups otherwise wrong cpu mask is set. Fixes bug: https://bugs.linaro.org/show_bug.cgi?id=2472 Signed-off-by: Balakrishna Garapati --- v1 to v2: added Description of the issue to the patch commit log. v2 to v3

[lng-odp] [PATCHv2] platform: linux-generic: reading cpu affinity from cpuset

2016-11-28 Thread Balakrishna Garapati
With this new proposal cpu affinity is read correctly especially when using cgroups otherwise wrong cpu mask is set. Fixes bug: https://bugs.linaro.org/show_bug.cgi?id=2472 Signed-off-by: Balakrishna Garapati --- platform/linux-generic/odp_cpumask.c | 69 +--- 1

[lng-odp] [PATCH] platform: linux-generic: reading cpu affinity from cpuset

2016-11-28 Thread Balakrishna Garapati
Fixes bug: https://bugs.linaro.org/show_bug.cgi?id=2472 Signed-off-by: Balakrishna Garapati --- With this new proposal cpu affinity is read correctly especialy when using cgroups otherwise wrong cpu mask is set. platform/linux-generic/odp_cpumask.c | 69

[lng-odp] [PATCH] test: validation: updating crypto auth capability check

2016-11-24 Thread Balakrishna Garapati
Add missing capability check on crypto auth algos Signed-off-by: Balakrishna Garapati --- test/common_plat/validation/api/crypto/odp_crypto_test_inp.c | 12 1 file changed, 12 insertions(+) diff --git a/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c b/test

[lng-odp] [API-NEXT PATCH 2/2] linux-generic: Support for md5 512 bit key size

2016-11-11 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- platform/linux-generic/include/odp_crypto_internal.h | 2 +- platform/linux-generic/odp_crypto.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp_crypto_internal.h b/platform/linux

[lng-odp] [API-NEXT PATCH 1/2] api: crypto: Adding crypto authentication algorithm

2016-11-11 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- include/odp/api/spec/crypto.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 0cb8814..1ce547b 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h

[lng-odp] [API-NEXT PATCH 0/2] crypto: Extended key length support for hmac-md5 algo

2016-11-11 Thread Balakrishna Garapati
currently the hamc-md5 is only supported with 96 bit key size but 512 bit key size is needed to support dpdk crypto devices Note: The same patch series was sent before but from master Balakrishna Garapati (2): api: crypto: Adding crypto authentication algorithm linux-generic: Support for md5

[lng-odp] [PATCH 2/2] linux-generic: Support for md5 512 bit key size

2016-11-11 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- platform/linux-generic/include/odp_crypto_internal.h | 2 +- platform/linux-generic/odp_crypto.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp_crypto_internal.h b/platform/linux

[lng-odp] [PATCH 1/2] api: crypto: Adding crypto authentication algorithm

2016-11-11 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- include/odp/api/spec/crypto.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index dea1fe9..bfa71cf 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h

[lng-odp] [PATCH 0/2] crypto: Extended key length support for hmac-md5 algo

2016-11-11 Thread Balakrishna Garapati
currently the hamc-md5 is only supported with 92 bit key size but 512 bit key size is needed to support dpdk crypto devices Balakrishna Garapati (2): api: crypto: Adding crypto authentication algorithm linux-generic: Support for md5 512 bit key size include/odp/api/spec/crypto.h

[lng-odp] [API-NEXT PATCHv3 2/2] validation: crypto: verify odp crypto capability

2016-04-25 Thread Balakrishna Garapati
test update to verify the crypto capability functionality Signed-off-by: Balakrishna Garapati --- v2: Added the suport to verify if hw offload is supported v3: Move capability initialization to linux-generic (Bill) test/validation/crypto/odp_crypto_test_inp.c | 46

[lng-odp] [API-NEXT PATCHv3 1/2] linux-generic: crypto: capability support

2016-04-25 Thread Balakrishna Garapati
Get the available cipher and authentication algorithms in the odp sw implementation. Signed-off-by: Balakrishna Garapati --- v3: capability initialization (Bill) include/odp/api/spec/crypto.h | 8 platform/linux-generic/odp_crypto.c | 24 2 files

[lng-odp] [API-NEXT PATCHv3 0/2] Implement & Verify crypto capability

2016-04-25 Thread Balakrishna Garapati
This patch series implements linux-generic crypto capability querying and implements corresponding tests Balakrishna Garapati (2): linux-generic: crypto: capability support validation: crypto: verify odp crypto capability include/odp/api/spec/crypto.h| 8 ++--- platform

[lng-odp] [API-NEXT PATCHv2 2/2] validation: crypto: verify odp crypto capability

2016-04-25 Thread Balakrishna Garapati
test update to verify the crypto capability functionality Signed-off-by: Balakrishna Garapati --- v2: Added the suport to verify if hw offload is supported test/validation/crypto/odp_crypto_test_inp.c | 49 1 file changed, 49 insertions(+) diff --git a/test

[lng-odp] [API-NEXT PATCHv2 1/2] linux-generic: crypto: capability support

2016-04-25 Thread Balakrishna Garapati
Get the available cipher and authentication algorithms in the odp sw implementation. Signed-off-by: Balakrishna Garapati --- include/odp/api/spec/crypto.h | 8 platform/linux-generic/odp_crypto.c | 25 + 2 files changed, 29 insertions(+), 4 deletions

[lng-odp] [API-NEXT PATCHv2 0/2] Implement & Verify crypto capability

2016-04-25 Thread Balakrishna Garapati
This patch series implements linux-generic crypto capability querying and implements corresponding tests Balakrishna Garapati (2): linux-generic: crypto: capability support validation: crypto: verify odp crypto capability include/odp/api/spec/crypto.h| 8 ++--- platform

[lng-odp] [API-NEXT PATCH 0/2] Implement & Verify crypto capability

2016-04-25 Thread Balakrishna Garapati
This patch series implements linux-generic crypto capability querying and implements corresponding tests Balakrishna Garapati (2): linux-generic: crypto: capability support validation: crypto: verify odp crypto capability include/odp/api/spec/crypto.h| 8 platform

[lng-odp] [API-NEXT PATCH 1/2] linux-generic: crypto: capability support

2016-04-25 Thread Balakrishna Garapati
Get the available cipher and authentication algorithms in the odp sw implementation. Signed-off-by: Balakrishna Garapati --- include/odp/api/spec/crypto.h | 8 platform/linux-generic/odp_crypto.c | 25 + 2 files changed, 29 insertions(+), 4 deletions

[lng-odp] [API-NEXT PATCH 2/2] validation: crypto: verify odp crypto capability

2016-04-25 Thread Balakrishna Garapati
test update to verify the crypto capability functionality Signed-off-by: Balakrishna Garapati --- test/validation/crypto/odp_crypto_test_inp.c | 28 1 file changed, 28 insertions(+) diff --git a/test/validation/crypto/odp_crypto_test_inp.c b/test/validation/crypto

[lng-odp] [API-NEXT PATCH] validation: crypto: verify odp crypto capability

2016-04-22 Thread Balakrishna Garapati
test update to verify the crypto capability fucntionality Signed-off-by: Balakrishna Garapati --- test/validation/crypto/odp_crypto_test_inp.c | 28 1 file changed, 28 insertions(+) diff --git a/test/validation/crypto/odp_crypto_test_inp.c b/test/validation/crypto

[lng-odp] [API-NEXT PATCH] linux-generic: crypto: capability support

2016-04-22 Thread Balakrishna Garapati
Get the available cipher and authentication algorithms in the odp sw implementation. Signed-off-by: Balakrishna Garapati --- include/odp/api/spec/crypto.h | 8 platform/linux-generic/odp_crypto.c | 25 + 2 files changed, 29 insertions(+), 4 deletions

[lng-odp] [RFC] api: crypto capability support

2016-04-13 Thread Balakrishna Garapati
This RFC provides the support for the applicationis to inquire the given cipher, authentication algorithms Signed-off-by: Balakrishna Garapati --- include/odp/api/spec/crypto.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/odp/api/spec/crypto.h b

[lng-odp] [PATCH] test: performance: return when pkt alloc fails

2016-04-11 Thread Balakrishna Garapati
Resolving https://bugs.linaro.org/show_bug.cgi?id=2135 by return over packet allocation failure. Signed-off-by: Balakrishna Garapati --- test/performance/odp_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index fe1c7b4

[lng-odp] [PATCHv3] test: performance: Avoid possible out-of-bounds memory access

2016-04-05 Thread Balakrishna Garapati
Resolving https://bugs.linaro.org/show_bug.cgi?id=2136 by initializing definite number of worker threads. Signed-off-by: Balakrishna Garapati --- v1: Fix for the https://bugs.linaro.org/show_bug.cgi?id=2136 v2: comments from v1 v3: Adding commit message test/performance/odp_crypto.c | 10

[lng-odp] [PATCHv2] test/performance:Avoid possible out-of-bounds memory access

2016-04-04 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- v1: Fix for the https://bugs.linaro.org/show_bug.cgi?id=2136 v2: comments from v1 test/performance/odp_crypto.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c

[lng-odp] [PATCH] test/performance:Avoid possible out-of-bounds memory access

2016-04-04 Thread Balakrishna Garapati
Resolving https://bugs.linaro.org/show_bug.cgi?id=2136 by initializing definite number of worker threads. Signed-off-by: Balakrishna Garapati --- test/performance/odp_crypto.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/performance/odp_crypto.c b/test

[lng-odp] [PATCH] test:performance:add break statement to switch(opt)

2016-03-25 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- v1:Fixes missing break between switch(opt) https://bugs.linaro.org/show_bug.cgi?id=2137 test/performance/odp_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index 5fd339d

[lng-odp] [PATCH] test:performance:initialize undefined values

2016-03-25 Thread Balakrishna Garapati
Signed-off-by: Balakrishna Garapati --- v1:fix for valgrind erros from crypto test https://bugs.linaro.org/show_bug.cgi?id=2141 test/performance/odp_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/performance/odp_crypto.c b/test/performance/odp_crypto.c index 5fd339d