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

Function init_sa_session

dpdk/app/test/test_ipsec_perf.c:422–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422static int
423init_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
447static int
448testsuite_setup(void)

Callers 1

test_libipsec_perfFunction · 0.85

Calls 3

fill_ipsec_sa_inFunction · 0.85
fill_ipsec_sa_outFunction · 0.85
create_saFunction · 0.70

Tested by

no test coverage detected