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

Function crypto_ipsec_4grp_check_cnt

dpdk/app/test/test_ipsec.c:997–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997static uint32_t
998crypto_ipsec_4grp_check_cnt(uint32_t grp_ind, struct rte_ipsec_group *grp)
999{
1000 uint32_t rc = 0;
1001
1002 if (grp_ind == 0) {
1003 if (grp[grp_ind].cnt != PKT_4)
1004 rc = TEST_FAILED;
1005 } else if (grp_ind == 1) {
1006 if (grp[grp_ind].cnt != PKT_12 - PKT_4)
1007 rc = TEST_FAILED;
1008 } else if (grp_ind == 2) {
1009 if (grp[grp_ind].cnt != PKT_21 - PKT_12)
1010 rc = TEST_FAILED;
1011 } else if (grp_ind == 3) {
1012 if (grp[grp_ind].cnt != BURST_SIZE - PKT_21)
1013 rc = TEST_FAILED;
1014 } else
1015 rc = TEST_FAILED;
1016
1017 return rc;
1018}
1019
1020static int
1021crypto_ipsec_2sa_4grp(void)

Callers 1

crypto_ipsec_2sa_4grpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected