[dpdk-dev] [PATCH v3] examples/ipsec-secgw: fix pointer to local outside scope

2016-11-07 Thread Fan Zhang
Coverity issue: 137871 Fixes: 0d547ed03717 ("examples/ipsec-secgw: support configuration file") Signed-off-by: Fan Zhang --- examples/ipsec-secgw/parser.c | 116 +++--- 1 file changed, 52 insertions(+), 64 deletions(-) diff --git a/examples/i

[dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix pointer to local outside scope

2016-11-07 Thread Fan Zhang
Coverity issue: 137871 Fixes: 0d547ed03717 ("examples/ipsec-secgw: support configuration file") Signed-off-by: Fan Zhang --- examples/ipsec-secgw/parser.c | 120 -- 1 file changed, 58 insertions(+), 62 deletions(-) diff --git a/examples/i

[dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix copy into fixed size buffer issue

2016-11-07 Thread Fan Zhang
Fixes: 0d547ed0 ("examples/ipsec-secgw: support configuration file") Coverity issue: 137875 Signed-off-by: Fan Zhang --- examples/ipsec-secgw/sa.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c ind

[dpdk-dev] [PATCH] examples/ipsec-secgw: fix pointer to local outside scope

2016-11-03 Thread Fan Zhang
Fixes: 0d547ed03717 ("examples/ipsec-secgw: support configuration file") Coverity issue: 137871 Signed-off-by: Fan Zhang --- examples/ipsec-secgw/parser.c | 124 +- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/examples/i

[dpdk-dev] [PATCH] examples/ipsec-secgw: fix copy into fixed size buffer issue

2016-11-03 Thread Fan Zhang
Coverity issue: 137875 Fixes: 0d547ed0 ("examples/ipsec-secgw: support configuration file") Signed-off-by: Fan Zhang --- examples/ipsec-secgw/sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 9e2c8a

[dpdk-dev] [PATCH] examples/ipsec-secgw: fix buffer not terminated issue

2016-11-03 Thread Fan Zhang
Fixes: 0d547ed03717 ("examples/ipsec-secgw: support configuration file") Coverity issue: 137855 Signed-off-by: Fan Zhang --- examples/ipsec-secgw/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/parser.c b/examples/ipsec-secgw/pars

[dpdk-dev] [PATCH] examples/ipsec-secgw: fix buffer not null terminated

2016-11-03 Thread Fan Zhang
Fixes: 0d547ed03717 ("examples/ipsec-secgw: support configuration file") Coverity issue: 137854 Signed-off-by: Fan Zhang --- examples/ipsec-secgw/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/parser.c b/examples/ipsec-secgw/pars

[dpdk-dev] [PATCH v6 2/2] examples/ipsec-secgw: add sample configuration files

2016-08-23 Thread Fan Zhang
This patch adds two sample configuration files to ipsec-secgw sample application. The sample configuration files shows how to set-up systems back-to-back that would forward traffic through an IPsec tunnel. Signed-off-by: Fan Zhang --- examples/ipsec-secgw/ep0.cfg | 160

[dpdk-dev] [PATCH v6 1/2] examples/ipsec-secgw: add configuration file support

2016-08-23 Thread Fan Zhang
pplication. Configuration item formats: SP rule format: sp esp \ SA rule format: sa \ Routing rule format: rt Signed-off-by: Fan Zhang --- doc/guides/sample_app_ug/ipsec_secgw.rst | 845 +-- examples/ipsec-secgw/Makefile| 1 + exam

[dpdk-dev] [PATCH v6 0/2] [PATCH 0/2] examples/ipsec_secgw: add configuration file support

2016-08-23 Thread Fan Zhang
ions to SA rules - updated documentation for the new options v3 change: - fix 32-bit compilation error v2 changes: - fix configuration file parsing error. - update doc to remove whitespace tailing errors. Fan Zhang (2): examples/ipsec-secgw: add configuration file support examples/ipsec-secgw:

[dpdk-dev] [PATCH 2/2] examples/ipsec-secgw: add sample configuration files

2016-08-22 Thread Fan Zhang
This patch adds two sample configuration files to ipsec-secgw sample application. The sample configuration files shows how to set-up systems back-to-back that would forward traffic through an IPsec tunnel. Signed-off-by: Fan Zhang --- examples/ipsec-secgw/ep0.cfg | 160

[dpdk-dev] [PATCH 1/2] examples/ipsec-secgw: add configuration file support

2016-08-22 Thread Fan Zhang
pplication. Configuration item formats: SP rule format: sp esp \ SA rule format: sa \ Routing rule format: rt Signed-off-by: Fan Zhang --- doc/guides/sample_app_ug/ipsec_secgw.rst | 845 +-- examples/ipsec-secgw/Makefile| 1 + exam

[dpdk-dev] [PATCH 0/2] examples/ipsec_secgw: add configuration file support

2016-08-22 Thread Fan Zhang
or the new options v3 change: - fix 32-bit compilation error v2 changes: - fix configuration file parsing error. - update doc to remove whitespace tailing errors. Fan Zhang (2): examples/ipsec-secgw: add configuration file support examples/ipsec-secgw: add sample configuration files

[dpdk-dev] [PATCH v4 2/2] examples/ipsec-secgw: add sample configuration files

2016-07-21 Thread Fan Zhang
This patch adds two sample configuration files to ipsec-secgw sample application. The sample configuration files shows how to set-up systems back-to-back that would forward traffic through an IPsec tunnel. Signed-off-by: Fan Zhang --- examples/ipsec-secgw/ep0.cfg | 160

[dpdk-dev] [PATCH v4 1/2] examples/ipsec-secgw: add configuration file support

2016-07-21 Thread Fan Zhang
pplication. Configuration item formats: SP rule format: sp esp \ SA rule format: sa \ Routing rule format: rt Signed-off-by: Fan Zhang --- doc/guides/sample_app_ug/ipsec_secgw.rst | 845 +-- examples/ipsec-secgw/Makefile| 1 + exam

[dpdk-dev] [PATCH v4 0/2] examples/ipsec_secgw: add configuration file support

2016-07-21 Thread Fan Zhang
le parsing error. - update doc to remove whitespace tailing errors. Fan Zhang (2): examples/ipsec-secgw: add configuration file support examples/ipsec-secgw: add sample configuration files doc/guides/sample_app_ug/ipsec_secgw.rst | 845 +-- examples/ipsec-secg

[dpdk-dev] [PATCH v3 2/2] examples/ipsec-secgw: add sample configuration files

2016-07-12 Thread Fan Zhang
This patch adds two sample configuration files to ipsec-secgw sample application. The sample configuration files shows how to set-up systems back-to-back that would forward traffic through an IPsec tunnel. Signed-off-by: Fan Zhang --- examples/ipsec-secgw/ep0.cfg | 119

[dpdk-dev] [PATCH v3 1/2] examples/ipsec-secgw: add configuration file support

2016-07-12 Thread Fan Zhang
pplication. Configuration item formats: SP rule format: sp esp \ SA rule format: sa Routing rule format: rt Signed-off-by: Fan Zhang --- doc/guides/sample_app_ug/ipsec_secgw.rst | 809 --- examples/ipsec-secgw/Makefile| 1 + examples/i

[dpdk-dev] [PATCH v3 0/2] examples/ipsec_secgw: add configuration file support

2016-07-12 Thread Fan Zhang
v2 changes: - fix configuration file parsing error. - update doc to remove whitespace tailing errors. Fan Zhang (2): examples/ipsec-secgw: add configuration file support examples/ipsec-secgw: add sample configuration files doc/guides/sample_app_ug/ipsec_secgw.rst | 809

[dpdk-dev] [PATCH v2 2/2] examples/ipsec-secgw: add sample configuration files

2016-07-11 Thread Fan Zhang
This patch adds two sample configuration files to ipsec-secgw sample application. The sample configuration files shows how to set-up systems back-to-back that would forward traffic through an IPsec tunnel. Signed-off-by: Fan Zhang --- examples/ipsec-secgw/ep0.cfg | 119

[dpdk-dev] [PATCH v2 1/2] examples/ipsec-secgw: add configuration file support

2016-07-11 Thread Fan Zhang
pplication. Configuration item formats: SP rule format: sp esp \ SA rule format: sa Routing rule format: rt Signed-off-by: Fan Zhang --- doc/guides/sample_app_ug/ipsec_secgw.rst | 809 --- examples/ipsec-secgw/Makefile| 1 + examples/i

[dpdk-dev] [PATCH v2 0/2] examples/ipsec_secgw: add configuration file support

2016-07-11 Thread Fan Zhang
parsing error. - update doc to remove whitespace tailing errors. Fan Zhang (2): examples/ipsec-secgw: add configuration file support examples/ipsec-secgw: add sample configuration files doc/guides/sample_app_ug/ipsec_secgw.rst | 809 --- examples/ipsec-secgw/Makefile

[dpdk-dev] [PATCH 2/2] examples/ipsec-secgw: add sample configuration files

2016-07-07 Thread Fan Zhang
This patch adds two sample configuration files to ipsec-secgw sample application. The sample configuration files shows how to set-up systems back-to-back that would forward traffic through an IPsec tunnel. Signed-off-by: Fan Zhang --- examples/ipsec-secgw/ep0.cfg | 119

[dpdk-dev] [PATCH 1/2] examples/ipsec_secgw: add configuration file support

2016-07-07 Thread Fan Zhang
pplication. Configuration item formats: SP rule format: sp esp \ SA rule format: sa Routing rule format: rt Signed-off-by: Fan Zhang --- doc/guides/sample_app_ug/ipsec_secgw.rst | 806 --- examples/ipsec-secgw/Makefile| 1 + examples/i

[dpdk-dev] [PATCH 0/2] examples/ipsec_secgw: add configuration file support

2016-07-07 Thread Fan Zhang
This patchset adds the configuration file supported to ipsec_secgw sample application. Two sample configuration files, ep0.cfg and ep1.cfg are also added to show how to configure two systems back-to-back that would forward traffic through an IPsec tunnel Fan Zhang (2): examples/ipsec_secgw

[dpdk-dev] [PATCH v6 2/2] app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests

2016-06-15 Thread Fan Zhang
This patch adds the HMAC-SHA224 and HMAC-SHA384 digest generation and verification tests to crypto Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.c | 26 app/test/test_cryptodev_aes.h | 296 ++ 2 files changed, 322 insertions(+) diff

[dpdk-dev] [PATCH v6 1/2] app/test: rework the crypto AES unit test

2016-06-15 Thread Fan Zhang
This patch reworks the crypto AES unit test by introducing a new unified test function Signed-off-by: Fan Zhang --- app/test/Makefile |1 + app/test/test_cryptodev.c | 1613 ++-- app/test/test_cryptodev_aes.c

[dpdk-dev] [PATCH v6 0/2] rework crypto AES unit test

2016-06-15 Thread Fan Zhang
patches into one patch v6 *remove unused macro Fan Zhang (2): app/test: rework the crypto AES unit test app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests app/test/Makefile |1 + app/test/test_cryptodev.c | 1613

[dpdk-dev] [PATCH v5 2/2] app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests

2016-06-14 Thread Fan Zhang
This patch adds the HMAC-SHA224 and HMAC-SHA384 digest generation and verification tests to crypto Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.c | 26 app/test/test_cryptodev_aes.h | 296 ++ 2 files changed, 322 insertions(+) diff

[dpdk-dev] [PATCH v5 1/2] app/test: reworks the crypto AES unit test

2016-06-14 Thread Fan Zhang
This patch reworks the crypto AES unit test by introducing a new unified test function Signed-off-by: Fan Zhang --- app/test/Makefile |1 + app/test/test_cryptodev.c | 1613 ++-- app/test/test_cryptodev_aes.c

[dpdk-dev] [PATCH v5 0/2] app/test: rework crypto AES unit test

2016-06-14 Thread Fan Zhang
r AES-NI MB PMD" (http://dpdk.org/ml/archives/dev/2016-June/040222.html) v2 *fix session not freed after the test finished problem *remove l2fwd-crypto sample application patch v3 *fix clang compile error v4 *fix the misplaced commit in the v3 patchset v5 *squash several patches into one patch

[dpdk-dev] [PATCH v4 4/4] app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests

2016-06-13 Thread Fan Zhang
This patch adds the HMAC-SHA224 and HMAC-SHA384 digest generation and verification tests to crypto Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.c | 26 app/test/test_cryptodev_aes.h | 296 ++ 2 files changed, 322 insertions(+) diff

[dpdk-dev] [PATCH v4 3/4] app/test: utilize new unified crypto AES test function

2016-06-13 Thread Fan Zhang
This patch replaces the AES test code with new unified crypto AES test function. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 1613 ++-- app/test/test_cryptodev_aes_ctr_test_vectors.h | 257 2 files changed, 122 insertions(+), 1748

[dpdk-dev] [PATCH v4 2/4] app/test: add unified crypto aes test

2016-06-13 Thread Fan Zhang
This patch adds a new crypto AES unified test function. Signed-off-by: Fan Zhang --- app/test/Makefile | 1 + app/test/test_cryptodev_aes.c | 663 ++ app/test/test_cryptodev_aes.h | 6 + 3 files changed, 670 insertions(+) create mode

[dpdk-dev] [PATCH v4 1/4] app/test: categorize crypto AES test vectors into new file

2016-06-13 Thread Fan Zhang
This patch accumulates crypto AES test vectors into a new header file. Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.h | 822 ++ 1 file changed, 822 insertions(+) create mode 100755 app/test/test_cryptodev_aes.h diff --git a/app/test

[dpdk-dev] [PATCH v4 0/4] app/test: rework crypto AES unit test

2016-06-13 Thread Fan Zhang
r AES-NI MB PMD" (http://dpdk.org/ml/archives/dev/2016-June/040222.html) v2 *fix session not freed after the test finished problem *remove l2fwd-crypto sample application patch v3 *fix clang compile error v4 *fix the misplaced commit in the v3 patchset Fan Zhang (4): app/test: categorize cry

[dpdk-dev] [PATCH v3 4/4] app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests

2016-06-13 Thread Fan Zhang
This patch adds the HMAC-SHA224 and HMAC-SHA384 digest generation and verification tests to crypto Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.c | 26 app/test/test_cryptodev_aes.h | 296 ++ 2 files changed, 322 insertions(+) diff

[dpdk-dev] [PATCH v3 3/4] app/test: utilize new unified crypto AES test function

2016-06-13 Thread Fan Zhang
This patch replaces the AES test code with new unified crypto AES test function. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 1613 ++-- app/test/test_cryptodev_aes.c |6 +- app/test/test_cryptodev_aes_ctr_test_vectors.h

[dpdk-dev] [PATCH v3 2/4] app/test: add unified crypto aes test

2016-06-13 Thread Fan Zhang
This patch adds a new crypto AES unified test function. Signed-off-by: Fan Zhang --- app/test/Makefile | 1 + app/test/test_cryptodev_aes.c | 663 ++ app/test/test_cryptodev_aes.h | 6 + 3 files changed, 670 insertions(+) create mode

[dpdk-dev] [PATCH v3 1/4] app/test: categorize crypto AES test vectors into new file

2016-06-13 Thread Fan Zhang
This patch accumulates crypto AES test vectors into a new header file. Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.h | 822 ++ 1 file changed, 822 insertions(+) create mode 100755 app/test/test_cryptodev_aes.h diff --git a/app/test

[dpdk-dev] [PATCH v3 0/4] app/test: rework crypto AES unit test

2016-06-13 Thread Fan Zhang
r AES-NI MB PMD" (http://dpdk.org/ml/archives/dev/2016-June/040222.html) v2 *fix session not freed after the test finished problem *remove l2fwd-crypto sample application patch v3 *fix clang compile error Fan Zhang (4): app/test: categorize crypto AES test vectors into new file app/test: ad

[dpdk-dev] [PATCH v2 4/4] app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests

2016-06-08 Thread Fan Zhang
This patch adds the HMAC-SHA224 and HMAC-SHA384 digest generation and verification tests to crypto Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.c | 26 app/test/test_cryptodev_aes.h | 296 ++ 2 files changed, 322 insertions(+) diff

[dpdk-dev] [PATCH v2 3/4] app/test: utilize new unified crypto AES test function

2016-06-08 Thread Fan Zhang
This patch replaces the AES test code with new unified crypto AES test function. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 1613 ++-- app/test/test_cryptodev_aes_ctr_test_vectors.h | 257 2 files changed, 122 insertions(+), 1748

[dpdk-dev] [PATCH v2 2/4] app/test: add unified crypto aes test

2016-06-08 Thread Fan Zhang
This patch adds a new crypto AES unified test function. Signed-off-by: Fan Zhang --- app/test/Makefile | 1 + app/test/test_cryptodev_aes.c | 663 ++ app/test/test_cryptodev_aes.h | 6 + 3 files changed, 670 insertions(+) create mode

[dpdk-dev] [PATCH v2 1/4] app/test: categorize crypto AES test vectors into new file

2016-06-08 Thread Fan Zhang
This patch accumulates crypto AES test vectors into a new header file. Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.h | 822 ++ 1 file changed, 822 insertions(+) create mode 100755 app/test/test_cryptodev_aes.h diff --git a/app/test

[dpdk-dev] [PATCH v2 0/4] app/test: rework crypto AES unit test

2016-06-08 Thread Fan Zhang
r AES-NI MB PMD" (http://dpdk.org/ml/archives/dev/2016-June/040222.html) v2 *fix session not freed after the test finished problem *remove l2fwd-crypto sample application patch Fan Zhang (4): app/test: categorize crypto AES test vectors into new file app/test: add unified crypto aes test a

[dpdk-dev] [PATCH v2 3/3] examples/l2fwd-crypto: enable AES counter mode cipher algorithm

2016-06-03 Thread Fan Zhang
This patch enables AES counter mode algorithm support to l2fwd-crypto sample application. Signed-off-by: Fan Zhang --- examples/l2fwd-crypto/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index d18c813..66fc874 100644

[dpdk-dev] [PATCH v2 2/3] app/test: add aes-ni multi-buffer pmd test cases for AES CTR

2016-06-03 Thread Fan Zhang
Added tests cases for AES-NI MB PMD working in counter mode. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 13 + 1 file changed, 13 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 03d6f02..45e6daa 100644 --- a/app/test

[dpdk-dev] [PATCH v2 1/3] aesni_mb: add counter mode support

2016-06-03 Thread Fan Zhang
This patch provides counter mode support to AES-NI multi-buffer library. The following cipher algorithm is enabled: - RTE_CRYPTO_CIPHER_AES_CTR Signed-off-by: Fan Zhang --- doc/guides/cryptodevs/aesni_mb.rst | 3 +++ doc/guides/cryptodevs/overview.rst | 6 +++--- doc

[dpdk-dev] [PATCH v2 0/3] Add AES Counter mode support for AES-NI MB PMD

2016-06-03 Thread Fan Zhang
ot; (http://dpdk.org/ml/archives/dev/2016-May/038364.html) v2: *added AES counter mode support to l2fwd-crypto sample application Fan Zhang (3): aesni_mb: add counter mode support app/test: add aes-ni multi-buffer pmd test cases for AES CTR examples/l2fwd-crypto: enable AES counter mode ci

[dpdk-dev] [PATCH 5/5] examples/l2fwd-crypto: enable AES counter mode cipher algorithm

2016-05-31 Thread Fan Zhang
This patch enables AES counter mode algorithm support to l2fwd-crypto sample application. Signed-off-by: Fan Zhang --- examples/l2fwd-crypto/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index d18c813..66fc874 100644

[dpdk-dev] [PATCH 4/5] app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests

2016-05-31 Thread Fan Zhang
This patch adds the HMAC-SHA224 and HMAC-SHA384 digest generation and verification tests to crypto Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.c | 26 app/test/test_cryptodev_aes.h | 296 ++ 2 files changed, 322 insertions(+) diff

[dpdk-dev] [PATCH 3/5] app/test: utilize new unified crypto AES test function

2016-05-31 Thread Fan Zhang
This patch replaces the AES test code with new unified crypto AES test function. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 1613 ++-- app/test/test_cryptodev_aes_ctr_test_vectors.h | 257 2 files changed, 122 insertions(+), 1748

[dpdk-dev] [PATCH 2/5] app/test: add unified crypto aes test

2016-05-31 Thread Fan Zhang
This patch adds a new crypto AES unified test function. Signed-off-by: Fan Zhang --- app/test/Makefile | 1 + app/test/test_cryptodev_aes.c | 662 ++ app/test/test_cryptodev_aes.h | 6 + 3 files changed, 669 insertions(+) create mode

[dpdk-dev] [PATCH 1/5] app/test: categorize crypto AES test vectors into new file

2016-05-31 Thread Fan Zhang
This patch accumulates crypto AES test vectors into a new header file. Signed-off-by: Fan Zhang --- app/test/test_cryptodev_aes.h | 822 ++ 1 file changed, 822 insertions(+) create mode 100755 app/test/test_cryptodev_aes.h diff --git a/app/test

[dpdk-dev] [PATCH 0/5] app/test: rework crypto AES unit test

2016-05-31 Thread Fan Zhang
t; (http://dpdk.org/dev/patchwork/patch/12400/) Fan Zhang (5): app/test: categorize crypto AES test vectors into new file app/test: add unified crypto aes test app/test: utilize new unified crypto AES test function app/test: add crypto AES-CBC-128 HMAC-SHA224 and HMAC-SHA384 unit tests e

[dpdk-dev] [PATCH] examples/l2fwd-crypto: enable AES-XCBC-MAC authentication algorithm

2016-05-25 Thread Fan Zhang
This patch enables AES-XCBC-MAC authentication algorithm support to l2fwd-crypto sample application. Signed-off-by: Fan Zhang --- examples/l2fwd-crypto/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index d4e2d8d..dccba79

[dpdk-dev] [PATCH] doc: fix l2fwd-crypto sample command

2016-05-25 Thread Fan Zhang
Fixes ba7b86b1 ("doc: add l2fwd-crypto sample app guide") Corrected a typo in application name. Corrected authentication algorithm to fit the sample 16-byte authentication key. Signed-off-by: Fan Zhang --- doc/guides/sample_app_ug/l2_forward_crypto.rst | 4 ++-- 1 file changed, 2

[dpdk-dev] [PATCH] examples/l2fwd-crypto: enable AES counter mode cipher algorithm

2016-05-25 Thread Fan Zhang
/dev/patchwork/patch/12465/) "aesni_mb: add counter mode support: (http://dpdk.org/dev/patchwork/patch/12399/) "app/test: add aes-ni multi-buffer pmd test cases for AES CTR" (http://dpdk.org/dev/patchwork/patch/12400/) Signed-off-by: Fan Zhang --- examples/l2fwd-crypto/main.c

[dpdk-dev] [PATCH v2] doc: announce ABI change of struct rte_port_source_params and rte_port_sink_params

2016-05-19 Thread Fan Zhang
The ABI changes are planned for rte_port_source_params and rte_port_sink_params, which will be supported from release 16.11. Here announces that ABI changes in detail. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 8 1 file changed

[dpdk-dev] [PATCH v2] examples/ip_pipeline: fix NULL packet processing in source port

2016-05-17 Thread Fan Zhang
. Fixes: 0e1e7d53 ("add pcap file source") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c | 235 ++-- examples/ip_pipeline/init.c | 48 +++- 2 files changed, 24 insertions(+), 259 deletions(-)

[dpdk-dev] [PATCH] examples/ip_pipeline: fix NULL packet processing in source port

2016-05-17 Thread Fan Zhang
This patch fixes the NULL packet processing problem. Originally, the write to NULL packets generated by source port will crash the ip pipeline application. This patch enforces, unless specified, a default pcap file path to be read. Fixes: 0e1e7d53 ("add pcap file source") Signed-o

[dpdk-dev] [PATCH 2/2] doc: announce ABI change of struct rte_port_sink_params

2016-05-16 Thread Fan Zhang
The ABI changes are planned for rte_port_sink_params, which will be supported from release 16.11. Here announces that ABI changes in detail. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 4 1 file changed, 4 insertions(+) diff --git

[dpdk-dev] [PATCH 1/2] doc: announce ABI change of struct rte_port_source_params

2016-05-16 Thread Fan Zhang
The ABI changes are planned for rte_port_source_params, which will be supported from release 16.11. Here announces that ABI changes in detail. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 4 1 file changed, 4 insertions(+) diff --git

[dpdk-dev] [PATCH 0/2] doc: announce ABI change of struct rte_port_source_params

2016-05-16 Thread Fan Zhang
The ABI changes are planned for rte_port_source_params and rte_port_sink_params, which will be supported from release 16.11. Here announces that ABI changes in detail. Fan Zhang (2): doc: announce ABI change of struct rte_port_source_params doc: announce ABI change of struct

[dpdk-dev] [PATCH 2/2] app/test: add aes-ni multi-buffer pmd test cases for AES CTR

2016-05-05 Thread Fan Zhang
Added tests cases for AES-NI MB PMD working in counter mode. Signed-off-by: Fan Zhang --- app/test/test_cryptodev.c | 13 + 1 file changed, 13 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 03d6f02..45e6daa 100644 --- a/app/test

[dpdk-dev] [PATCH 1/2] aesni_mb: add counter mode support

2016-05-05 Thread Fan Zhang
This patch provides counter mode support to AES-NI multi-buffer library. The following cipher algorithm is enabled: - RTE_CRYPTO_CIPHER_AES_CTR Signed-off-by: Fan Zhang --- doc/guides/cryptodevs/aesni_mb.rst | 3 +++ doc/guides/cryptodevs/overview.rst | 6 +++--- doc

[dpdk-dev] [PATCH 0/2] Add AES Counter mode support for AES-NI MB PMD

2016-05-05 Thread Fan Zhang
.org/ml/archives/dev/2016-May/038364.html) Fan Zhang (2): aesni_mb: add counter mode support app/test: add aes-ni multi-buffer pmd test cases for AES CTR app/test/test_cryptodev.c | 13 + doc/guides/cryptodevs/aesni_mb.rst | 3 +++ doc/guides/cry

[dpdk-dev] [PATCH] app/test/test_table_acl: fill missing field

2016-04-01 Thread Fan Zhang
This patch fills the missing field of ipv4_5tuple structure in acl table test. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- app/test/test_table_acl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test/test_table_acl.c b/app/test/test_table_acl.c index

[dpdk-dev] [PATCH 3/3] port: code clean-up

2016-04-01 Thread Fan Zhang
This patch clean-up the code in librte_port. The clean-up includes the following: * Clearer error message display. * Remove unnecessary RTE_NEXT_ABI macro warping. * Remove __rte_unused attribute Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- lib/librte_port/Makefile

[dpdk-dev] [PATCH 2/3] port: fix sink port parameter check

2016-04-01 Thread Fan Zhang
Fixes: eb5f411 ("port: add pcap file dump") This patch fixes sink port parameter checking logic. Originally, if user set field "file_name" with meaning value but leave PCAP support feature disabled, the program simply ignores this field without notifying the user. Signed-off-

[dpdk-dev] [PATCH 0/3] bug fix and code clean-up

2016-04-01 Thread Fan Zhang
This patchset fixes d4b4213 and eb5f411, plus code clean-up of port library. Acked-by: Cristian Dumitrescu Fan Zhang (3): port: fix source port parameter check port: fix sink port parameter check port: code clean-up lib/librte_port/Makefile | 5 - lib/librte_port

[dpdk-dev] [PATCH] examples/ip_pipeline: fix pcap file parsing

2016-04-01 Thread Fan Zhang
Fixes: fe5d046 ("examples/ip_pipeline: add pcap file dump") This patch fixes the pcap file parsing in ip_pipeline. Originally, the parser recognizes the pcap related entries regardless of the RTE_PORT_PCAP macro definition status. Signed-off-by: Fan Zhang Acked-by: Cristian

[dpdk-dev] [PATCH] port: fix source and sink port

2016-04-01 Thread Fan Zhang
Fixes: eb5f411 ("port: add pcap file dump") This patch fixes pcap supporting logic. The fix includes: * Adding logic to detect illegal parameter. * Clearer error message display. * Remove unnecessary RTE_NEXT_ABI macro warping. * Code clean-up Signed-off-by: Fan Zhang Acked-by

[dpdk-dev] [PATCH] doc: announce ABI change for rte_port_source_params structure

2016-03-31 Thread Fan Zhang
Several new fields will be added to structure rte_port_source_params for source port enhancement with pcap file reading support. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides

[dpdk-dev] [PATCH] doc: announce ABI change for rte_port_source_params structure

2016-03-31 Thread Fan Zhang
Several new fields will be added to structure rte_port_source_params for source port enhancement with pcap file reading support. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides

[dpdk-dev] [PATCH] examples/ip_pipeline: fix flow classification pipeline

2016-03-31 Thread Fan Zhang
Fixes: examples/ip_pipeline: config parser clean-up This patch fixes the initialization error in flow classification pipeline. Originally, when there is no key_mask specified in the CFG file, all '0' mask is utilized. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- .../pipeline

[dpdk-dev] [PATCH] examples/ip_pipeline: fix configuration parser

2016-03-14 Thread Fan Zhang
Fixes: 377cd98e ("example/ip_pipeline: add link identification") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/examples/ip_pipeline/config_parse.c b/examples/ip_pipeline/conf

[dpdk-dev] [PATCH] app/test/test_table_acl: fix incorrect IP header

2016-03-14 Thread Fan Zhang
This patch fixes the incorrect IP header in ACL table test. Signed-off-by: Fan Zhang --- app/test/test_table_acl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test/test_table_acl.c b/app/test/test_table_acl.c index 38e3a8e..2fc5f24 100644 --- a/app/test

[dpdk-dev] [PATCH v4 4/4] examples/ip_pipeline: add packets dumping to PCAP file support

2016-03-11 Thread Fan Zhang
ossible to disable this feature by removing "pcap_file_wr" and "pcap_n_pkt_wr" lines from the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 2 + examples/ip_pipeline/config_parse.c | 172

[dpdk-dev] [PATCH v4 3/4] lib/librte_port: add packet dumping to PCAP file support in sink port

2016-03-11 Thread Fan Zhang
it continuously dump the packets to the file, or stops at certain dumping This feature shares same CONFIG_RTE_PORT_PCAP compiler option as source port PCAP file support feature. Users can enable or disable this feature by setting CONFIG_RTE_PORT_PCAP compiler option "y" or "n". Signed-off-

[dpdk-dev] [PATCH v4 2/4] example/ip_pipeline: add PCAP file support

2016-03-11 Thread Fan Zhang
. To enable PCAP support to IP pipeline, the compiler option CONFIG_RTE_PORT_PCAP must be set to 'y'. It is possible to disable PCAP support by removing "pcap_file_rd" and "pcap_bytes_rd_per_pkt" lines from the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH v4 1/4] lib/librte_port: add PCAP file support to source port

2016-03-11 Thread Fan Zhang
from a PCAP file. To increase the performance, the packets in the file are loaded to memory initially, and copied to mbufs in circular manner. Users can enable or disable this feature by setting CONFIG_RTE_PORT_PCAP compiler option "y" or "n". Signed-off-by: Fan Zhang Acked-by:

[dpdk-dev] [PATCH v4 0/4] Add PCAP support to source and sink port

2016-03-11 Thread Fan Zhang
-by: Cristian Dumitrescu Fan Zhang (4): lib/librte_port: add PCAP file support to source port example/ip_pipeline: add PCAP file support lib/librte_port: add packet dumping to PCAP file support in sink port examples/ip_pipeline: add packets dumping to PCAP file support config/common_base

[dpdk-dev] [PATCH v3 4/4] examples/ip_pipeline: add packets dumping to PCAP file support

2016-03-09 Thread Fan Zhang
ossible to disable this feature by removing "pcap_file_wr" and "pcap_n_pkt_wr" lines from the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 2 + examples/ip_pipeline/config_parse.c | 172

[dpdk-dev] [PATCH v3 3/4] lib/librte_port: add packet dumping to PCAP file support in sink port

2016-03-09 Thread Fan Zhang
it continuously dump the packets to the file, or stops at certain dumping This feature shares same CONFIG_RTE_PORT_PCAP compiler option as source port PCAP file support feature. Users can enable or disable this feature by setting CONFIG_RTE_PORT_PCAP compiler option "y" or "n". Signed-off-

[dpdk-dev] [PATCH v3 2/4] example/ip_pipeline: add PCAP file support

2016-03-09 Thread Fan Zhang
. To enable PCAP support to IP pipeline, the compiler option CONFIG_RTE_PORT_PCAP must be set to 'y'. It is possible to disable PCAP support by removing "pcap_file_rd" and "pcap_bytes_rd_per_pkt" lines from the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH v3 1/4] lib/librte_port: add PCAP file support to source port

