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

Function pdcp_test_bearer_get

dpdk/app/test/test_pdcp.c:592–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592static uint8_t
593pdcp_test_bearer_get(enum pdcp_test_suite_type suite_type, const int index)
594{
595 uint8_t ret;
596
597 switch (suite_type) {
598 case PDCP_TEST_SUITE_TY_BASIC:
599 ret = pdcp_test_bearer[index];
600 break;
601 case PDCP_TEST_SUITE_TY_SDAP:
602 ret = list_pdcp_sdap_tests[index].bearer;
603 break;
604 default:
605 RTE_LOG(ERR, USER1, "Invalid suite_type: %d\n", suite_type);
606 ret = -1;
607
608 }
609
610 return ret;
611}
612
613static enum rte_security_pdcp_domain
614pdcp_test_param_domain_get(enum pdcp_test_suite_type suite_type, const int index)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected