cryptodev_throughput Test Suite

DPDK cryptodev performance test suite.

The main goal of this test suite is to utilize the dpdk-test-cryptodev application to gather performance metrics for various cryptographic operations supported by DPDK cryptodev-pmd. It will then compare the results against predefined baseline given in the test_config file to ensure performance standards are met.

class Config

Bases: BaseConfig

Performance test metrics.

delta_tolerance

The allowed tolerance below a given baseline.

Type:

float

test_combinations

List of test combinations with cipher/auth algorithms and parameters.

Type:

list[api.cryptodev.types.ThroughputCryptoConfig]

class TestCryptodevThroughput

Bases: TestSuite

DPDK Crypto Device Testing Suite.

set_up_suite() → None

Set up the test suite.

Raises:

ConfigurationError – When a test config contains no algorithm to test.

cipher_only_tests() → None

Cipher only cryptography device tests.

Steps:
  • Run dpdk-test-crypto-perf application with configured arguments in cipher only mode.

Verify:
  • The reported Gbps is within a defined tolerance of a given baseline.

auth_only_tests() → None

Authentication cryptography device tests.

Steps:
  • Run dpdk-test-crypto-perf application with configured parameters in authentication

    only moode.

Verify:
  • The resulting Gbps is within a delta tolerance of a provided baseline.

aead_test() → None

Aead cryptography test.

Steps:
  • Run dpdk-test-crypto-perf application with configured parameters in aead mode.

Verify:
  • The resulting Gbps is within a delta tolerance of a given baseline.

cipher_and_auth_tests() → None

Cipher and Authentication tests.

Steps:
  • Run dpdk-test-crypto-perf application in cipher then authentication mode

Verify:
  • The resulting Gbps is within a delta tolerance of a given baseline.

required_capabilities: ClassVar[set[Capability]] = {LinkTopology.NO_LINK}

The capabilities the test case or suite requires in order to be executed.

topology_type: ClassVar[TopologyCapability] = LinkTopology.NO_LINK

The topology type of the test case or suite.