2016-03-09 Thread Fan Zhang
from a PCAP file. To increase the performance, the packets in the file are loaded to memory initially, and copied to mbufs in circular manner. Users can enable or disable this feature by setting CONFIG_RTE_PORT_PCAP compiler option "y" or "n". Signed-off-by: Fan Zhang Acked-by:

[dpdk-dev] [PATCH v3 0/4] Add PCAP support to source and sink port

2016-03-09 Thread Fan Zhang
: *added RTE_NEXT_ABI macro to source port *updated to fit ip_pipeline configuration new code style v2: *fixed source/sink open function returns *removed duplicated code *added clearer error message display on different error messages Acked-by: Cristian Dumitrescu Fan Zhang (4): lib/librte_port: add

[dpdk-dev] [PATCH v2] examples/ip_pipeline: add link identification feature

2016-03-01 Thread Fan Zhang
This patch adds link identification feature to packet framework. To identify a link, user can use both existing port-mask option, or specify PCI device in every LINK section in the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- *v2 To be applied on top of: [dpdk

[dpdk-dev] [PATCH v2] examples/ip_pipeline: CPU utilization measurement and display

2016-02-22 Thread Fan Zhang
rate of specific thread. The CLI command format is shown as following: t headroom Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 8 +++ examples/ip_pipeline/init.c | 8 ++- examples/ip_pipeline/thread.c| 66

[dpdk-dev] [PATCH v2] examples/ip_pipeline: config parser clean-up

2016-02-17 Thread Fan Zhang
This patch updates the pipelne configuration file parser, cleans up nesting if/else conditions, and add clearer error message display. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c| 1008 examples/ip_pipeline

[dpdk-dev] [PATCH v2 4/4] examples/ip_pipeline: add packets dumping to PCAP file support

2016-02-17 Thread Fan Zhang
ossible to disable this feature by removing "pcap_file_wr" and "pcap_n_pkt_wr" lines from the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 2 + examples/ip_pipeline/config_parse.c | 159

[dpdk-dev] [PATCH v2 3/4] lib/librte_port: add packet dumping to PCAP file support in sink port

2016-02-17 Thread Fan Zhang
it continuously dump the packets to the file, or stops at certain dumping This feature shares same CONFIG_RTE_PORT_PCAP compiler option as source port PCAP file support feature. Users can enable or disable this feature by setting CONFIG_RTE_PORT_PCAP compiler option "y" or "n". Signed-off-

[dpdk-dev] [PATCH v2 2/4] example/ip_pipeline: add PCAP file support

2016-02-17 Thread Fan Zhang
. To enable PCAP support to IP pipeline, the compiler option CONFIG_RTE_PORT_PCAP must be set to 'y'. It is possible to disable PCAP support by removing "pcap_file_rd" and "pcap_bytes_rd_per_pkt" lines from the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH v2 1/4] lib/librte_port: add PCAP file support to source port

