test/ipsec: fix log messages
authorBernard Iremonger <bernard.iremonger@intel.com>
Fri, 7 Jun 2019 10:33:13 +0000 (11:33 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 13:28:14 +0000 (15:28 +0200)
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>
app/test/test_ipsec.c

index 2854b83..8e87ac0 100644 (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;
        }