[dpdk-dev] [PATCH] example/ip_pipeline: fix source port mempool assignment

2015-12-04 Thread Fan Zhang
exist in the same pipeline, and the default mempool configuration is used (one MEMPOOL0 is shared between all source ports), the invalid mempool pointer (NULL) will be assigned to source ports other than first source port. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples

[dpdk-dev] [PATCH] example/ip_pipeline: fix config file parse defect

2015-12-10 Thread Fan Zhang
Coverity issue: 120143 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c | 4 1 file changed, 4 insertions(+) diff --git a/examples/ip_pipeline/config_parse.c

[dpdk-dev] [PATCH] example/ip_pipeline: fix buffer size warning

2015-12-11 Thread Fan Zhang
Coverity issue: 107102 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse_tm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/i

[dpdk-dev] [PATCH] example/ip_pipeline: fix logically deadnode defect

2015-12-11 Thread Fan Zhang
Coverity issue: 107109 Fixes: 7122d30131ad ("examples/ip_pipeline: rework flow classification pipeline") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/pipeline/pipeline_flow_classification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[dpdk-dev] [PATCH] example/ip_pipeline: fix overrunning byffer defect

2015-12-11 Thread Fan Zhang
Coverity issue: 107127 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse_tm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/i

[dpdk-dev] [PATCH] example/ip_pipeline: fix value overwrite

2015-12-11 Thread Fan Zhang
Coverity issue: 107136 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/i

[dpdk-dev] [PATCH] example/ip_pipeline: fix copy into fixed size buffer defect

2015-12-11 Thread Fan Zhang
Coverity issue: 107133 Fixes: eb32fe7c5574 ("examples/ip_pipeline: rework initialization parameters") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- *v2 fixed bug: fix possible buff not null terminated bug examples/ip_pipeline/init.c | 3 ++- 1 file changed, 2 insert

[dpdk-dev] [PATCH v2] example/ip_pipeline: fix copy into fixed size buffer defect

2015-12-11 Thread Fan Zhang
Coverity issue: 107133 Fixes: eb32fe7c5574 ("examples/ip_pipeline: rework initialization parameters") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- *v2 fixed bug: fix possible buff not null terminated bug examples/ip_pipeline/init.c | 2 +- 1 file changed, 1 inser

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 v2] ip_pipeline: add flow actions pipeline

2015-11-13 Thread Fan Zhang
functions such as Traffic Metering/marking and policer functions have been implemented as flow-table action handler. Signed-off-by: Maciej Gajdzica Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- *v2 Add CLI command check for pipeline type and update

[dpdk-dev] [PATCH v3] ip_pipeline: add flow actions pipeline

2015-11-18 Thread Fan Zhang
functions such as Traffic Metering/marking and policer functions have been implemented as flow-table action handler. Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- *v2 Add CLI command check for pipeline type and update such check to all existing

[dpdk-dev] [PATCH v4] ip_pipeline: add flow actions pipeline

2015-11-18 Thread Fan Zhang
functions such as Traffic Metering/marking and policer functions have been implemented as flow-table action handler. Signed-off-by: Jasvinder Singh Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- This patch depends on patch "ip_pipeline: add pipeline type validation" http:

[dpdk-dev] [PATCH] example/ip_pipeline: fix resource leak problem.

2015-11-27 Thread Fan Zhang
This patch fix the following Coverity issue: Coverity issue: 120147 Fixes: 7122d30131ad ("examples/ip_pipeline: rework flow classification pipeline") Signed-off-by: Fan Zhang --- .../pipeline/pipeline_flow_classification_be.c | 31 +- 1 file changed, 19

[dpdk-dev] [PATCH] librte_port: fix mbuf allocation in source port and missing

2015-11-30 Thread Fan Zhang
/dropped. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- lib/librte_port/rte_port_source_sink.c | 68 +- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/lib/librte_port/rte_port_source_sink.c b/lib/librte_port/rte_port_source_sink.c

[dpdk-dev] [PATCH] librte_port: fix mbuf allocation in source port

2015-11-30 Thread Fan Zhang
Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- lib/librte_port/rte_port_source_sink.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_port/rte_port_source_sink.c b/lib/librte_port/rte_port_source_sink.c index 234ab18..5e10144 100644 --- a/lib/l

[dpdk-dev] [PATCH] librte_port: fix sink port statistics

2015-11-30 Thread Fan Zhang
Fixes the sink port statistics incomplete problem. The problem was introduced by commit "Packet Framework librte_port: Source/Sink ports" (commit id ef3403fb6f9a3c4b730d2e4fbe7ddc0291ffa992) Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- lib/librte_port/rte_port_source_s

[dpdk-dev] [PATCH 0/2] Add CPU utilization to packet framework

2016-01-27 Thread Fan Zhang
This patchset adds CPU utilization rate computation and CLI command support to packet framework. The thread idle rate is updated once per second. User can use thread CLI command to display it. Fan Zhang (2): examples/ip_pipeline: CPU utilization measurement and rate computation examples

[dpdk-dev] [PATCH 1/2] examples/ip_pipeline: CPU utilization measurement and

2016-01-27 Thread Fan Zhang
. Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/app.h| 7 examples/ip_pipeline/init.c | 5 +++ examples/ip_pipeline/thread.c | 81 +-- examples/ip_pipeline/thread.h | 13 +++ 4 files changed, 104 insertions(+), 2

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

2016-01-27 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_bsdapp

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

2016-01-27 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 3/4] lib/librte_port: add packet dumping to PCAP file support in sink port

2016-01-27 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 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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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] 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] 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 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 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 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 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 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/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 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 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 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 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 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 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 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 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] 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] 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] 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] 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 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 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 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] 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 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 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 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 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 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 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 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:

  1   2   >