| 903 | } |
| 904 | |
| 905 | static int |
| 906 | docsis_proto_testsuite_setup(void) |
| 907 | { |
| 908 | struct crypto_testsuite_params *ts_params = &testsuite_params; |
| 909 | uint8_t dev_id = ts_params->valid_devs[0]; |
| 910 | struct rte_cryptodev_info dev_info; |
| 911 | const enum rte_crypto_cipher_algorithm ciphers[] = { |
| 912 | RTE_CRYPTO_CIPHER_AES_DOCSISBPI |
| 913 | }; |
| 914 | |
| 915 | rte_cryptodev_info_get(dev_id, &dev_info); |
| 916 | |
| 917 | if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) || |
| 918 | !(dev_info.feature_flags & |
| 919 | RTE_CRYPTODEV_FF_SECURITY)) { |
| 920 | RTE_LOG(INFO, USER1, "Feature flag requirements for DOCSIS " |
| 921 | "Proto testsuite not met\n"); |
| 922 | return TEST_SKIPPED; |
| 923 | } |
| 924 | |
| 925 | if (check_cipher_capabilities_supported(ciphers, RTE_DIM(ciphers)) != 0) { |
| 926 | RTE_LOG(INFO, USER1, "Capability requirements for DOCSIS Proto " |
| 927 | "testsuite not met\n"); |
| 928 | return TEST_SKIPPED; |
| 929 | } |
| 930 | |
| 931 | return 0; |
| 932 | } |
| 933 | #endif |
| 934 | |
| 935 | static int |
nothing calls this directly
no test coverage detected