| 1274 | } |
| 1275 | |
| 1276 | static int |
| 1277 | esn_testsuite_setup(void) |
| 1278 | { |
| 1279 | struct crypto_testsuite_params *ts_params = &testsuite_params; |
| 1280 | uint8_t dev_id = ts_params->valid_devs[0]; |
| 1281 | struct rte_cryptodev_info dev_info; |
| 1282 | const enum rte_crypto_cipher_algorithm ciphers[] = { |
| 1283 | RTE_CRYPTO_CIPHER_AES_CBC |
| 1284 | }; |
| 1285 | const enum rte_crypto_auth_algorithm auths[] = { |
| 1286 | RTE_CRYPTO_AUTH_SHA1_HMAC |
| 1287 | }; |
| 1288 | |
| 1289 | rte_cryptodev_info_get(dev_id, &dev_info); |
| 1290 | |
| 1291 | if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) || |
| 1292 | ((global_api_test_type == CRYPTODEV_RAW_API_TEST) && |
| 1293 | !(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYM_RAW_DP))) { |
| 1294 | RTE_LOG(INFO, USER1, "Feature flag requirements for ESN " |
| 1295 | "testsuite not met\n"); |
| 1296 | return TEST_SKIPPED; |
| 1297 | } |
| 1298 | |
| 1299 | if (check_cipher_capabilities_supported(ciphers, RTE_DIM(ciphers)) != 0 |
| 1300 | && check_auth_capabilities_supported(auths, |
| 1301 | RTE_DIM(auths)) != 0) { |
| 1302 | RTE_LOG(INFO, USER1, "Capability requirements for ESN " |
| 1303 | "testsuite not met\n"); |
| 1304 | return TEST_SKIPPED; |
| 1305 | } |
| 1306 | |
| 1307 | return 0; |
| 1308 | } |
| 1309 | |
| 1310 | static int |
| 1311 | multi_session_testsuite_setup(void) |
nothing calls this directly
no test coverage detected