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

Function pdcp_test_packet_direction_get

dpdk/app/test/test_pdcp.c:654–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654static uint8_t
655pdcp_test_packet_direction_get(enum pdcp_test_suite_type suite_type, const int index)
656{
657 uint8_t ret;
658
659 switch (suite_type) {
660 case PDCP_TEST_SUITE_TY_BASIC:
661 ret = pdcp_test_packet_direction[index];
662 break;
663 case PDCP_TEST_SUITE_TY_SDAP:
664 ret = list_pdcp_sdap_tests[index].packet_direction;
665 break;
666 default:
667 RTE_LOG(ERR, USER1, "Invalid suite_type: %d\n", suite_type);
668 return -1;
669 }
670
671 return ret;
672}
673
674static enum rte_crypto_cipher_algorithm
675pdcp_test_param_cipher_alg_get(enum pdcp_test_suite_type suite_type, const int index)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected