test/security: add more inline IPsec functional cases
[dpdk.git] / app / test / test_compressdev.c
index 0571c17..fbecaf9 100644 (file)
@@ -1256,7 +1256,7 @@ test_deflate_comp_run(const struct interim_data_params *int_data,
                /*
                 * Store original operation index in private data,
                 * since ordering does not have to be maintained,
-                * when dequeueing from compressdev, so a comparison
+                * when dequeuing from compressdev, so a comparison
                 * at the end of the test can be done.
                 */
                priv_data = (struct priv_op_data *) (ops[i] + 1);
@@ -1411,7 +1411,6 @@ test_deflate_comp_finalize(const struct interim_data_params *int_data,
        /* from int_data: */
        unsigned int num_xforms = int_data->num_xforms;
        struct rte_comp_xform **compress_xforms = int_data->compress_xforms;
-       uint16_t *buf_idx = int_data->buf_idx;
        unsigned int num_bufs = int_data->num_bufs;
 
        /* from test_priv_data: */
@@ -1442,7 +1441,7 @@ test_deflate_comp_finalize(const struct interim_data_params *int_data,
 
                RTE_LOG(DEBUG, USER1, "Buffer %u compressed by %s from %u to"
                        " %u bytes (level = %d, huffman = %s)\n",
-                       buf_idx[priv_data->orig_idx], engine,
+                       i, engine,
                        ops_processed[i]->consumed, ops_processed[i]->produced,
                        compress_xform->level,
                        huffman_type_strings[huffman_type]);
@@ -1734,7 +1733,6 @@ test_deflate_decomp_finalize(const struct interim_data_params *int_data,
        static unsigned int step;
 
        /* from int_data: */
-       uint16_t *buf_idx = int_data->buf_idx;
        unsigned int num_bufs = int_data->num_bufs;
        const char * const *test_bufs = int_data->test_bufs;
        struct rte_comp_xform **compress_xforms = int_data->compress_xforms;
@@ -1766,7 +1764,7 @@ test_deflate_decomp_finalize(const struct interim_data_params *int_data,
                        strlcpy(engine, "pmd", sizeof(engine));
                RTE_LOG(DEBUG, USER1,
                        "Buffer %u decompressed by %s from %u to %u bytes\n",
-                       buf_idx[priv_data->orig_idx], engine,
+                       i, engine,
                        ops_processed[i]->consumed, ops_processed[i]->produced);
                ops[i] = NULL;
        }
@@ -2035,7 +2033,7 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,
        test_priv_data.all_decomp_data = &all_decomp_data;
        test_priv_data.decomp_produced_data_size = &decomp_produced_data_size;
 
-       test_priv_data.num_priv_xforms = 0; /* it's used for deompression only */
+       test_priv_data.num_priv_xforms = 0; /* it's used for decompression only */
 
        capa = rte_compressdev_capability_get(0, RTE_COMP_ALGO_DEFLATE);
        if (capa == NULL) {
@@ -2146,8 +2144,7 @@ exit:
 
        if (stream != NULL)
                rte_compressdev_stream_free(0, stream);
-       if (all_decomp_data != NULL)
-               rte_free(all_decomp_data);
+       rte_free(all_decomp_data);
 
        /* Free compress private xforms */
        for (i = 0; i < test_priv_data.num_priv_xforms; i++) {