2016-02-17 Thread Fan Zhang
from a PCAP file. To increase the performance, the packets in the file are loaded to memory initially, and copied to mbufs in circular manner. Users can enable or disable this feature by setting CONFIG_RTE_PORT_PCAP compiler option "y" or "n". Signed-off-by: Fan Zhang Acked-by:

[dpdk-dev] [PATCH v2 0/4] Add PCAP support to source and sink port

2016-02-17 Thread Fan Zhang
: *fixed source/sink open function returns *removed duplicated code *added clearer error message display on different error messages Acked-by: Cristian Dumitrescu Fan Zhang (4): lib/librte_port: add PCAP file support to source port example/ip_pipeline: add PCAP file support lib/librte_port: add

[dpdk-dev] [PATCH] examples/ip_pipeline: config parser clean-up

2016-01-28 Thread Fan Zhang
This patch updates the pipelne configuration file parser, cleans up nesting if/else conditions, and add clearer error message display. Signed-off-by: Fan Zhang --- examples/ip_pipeline/config_parse.c | 798 examples/ip_pipeline/pipeline_be.h | 48 +++ 2

[dpdk-dev] [PATCH] examples/ip_pipeline: add link identification feature

2016-01-28 Thread Fan Zhang
This patch adds link identification feature to packet framework. To identify a link, user can use both existing port-mask option, or specify PCI device in each LINK section in the configuration file. Signed-off-by: Fan Zhang --- examples/ip_pipeline/app.h | 1 + examples/ip_pipeline

[dpdk-dev] [PATCH 4/4] examples/ip_pipeline: add packets dumping to PCAP file support

2016-01-27 Thread Fan Zhang
ossible to disable this feature by removing "pcap_file_wr" and "pcap_n_pkt_wr" lines from the configuration file. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h | 2 + examples/ip_pipeline/config_parse.c | 159

  1   2   >