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

Function test_PDCP_PROTO_all

dpdk/app/test/test_cryptodev.c:11243–11282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11241}
11242
11243static int
11244test_PDCP_PROTO_all(void)
11245{
11246 struct crypto_testsuite_params *ts_params = &testsuite_params;
11247 struct crypto_unittest_params *ut_params = &unittest_params;
11248 struct rte_cryptodev_info dev_info;
11249 int status;
11250
11251 rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);
11252 uint64_t feat_flags = dev_info.feature_flags;
11253
11254 if (!(feat_flags & RTE_CRYPTODEV_FF_SECURITY))
11255 return TEST_SKIPPED;
11256
11257 /* Set action type */
11258 ut_params->type = gbl_action_type == RTE_SECURITY_ACTION_TYPE_NONE ?
11259 RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL :
11260 gbl_action_type;
11261
11262 if (security_proto_supported(ut_params->type,
11263 RTE_SECURITY_PROTOCOL_PDCP) < 0)
11264 return TEST_SKIPPED;
11265
11266 status = test_PDCP_PROTO_cplane_encap_all();
11267 status += test_PDCP_PROTO_cplane_decap_all();
11268 status += test_PDCP_PROTO_uplane_encap_all();
11269 status += test_PDCP_PROTO_uplane_decap_all();
11270 status += test_PDCP_PROTO_SGL_in_place_32B();
11271 status += test_PDCP_PROTO_SGL_oop_32B_128B();
11272 status += test_PDCP_PROTO_SGL_oop_32B_40B();
11273 status += test_PDCP_PROTO_SGL_oop_128B_32B();
11274 status += test_PDCP_SDAP_PROTO_encap_all();
11275 status += test_PDCP_SDAP_PROTO_decap_all();
11276 status += test_PDCP_PROTO_short_mac();
11277
11278 if (status)
11279 return TEST_FAILED;
11280 else
11281 return TEST_SUCCESS;
11282}
11283
11284static int
11285test_ipsec_proto_ipv4_ttl_decrement(void)

Callers

nothing calls this directly

Tested by

no test coverage detected