[dpdk-dev] [PATCH v2 0/4] Introduce new performance test application

Slawomir Mrozowicz slawomirx.mrozowicz at intel.com
Thu Jan 5 17:49:58 CET 2017


This patchset introduce new application which allows measuring
performance parameters of PMDs available in crypto tree. The goal of
this application is to replace existing performance tests in app/test.
Parameters available are: throughput (--ptest throughput) and latency
(--ptest latency). User can use multiply cores to run tests on but only
one type of crypto PMD can be measured during single application
execution. Cipher parameters, type of device, type of operation and
chain mode have to be specified in the command line as application
parameters. These parameters are checked using device capabilities
structure. 
Couple of new library functions in librte_cryptodev are introduced for
application use.
There added also EAL option to suppresses all log output to stdout.
To build the application a CONFIG_RTE_APP_CRYPTO_PERF flag has to be set
(it is set by default).
Example of usage: -c 0xc0 --vdev crypto_aesni_mb_pmd -w 0000:00:00.0 --
--ptest throughput --devtype crypto_aesni_mb --optype cipher-then-auth
--cipher-algo aes-cbc --cipher-op encrypt --cipher-key-sz 16 --auth-algo
sha1-hmac --auth-op generate --auth-key-sz 64 --auth-digest-sz 12
--total-ops 10000000 --burst-sz 32 --buffer-sz 64

Declan Doherty (3)
  eal: add quiet mode to suppress log output to stdout
  lib/librte_cryptodev: functions for new performance test application
  app/crypto-perf: introduce new performance test application

Slawomir Mrozowicz (2):
  lib/librte_cryptodev: functions for new performance test application
  app/crypto-perf: introduce new performance test application

Marcin Kerlin (2)
  lib/librte_cryptodev: functions for new performance test application
  app/crypto-perf: introduce new performance test application

Piotr Azarewicz (1)
  app/crypto-perf: introduce new performance test application

Michal Kobylinski (1)
  app/crypto-perf: introduce new performance test application

 MAINTAINERS                                     |   4 +
 app/Makefile                                    |   1 +
 app/crypto-perf/Makefile                        |  51 ++
 app/crypto-perf/cperf.h                         |  58 ++
 app/crypto-perf/cperf_ops.c                     | 474 +++++++++++++
 app/crypto-perf/cperf_ops.h                     |  66 ++
 app/crypto-perf/cperf_options.h                 | 104 +++
 app/crypto-perf/cperf_options_parsing.c         | 875 ++++++++++++++++++++++++
 app/crypto-perf/cperf_test_latency.c            | 685 +++++++++++++++++++
 app/crypto-perf/cperf_test_latency.h            |  57 ++
 app/crypto-perf/cperf_test_throughput.c         | 651 ++++++++++++++++++
 app/crypto-perf/cperf_test_throughput.h         |  58 ++
 app/crypto-perf/cperf_test_vector_parsing.c     | 500 ++++++++++++++
 app/crypto-perf/cperf_test_vector_parsing.h     |  73 ++
 app/crypto-perf/cperf_test_vectors.c            | 476 +++++++++++++
 app/crypto-perf/cperf_test_vectors.h            |  98 +++
 app/crypto-perf/cperf_verify_parser.c           | 314 +++++++++
 app/crypto-perf/data/aes_cbc_128_sha.data       | 503 ++++++++++++++
 app/crypto-perf/data/aes_cbc_192_sha.data       | 504 ++++++++++++++
 app/crypto-perf/data/aes_cbc_256_sha.data       | 504 ++++++++++++++
 app/crypto-perf/main.c                          | 411 +++++++++++
 config/common_base                              |   6 +
 doc/guides/rel_notes/release_17_02.rst          |   5 +
 doc/guides/tools/cryptoperf.rst                 | 397 +++++++++++
 doc/guides/tools/index.rst                      |   1 +
 lib/librte_cryptodev/rte_crypto_sym.h           |  16 +
 lib/librte_cryptodev/rte_cryptodev.c            | 181 +++++
 lib/librte_cryptodev/rte_cryptodev.h            | 121 ++--
 lib/librte_cryptodev/rte_cryptodev_version.map  |  10 +
 lib/librte_eal/common/eal_common_log.c          |  13 +
 lib/librte_eal/common/eal_common_options.c      |  10 +-
 lib/librte_eal/common/eal_options.h             |   2 +
 lib/librte_eal/common/include/rte_log.h         |  15 +
 lib/librte_eal/linuxapp/eal/eal_log.c           |   8 +-
 lib/librte_eal/linuxapp/eal/rte_eal_version.map |   8 +
 35 files changed, 7209 insertions(+), 51 deletions(-)
 create mode 100644 app/crypto-perf/Makefile
 create mode 100644 app/crypto-perf/cperf.h
 create mode 100644 app/crypto-perf/cperf_ops.c
 create mode 100644 app/crypto-perf/cperf_ops.h
 create mode 100644 app/crypto-perf/cperf_options.h
 create mode 100644 app/crypto-perf/cperf_options_parsing.c
 create mode 100644 app/crypto-perf/cperf_test_latency.c
 create mode 100644 app/crypto-perf/cperf_test_latency.h
 create mode 100644 app/crypto-perf/cperf_test_throughput.c
 create mode 100644 app/crypto-perf/cperf_test_throughput.h
 create mode 100644 app/crypto-perf/cperf_test_vector_parsing.c
 create mode 100644 app/crypto-perf/cperf_test_vector_parsing.h
 create mode 100644 app/crypto-perf/cperf_test_vectors.c
 create mode 100644 app/crypto-perf/cperf_test_vectors.h
 create mode 100644 app/crypto-perf/cperf_verify_parser.c
 create mode 100644 app/crypto-perf/data/aes_cbc_128_sha.data
 create mode 100644 app/crypto-perf/data/aes_cbc_192_sha.data
 create mode 100644 app/crypto-perf/data/aes_cbc_256_sha.data
 create mode 100644 app/crypto-perf/main.c
 create mode 100644 doc/guides/tools/cryptoperf.rst

-- 
2.5.0



More information about the dev mailing list