test/ipsec: fix log messages

Error log messages after the create_sa() function calls
were using the wrong function name.
The function name is replaced with create_sa.

Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test")
Cc: stable@dpdk.org

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
This commit is contained in:
Bernard Iremonger 2019-06-07 11:33:13 +01:00 committed by Akhil Goyal
parent 8734e669fc
commit 9ab6ff970c

View File

@ -1201,8 +1201,7 @@ test_ipsec_crypto_inb_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1304,8 +1303,7 @@ test_ipsec_crypto_outb_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1414,8 +1412,7 @@ test_ipsec_inline_crypto_inb_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_INLINE_CRYPTO,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1493,8 +1490,7 @@ test_ipsec_inline_proto_inb_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1602,8 +1598,7 @@ test_ipsec_inline_crypto_outb_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_INLINE_CRYPTO,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1681,8 +1676,7 @@ test_ipsec_inline_proto_outb_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1758,8 +1752,7 @@ test_ipsec_lksd_proto_inb_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1872,8 +1865,7 @@ test_ipsec_replay_inb_inside_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -1966,8 +1958,7 @@ test_ipsec_replay_inb_outside_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -2067,7 +2058,7 @@ test_ipsec_replay_inb_repeat_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n", i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -2168,8 +2159,7 @@ test_ipsec_replay_inb_inside_burst_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -2302,8 +2292,7 @@ test_ipsec_crypto_inb_burst_2sa_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa 0 failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -2312,8 +2301,7 @@ test_ipsec_crypto_inb_burst_2sa_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 1);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa 1 failed, cfg %d\n", i);
destroy_sa(0);
return TEST_FAILED;
}
@ -2390,8 +2378,7 @@ test_ipsec_crypto_inb_burst_2sa_4grp_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 0);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa 0 failed, cfg %d\n", i);
return TEST_FAILED;
}
@ -2400,8 +2387,7 @@ test_ipsec_crypto_inb_burst_2sa_4grp_null_null(int i)
rc = create_sa(RTE_SECURITY_ACTION_TYPE_NONE,
test_cfg[i].replay_win_sz, test_cfg[i].flags, 1);
if (rc != 0) {
RTE_LOG(ERR, USER1, "rte_ipsec_sa_init failed, cfg %d\n",
i);
RTE_LOG(ERR, USER1, "create_sa 1 failed, cfg %d\n", i);
destroy_sa(0);
return TEST_FAILED;
}