| 420 | } |
| 421 | |
| 422 | static int |
| 423 | init_sa_session(const struct ipsec_test_cfg *test_cfg, |
| 424 | struct ipsec_sa *sa_out, struct ipsec_sa *sa_in) |
| 425 | { |
| 426 | |
| 427 | int rc; |
| 428 | |
| 429 | fill_ipsec_sa_in(test_cfg, sa_in); |
| 430 | fill_ipsec_sa_out(test_cfg, sa_out); |
| 431 | |
| 432 | rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE, sa_out); |
| 433 | if (rc != 0) { |
| 434 | RTE_LOG(ERR, USER1, "out bound create_sa failed, cfg\n"); |
| 435 | return TEST_FAILED; |
| 436 | } |
| 437 | |
| 438 | rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE, sa_in); |
| 439 | if (rc != 0) { |
| 440 | RTE_LOG(ERR, USER1, "out bound create_sa failed, cfg\n"); |
| 441 | return TEST_FAILED; |
| 442 | } |
| 443 | |
| 444 | return TEST_SUCCESS; |
| 445 | } |
| 446 | |
| 447 | static int |
| 448 | testsuite_setup(void) |
no test coverage detected