MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_mixed_check_if_unsupported

Function test_mixed_check_if_unsupported

dpdk/app/test/test_cryptodev.c:7906–7926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7904}
7905
7906static int
7907test_mixed_check_if_unsupported(const struct mixed_cipher_auth_test_data *tdata)
7908{
7909 uint8_t dev_id = testsuite_params.valid_devs[0];
7910
7911 struct rte_cryptodev_sym_capability_idx cap_idx;
7912
7913 /* Check if device supports particular cipher algorithm */
7914 cap_idx.type = RTE_CRYPTO_SYM_XFORM_CIPHER;
7915 cap_idx.algo.cipher = tdata->cipher_algo;
7916 if (rte_cryptodev_sym_capability_get(dev_id, &cap_idx) == NULL)
7917 return TEST_SKIPPED;
7918
7919 /* Check if device supports particular hash algorithm */
7920 cap_idx.type = RTE_CRYPTO_SYM_XFORM_AUTH;
7921 cap_idx.algo.auth = tdata->auth_algo;
7922 if (rte_cryptodev_sym_capability_get(dev_id, &cap_idx) == NULL)
7923 return TEST_SKIPPED;
7924
7925 return 0;
7926}
7927
7928static int
7929test_mixed_auth_cipher(const struct mixed_cipher_auth_test_data *tdata,

Callers 2

test_mixed_auth_cipherFunction · 0.85

Calls 1

Tested by

no test coverage detected