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

Function docsis_proto_testsuite_setup

dpdk/app/test/test_cryptodev.c:905–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905static int
906docsis_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
935static int

Callers

nothing calls this directly

Calls 2

rte_cryptodev_info_getFunction · 0.85

Tested by

no test coverage detected