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

Function crypto_ipsec_4grp

dpdk/app/test/test_ipsec.c:941–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939#define PKT_21 21
940
941static uint32_t
942crypto_ipsec_4grp(uint32_t pkt_num)
943{
944 uint32_t sa_ind;
945
946 /* group packets in 4 different size groups, 2 per SA */
947 if (pkt_num < PKT_4)
948 sa_ind = 0;
949 else if (pkt_num < PKT_12)
950 sa_ind = 1;
951 else if (pkt_num < PKT_21)
952 sa_ind = 0;
953 else
954 sa_ind = 1;
955
956 return sa_ind;
957}
958
959static uint32_t
960crypto_ipsec_4grp_check_mbufs(uint32_t grp_ind, struct rte_ipsec_group *grp)

Calls

no outgoing calls

Tested by

no test coverage detected