| 377 | } |
| 378 | |
| 379 | static void |
| 380 | fill_ipsec_sa_out(const struct ipsec_test_cfg *test_cfg, |
| 381 | struct ipsec_sa *sa) |
| 382 | { |
| 383 | sa->ipsec_xform.spi = DEFAULT_SPI; |
| 384 | sa->ipsec_xform.direction = RTE_SECURITY_IPSEC_SA_DIR_EGRESS; |
| 385 | sa->ipsec_xform.proto = RTE_SECURITY_IPSEC_SA_PROTO_ESP; |
| 386 | sa->ipsec_xform.mode = RTE_SECURITY_IPSEC_SA_MODE_TUNNEL; |
| 387 | sa->ipsec_xform.tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4; |
| 388 | sa->ipsec_xform.options.esn = test_cfg->esn; |
| 389 | sa->type = test_cfg->type; |
| 390 | sa->replay_win_sz = test_cfg->replay_win_sz; |
| 391 | sa->sa_flags = test_cfg->flags; |
| 392 | sa->cnt.nb_prepare_call = 0; |
| 393 | sa->cnt.nb_prepare_pkt = 0; |
| 394 | sa->cnt.nb_process_call = 0; |
| 395 | sa->cnt.nb_process_pkt = 0; |
| 396 | sa->cnt.process_ticks_elapsed = 0; |
| 397 | sa->cnt.prepare_ticks_elapsed = 0; |
| 398 | |
| 399 | } |
| 400 | |
| 401 | static void |
| 402 | fill_ipsec_sa_in(const struct ipsec_test_cfg *test_cfg, |