Lines Matching refs:flags

371 		      const struct ipsec_test_flags *flags,  in test_ipsec_td_prepare()  argument
388 if (flags->ipv6) in test_ipsec_td_prepare()
398 if (flags->ipv6) in test_ipsec_td_prepare()
443 if (flags->ah) { in test_ipsec_td_prepare()
448 if (flags->iv_gen) in test_ipsec_td_prepare()
451 if (flags->sa_expiry_pkts_soft) in test_ipsec_td_prepare()
455 if (flags->ip_csum) { in test_ipsec_td_prepare()
460 if (flags->l4_csum) { in test_ipsec_td_prepare()
465 if (flags->transport) { in test_ipsec_td_prepare()
472 if (flags->tunnel_ipv6) in test_ipsec_td_prepare()
480 if (flags->stats_success) in test_ipsec_td_prepare()
483 if (flags->fragment) { in test_ipsec_td_prepare()
490 if (flags->df == TEST_IPSEC_COPY_DF_INNER_0 || in test_ipsec_td_prepare()
491 flags->df == TEST_IPSEC_COPY_DF_INNER_1) in test_ipsec_td_prepare()
494 if (flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_0 || in test_ipsec_td_prepare()
495 flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_1) in test_ipsec_td_prepare()
498 if (flags->dec_ttl_or_hop_limit) in test_ipsec_td_prepare()
507 const struct ipsec_test_flags *flags) in test_ipsec_td_update() argument
516 if (flags->icv_corrupt) { in test_ipsec_td_update()
521 if (flags->sa_expiry_pkts_hard) in test_ipsec_td_update()
525 if (flags->udp_encap) in test_ipsec_td_update()
528 if (flags->udp_ports_verify) in test_ipsec_td_update()
532 flags->tunnel_hdr_verify; in test_ipsec_td_update()
534 if (flags->ip_csum) in test_ipsec_td_update()
537 if (flags->l4_csum) in test_ipsec_td_update()
740 bool silent, const struct ipsec_test_flags *flags) in test_ipsec_td_verify() argument
749 (flags->icv_corrupt || in test_ipsec_td_verify()
750 flags->sa_expiry_pkts_hard || in test_ipsec_td_verify()
751 flags->tunnel_hdr_verify || in test_ipsec_td_verify()
756 flags->udp_encap) { in test_ipsec_td_verify()
786 flags->fragment) { in test_ipsec_td_verify()
801 flags->ip_csum) { in test_ipsec_td_verify()
814 flags->l4_csum) { in test_ipsec_td_verify()
829 flags->dec_ttl_or_hop_limit) { in test_ipsec_td_verify()
836 if (test_ipsec_pkt_update(td_output_text, flags)) { in test_ipsec_td_verify()
881 const struct ipsec_test_flags *flags) in test_ipsec_iph4_hdr_validate() argument
891 if (flags->ah && iph4->next_proto_id != IPPROTO_AH) { in test_ipsec_iph4_hdr_validate()
897 if (flags->df == TEST_IPSEC_COPY_DF_INNER_1 || in test_ipsec_iph4_hdr_validate()
898 flags->df == TEST_IPSEC_SET_DF_1_INNER_0) { in test_ipsec_iph4_hdr_validate()
913 if (flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_1 || in test_ipsec_iph4_hdr_validate()
914 flags->dscp == TEST_IPSEC_SET_DSCP_1_INNER_0) { in test_ipsec_iph4_hdr_validate()
933 const struct ipsec_test_flags *flags) in test_ipsec_iph6_hdr_validate() argument
947 if (flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_1 || in test_ipsec_iph6_hdr_validate()
948 flags->dscp == TEST_IPSEC_SET_DSCP_1_INNER_0) { in test_ipsec_iph6_hdr_validate()
968 const struct ipsec_test_flags *flags) in test_ipsec_post_process() argument
977 if (flags->iv_gen) { in test_ipsec_post_process()
987 if (flags->ipv6) { in test_ipsec_post_process()
999 if (flags->ah && iph4->next_proto_id != IPPROTO_AH) { in test_ipsec_post_process()
1007 if (test_ipsec_iph4_hdr_validate(iph4, flags)) in test_ipsec_post_process()
1011 if (test_ipsec_iph6_hdr_validate(iph6, flags)) in test_ipsec_post_process()
1031 return test_ipsec_td_verify(m, td, silent, flags); in test_ipsec_post_process()
1039 const struct ipsec_test_flags *flags, in test_ipsec_status_check() argument
1056 flags->sa_expiry_pkts_hard && in test_ipsec_status_check()
1067 flags->tunnel_hdr_verify) { in test_ipsec_status_check()
1076 if (dir == RTE_SECURITY_IPSEC_SA_DIR_INGRESS && flags->icv_corrupt) { in test_ipsec_status_check()
1089 if (flags->sa_expiry_pkts_soft && pkt_num == IPSEC_TEST_PACKETS_MAX) { in test_ipsec_status_check()
1103 const struct ipsec_test_flags *flags, in test_ipsec_stats_verify() argument
1109 if (flags->stats_success) { in test_ipsec_stats_verify()
1128 test_ipsec_pkt_update(uint8_t *pkt, const struct ipsec_test_flags *flags) in test_ipsec_pkt_update() argument
1136 if (flags->df == TEST_IPSEC_COPY_DF_INNER_1 || in test_ipsec_pkt_update()
1137 flags->df == TEST_IPSEC_SET_DF_0_INNER_1 || in test_ipsec_pkt_update()
1138 flags->df == TEST_IPSEC_COPY_DF_INNER_0 || in test_ipsec_pkt_update()
1139 flags->df == TEST_IPSEC_SET_DF_1_INNER_0) { in test_ipsec_pkt_update()
1149 if (flags->df == TEST_IPSEC_COPY_DF_INNER_1 || in test_ipsec_pkt_update()
1150 flags->df == TEST_IPSEC_SET_DF_0_INNER_1) in test_ipsec_pkt_update()
1159 if (flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_1 || in test_ipsec_pkt_update()
1160 flags->dscp == TEST_IPSEC_SET_DSCP_0_INNER_1 || in test_ipsec_pkt_update()
1161 flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_0 || in test_ipsec_pkt_update()
1162 flags->dscp == TEST_IPSEC_SET_DSCP_1_INNER_0) { in test_ipsec_pkt_update()
1168 if (flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_1 || in test_ipsec_pkt_update()
1169 flags->dscp == TEST_IPSEC_SET_DSCP_0_INNER_1) in test_ipsec_pkt_update()
1183 if (flags->dscp == TEST_IPSEC_COPY_DSCP_INNER_1 || in test_ipsec_pkt_update()
1184 flags->dscp == TEST_IPSEC_SET_DSCP_0_INNER_1) in test_ipsec_pkt_update()