| 995 | } |
| 996 | |
| 997 | static uint32_t |
| 998 | crypto_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 | |
| 1020 | static int |
| 1021 | crypto_ipsec_2sa_4grp(void) |
no outgoing calls
no test coverage detected