get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/58449/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 58449,
    "url": "http://patches.dpdk.org/api/patches/58449/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190903094312.8780-2-adamx.dybkowski@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20190903094312.8780-2-adamx.dybkowski@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190903094312.8780-2-adamx.dybkowski@intel.com",
    "date": "2019-09-03T09:43:11",
    "name": "[1/2] test/compress: add external buffer in mbuf API test",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0cc4393b161c4ea2f3713a6fc7af4d545d181de5",
    "submitter": {
        "id": 1322,
        "url": "http://patches.dpdk.org/api/people/1322/?format=api",
        "name": "Dybkowski, AdamX",
        "email": "adamx.dybkowski@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190903094312.8780-2-adamx.dybkowski@intel.com/mbox/",
    "series": [
        {
            "id": 6217,
            "url": "http://patches.dpdk.org/api/series/6217/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6217",
            "date": "2019-09-03T09:43:10",
            "name": "Add external mbufs option",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6217/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/58449/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/58449/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 765121D442;\n\tTue,  3 Sep 2019 11:47:21 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 42C191C2DB\n\tfor <dev@dpdk.org>; Tue,  3 Sep 2019 11:47:19 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Sep 2019 02:47:18 -0700",
            "from adamdybx-mobl.ger.corp.intel.com (HELO\n\taddy-VirtualBox.isw.intel.com) ([10.103.104.111])\n\tby fmsmga002.fm.intel.com with ESMTP; 03 Sep 2019 02:47:17 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,462,1559545200\"; d=\"scan'208\";a=\"211932549\"",
        "From": "Adam Dybkowski <adamx.dybkowski@intel.com>",
        "To": "dev@dpdk.org, fiona.trahe@intel.com, pablo.de.lara.guarch@intel.com,\n\tarturx.trybula@intel.com",
        "Cc": "Adam Dybkowski <adamx.dybkowski@intel.com>",
        "Date": "Tue,  3 Sep 2019 11:43:11 +0200",
        "Message-Id": "<20190903094312.8780-2-adamx.dybkowski@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190903094312.8780-1-adamx.dybkowski@intel.com>",
        "References": "<20190903094312.8780-1-adamx.dybkowski@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 1/2] test/compress: add external buffer in mbuf\n\tAPI test",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Adds a new test to verify external buffer in mbuf APIs.\nInitialize fields in test_data_params structures by name\nfor better readability.\n\nSigned-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>\n---\n app/test/test_compressdev.c | 245 ++++++++++++++++++++++++++++--------\n 1 file changed, 194 insertions(+), 51 deletions(-)",
    "diff": "diff --git a/app/test/test_compressdev.c b/app/test/test_compressdev.c\nindex 992eac8e0..31aafc427 100644\n--- a/app/test/test_compressdev.c\n+++ b/app/test/test_compressdev.c\n@@ -100,6 +100,11 @@ struct test_data_params {\n \tenum zlib_direction zlib_dir;\n \tunsigned int out_of_space;\n \tunsigned int big_data;\n+\tunsigned int use_external_mbufs;\n+\tunsigned int inbuf_data_size;\n+\tconst struct rte_memzone *inbuf_memzone;\n+\tconst struct rte_memzone *compbuf_memzone;\n+\tconst struct rte_memzone *uncompbuf_memzone;\n };\n \n static struct comp_testsuite_params testsuite_params = { 0 };\n@@ -710,6 +715,11 @@ prepare_sgl_bufs(const char *test_buf, struct rte_mbuf *head_buf,\n \treturn 0;\n }\n \n+static void\n+extbuf_free_callback(void *addr __rte_unused, void *opaque __rte_unused)\n+{\n+}\n+\n /*\n  * Compresses and decompresses buffer with compressdev API and Zlib API\n  */\n@@ -729,6 +739,9 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,\n \tunsigned int out_of_space = test_data->out_of_space;\n \tunsigned int big_data = test_data->big_data;\n \tenum zlib_direction zlib_dir = test_data->zlib_dir;\n+\tstruct rte_mbuf_ext_shared_info inbuf_info;\n+\tstruct rte_mbuf_ext_shared_info compbuf_info;\n+\tstruct rte_mbuf_ext_shared_info decompbuf_info;\n \tint ret_status = -1;\n \tint ret;\n \tstruct rte_mbuf *uncomp_bufs[num_bufs];\n@@ -785,7 +798,20 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,\n \t\tgoto exit;\n \t}\n \n-\tif (buff_type == SGL_BOTH || buff_type == SGL_TO_LB) {\n+\tif (test_data->use_external_mbufs) {\n+\t\tinbuf_info.free_cb = extbuf_free_callback;\n+\t\tinbuf_info.fcb_opaque = NULL;\n+\t\trte_mbuf_ext_refcnt_set(&inbuf_info, 1);\n+\t\tfor (i = 0; i < num_bufs; i++) {\n+\t\t\trte_pktmbuf_attach_extbuf(uncomp_bufs[i],\n+\t\t\t\t\ttest_data->inbuf_memzone->addr,\n+\t\t\t\t\ttest_data->inbuf_memzone->iova,\n+\t\t\t\t\ttest_data->inbuf_data_size,\n+\t\t\t\t\t&inbuf_info);\n+\t\t\trte_pktmbuf_append(uncomp_bufs[i],\n+\t\t\t\t\ttest_data->inbuf_data_size);\n+\t\t}\n+\t} else if (buff_type == SGL_BOTH || buff_type == SGL_TO_LB) {\n \t\tfor (i = 0; i < num_bufs; i++) {\n \t\t\tdata_size = strlen(test_bufs[i]) + 1;\n \t\t\tif (prepare_sgl_bufs(test_bufs[i], uncomp_bufs[i],\n@@ -813,7 +839,20 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,\n \t\tgoto exit;\n \t}\n \n-\tif (buff_type == SGL_BOTH || buff_type == LB_TO_SGL) {\n+\tif (test_data->use_external_mbufs) {\n+\t\tcompbuf_info.free_cb = extbuf_free_callback;\n+\t\tcompbuf_info.fcb_opaque = NULL;\n+\t\trte_mbuf_ext_refcnt_set(&compbuf_info, 1);\n+\t\tfor (i = 0; i < num_bufs; i++) {\n+\t\t\trte_pktmbuf_attach_extbuf(comp_bufs[i],\n+\t\t\t\t\ttest_data->compbuf_memzone->addr,\n+\t\t\t\t\ttest_data->compbuf_memzone->iova,\n+\t\t\t\t\ttest_data->compbuf_memzone->len,\n+\t\t\t\t\t&compbuf_info);\n+\t\t\trte_pktmbuf_append(comp_bufs[i],\n+\t\t\t\t\ttest_data->compbuf_memzone->len);\n+\t\t}\n+\t} else if (buff_type == SGL_BOTH || buff_type == LB_TO_SGL) {\n \t\tfor (i = 0; i < num_bufs; i++) {\n \t\t\tif (out_of_space == 1 && oos_zlib_decompress)\n \t\t\t\tdata_size = OUT_OF_SPACE_BUF;\n@@ -1041,7 +1080,20 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,\n \t\tgoto exit;\n \t}\n \n-\tif (buff_type == SGL_BOTH || buff_type == LB_TO_SGL) {\n+\tif (test_data->use_external_mbufs) {\n+\t\tdecompbuf_info.free_cb = extbuf_free_callback;\n+\t\tdecompbuf_info.fcb_opaque = NULL;\n+\t\trte_mbuf_ext_refcnt_set(&decompbuf_info, 1);\n+\t\tfor (i = 0; i < num_bufs; i++) {\n+\t\t\trte_pktmbuf_attach_extbuf(uncomp_bufs[i],\n+\t\t\t\t\ttest_data->uncompbuf_memzone->addr,\n+\t\t\t\t\ttest_data->uncompbuf_memzone->iova,\n+\t\t\t\t\ttest_data->uncompbuf_memzone->len,\n+\t\t\t\t\t&decompbuf_info);\n+\t\t\trte_pktmbuf_append(uncomp_bufs[i],\n+\t\t\t\t\ttest_data->uncompbuf_memzone->len);\n+\t\t}\n+\t} else if (buff_type == SGL_BOTH || buff_type == LB_TO_SGL) {\n \t\tfor (i = 0; i < num_bufs; i++) {\n \t\t\tpriv_data = (struct priv_op_data *)\n \t\t\t\t\t(ops_processed[i] + 1);\n@@ -1265,8 +1317,13 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,\n \t */\n \tfor (i = 0; i < num_bufs; i++) {\n \t\tpriv_data = (struct priv_op_data *)(ops_processed[i] + 1);\n-\t\tconst char *buf1 = test_bufs[priv_data->orig_idx];\n+\t\tconst char *buf1 = test_data->use_external_mbufs ?\n+\t\t\t\ttest_data->inbuf_memzone->addr :\n+\t\t\t\ttest_bufs[priv_data->orig_idx];\n \t\tconst char *buf2;\n+\t\tdata_size = test_data->use_external_mbufs ?\n+\t\t\t\ttest_data->inbuf_data_size :\n+\t\t\t\tstrlen(buf1) + 1;\n \t\tcontig_buf = rte_malloc(NULL, ops_processed[i]->produced, 0);\n \t\tif (contig_buf == NULL) {\n \t\t\tRTE_LOG(ERR, USER1, \"Contiguous buffer could not \"\n@@ -1276,7 +1333,7 @@ test_deflate_comp_decomp(const struct interim_data_params *int_data,\n \n \t\tbuf2 = rte_pktmbuf_read(ops_processed[i]->m_dst, 0,\n \t\t\t\tops_processed[i]->produced, contig_buf);\n-\t\tif (compare_buffers(buf1, strlen(buf1) + 1,\n+\t\tif (compare_buffers(buf1, data_size,\n \t\t\t\tbuf2, ops_processed[i]->produced) < 0)\n \t\t\tgoto exit;\n \n@@ -1354,11 +1411,11 @@ test_compressdev_deflate_stateless_fixed(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tLB_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0\n \t};\n \n \tfor (i = 0; i < RTE_DIM(compress_test_bufs); i++) {\n@@ -1425,11 +1482,11 @@ test_compressdev_deflate_stateless_dynamic(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tLB_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0\n \t};\n \n \tfor (i = 0; i < RTE_DIM(compress_test_bufs); i++) {\n@@ -1479,11 +1536,11 @@ test_compressdev_deflate_stateless_multi_op(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tLB_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0\n \t};\n \n \t/* Compress with compressdev, decompress with Zlib */\n@@ -1529,11 +1586,11 @@ test_compressdev_deflate_stateless_multi_level(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tLB_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0\n \t};\n \n \tfor (i = 0; i < RTE_DIM(compress_test_bufs); i++) {\n@@ -1619,11 +1676,11 @@ test_compressdev_deflate_stateless_multi_xform(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tLB_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0\n \t};\n \n \t/* Compress with compressdev, decompress with Zlib */\n@@ -1665,11 +1722,11 @@ test_compressdev_deflate_stateless_sgl(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tSGL_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = SGL_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0\n \t};\n \n \tfor (i = 0; i < RTE_DIM(compress_test_bufs); i++) {\n@@ -1773,11 +1830,11 @@ test_compressdev_deflate_stateless_checksum(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tLB_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0\n \t};\n \n \t/* Check if driver supports crc32 checksum and test */\n@@ -1876,7 +1933,7 @@ test_compressdev_out_of_space_buffer(void)\n \tuint16_t i;\n \tconst struct rte_compressdev_capabilities *capab;\n \n-\tRTE_LOG(ERR, USER1, \"This is a negative test errors are expected\\n\");\n+\tRTE_LOG(ERR, USER1, \"This is a negative test, errors are expected\\n\");\n \n \tcapab = rte_compressdev_capability_get(0, RTE_COMP_ALGO_DEFLATE);\n \tTEST_ASSERT(capab != NULL, \"Failed to retrieve device capabilities\");\n@@ -1904,11 +1961,11 @@ test_compressdev_out_of_space_buffer(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tLB_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t1,  /* run out-of-space test */\n-\t\t0\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 1,  /* run out-of-space test */\n+\t\t.big_data = 0\n \t};\n \t/* Compress with compressdev, decompress with Zlib */\n \ttest_data.zlib_dir = ZLIB_DECOMPRESS;\n@@ -1985,11 +2042,11 @@ test_compressdev_deflate_stateless_dynamic_big(void)\n \t};\n \n \tstruct test_data_params test_data = {\n-\t\tRTE_COMP_OP_STATELESS,\n-\t\tSGL_BOTH,\n-\t\tZLIB_DECOMPRESS,\n-\t\t0,\n-\t\t1\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = SGL_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 1\n \t};\n \n \tts_params->def_comp_xform->compress.deflate.huffman =\n@@ -2022,6 +2079,90 @@ test_compressdev_deflate_stateless_dynamic_big(void)\n \treturn ret;\n }\n \n+static const struct rte_memzone *\n+make_memzone(const char *name, size_t size)\n+{\n+\tunsigned int socket_id = rte_socket_id();\n+\tchar mz_name[RTE_MEMZONE_NAMESIZE];\n+\tconst struct rte_memzone *memzone;\n+\n+\tsnprintf(mz_name, RTE_MEMZONE_NAMESIZE, \"%s_%u\", name, socket_id);\n+\tmemzone = rte_memzone_lookup(mz_name);\n+\tif (memzone != NULL && memzone->len != size) {\n+\t\trte_memzone_free(memzone);\n+\t\tmemzone = NULL;\n+\t}\n+\tif (memzone == NULL) {\n+\t\tmemzone = rte_memzone_reserve_aligned(mz_name, size, socket_id,\n+\t\t\t\tRTE_MEMZONE_IOVA_CONTIG, RTE_CACHE_LINE_SIZE);\n+\t\tif (memzone == NULL)\n+\t\t\tRTE_LOG(ERR, USER1, \"Can't allocate memory zone %s\",\n+\t\t\t\tmz_name);\n+\t}\n+\treturn memzone;\n+}\n+\n+static int\n+test_compressdev_external_mbufs(void)\n+{\n+\tstruct comp_testsuite_params *ts_params = &testsuite_params;\n+\tsize_t data_len = 0;\n+\tuint16_t i;\n+\tint ret = TEST_FAILED;\n+\n+\tfor (i = 0; i < RTE_DIM(compress_test_bufs); i++)\n+\t\tdata_len = RTE_MAX(data_len, strlen(compress_test_bufs[i]) + 1);\n+\n+\tstruct interim_data_params int_data = {\n+\t\tNULL,\n+\t\t1,\n+\t\tNULL,\n+\t\t&ts_params->def_comp_xform,\n+\t\t&ts_params->def_decomp_xform,\n+\t\t1\n+\t};\n+\n+\tstruct test_data_params test_data = {\n+\t\t.state = RTE_COMP_OP_STATELESS,\n+\t\t.buff_type = LB_BOTH,\n+\t\t.zlib_dir = ZLIB_DECOMPRESS,\n+\t\t.out_of_space = 0,\n+\t\t.big_data = 0,\n+\t\t.use_external_mbufs = 1,\n+\t\t.inbuf_data_size = data_len,\n+\t\t.inbuf_memzone = make_memzone(\"inbuf\", data_len),\n+\t\t.compbuf_memzone = make_memzone(\"compbuf\", data_len *\n+\t\t\t\t\t\tCOMPRESS_BUF_SIZE_RATIO),\n+\t\t.uncompbuf_memzone = make_memzone(\"decompbuf\", data_len)\n+\t};\n+\n+\tfor (i = 0; i < RTE_DIM(compress_test_bufs); i++) {\n+\t\t/* prepare input data */\n+\t\tdata_len = strlen(compress_test_bufs[i]) + 1;\n+\t\trte_memcpy(test_data.inbuf_memzone->addr, compress_test_bufs[i],\n+\t\t\t   data_len);\n+\t\ttest_data.inbuf_data_size = data_len;\n+\t\tint_data.buf_idx = &i;\n+\n+\t\t/* Compress with compressdev, decompress with Zlib */\n+\t\ttest_data.zlib_dir = ZLIB_DECOMPRESS;\n+\t\tif (test_deflate_comp_decomp(&int_data, &test_data) < 0)\n+\t\t\tgoto exit;\n+\n+\t\t/* Compress with Zlib, decompress with compressdev */\n+\t\ttest_data.zlib_dir = ZLIB_COMPRESS;\n+\t\tif (test_deflate_comp_decomp(&int_data, &test_data) < 0)\n+\t\t\tgoto exit;\n+\t}\n+\n+\tret = TEST_SUCCESS;\n+\n+exit:\n+\trte_memzone_free(test_data.inbuf_memzone);\n+\trte_memzone_free(test_data.compbuf_memzone);\n+\trte_memzone_free(test_data.uncompbuf_memzone);\n+\treturn ret;\n+}\n \n static struct unit_test_suite compressdev_testsuite  = {\n \t.suite_name = \"compressdev unit test suite\",\n@@ -2048,6 +2189,8 @@ static struct unit_test_suite compressdev_testsuite  = {\n \t\t\ttest_compressdev_deflate_stateless_checksum),\n \t\tTEST_CASE_ST(generic_ut_setup, generic_ut_teardown,\n \t\t\ttest_compressdev_out_of_space_buffer),\n+\t\tTEST_CASE_ST(generic_ut_setup, generic_ut_teardown,\n+\t\t\ttest_compressdev_external_mbufs),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\n",
    "prefixes": [
        "1/2"
    ]
}