get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104880,
    "url": "http://patchwork.dpdk.org/api/patches/104880/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1638777528-553-5-git-send-email-anoobj@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1638777528-553-5-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1638777528-553-5-git-send-email-anoobj@marvell.com",
    "date": "2021-12-06T07:58:39",
    "name": "[04/13] test/crypto: add IPv6 tunnel mode cases",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "247911b57ae89967eb28d989c867912d88e988bb",
    "submitter": {
        "id": 1205,
        "url": "http://patchwork.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1638777528-553-5-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 20861,
            "url": "http://patchwork.dpdk.org/api/series/20861/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20861",
            "date": "2021-12-06T07:58:35",
            "name": "Add new cases to lookaside IPsec tests",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/20861/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104880/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/104880/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BEC49A0C41;\n\tMon,  6 Dec 2021 08:59:47 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BDDC641169;\n\tMon,  6 Dec 2021 08:59:40 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id EE02E41168\n for <dev@dpdk.org>; Mon,  6 Dec 2021 08:59:38 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1B62KhEV003184;\n Sun, 5 Dec 2021 23:59:38 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3cs9mugwfq-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sun, 05 Dec 2021 23:59:38 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Sun, 5 Dec 2021 23:59:35 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Sun, 5 Dec 2021 23:59:36 -0800",
            "from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218])\n by maili.marvell.com (Postfix) with ESMTP id 9DA593F705E;\n Sun,  5 Dec 2021 23:59:32 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=PwDMx/WL+mv7WHWPKjCSJWycu8k7c1dCfENWKyuGqsI=;\n b=b4bEROEXpCUgFbaLjdOTzNvGWBidipjg3a0gVJMpvOPoIo2S7QaF2cL4YxRwfsk7KrrF\n EBz0f1EZGhAF3lwG1GYbVqM0Bq1M48sPjY5gd+QgnIWhSQziC1sHbyF04QhockzqGhmp\n Foba9Yr+PFkivGaZ4+IC9awOhSeWTX5VWRTauMNaWciM7tSMqefEB7NNDXMbQY6RCa/9\n gapdG5d5tSqr97wmfYln8VdAzAwrAT59peSLRrNNtsifQGqST5OZ2fE0omN+LDWaF+ot\n 7LJQ6BrOQB3Xg+sNIRToZ0+bFyeEbo23FqphdesTH2f/4M8s/V6/KUA7kkSe/RM98vyA aQ==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Declan Doherty\n <declan.doherty@intel.com>, Fan Zhang <roy.fan.zhang@intel.com>, \"Pablo de\n Lara\" <pablo.de.lara.guarch@intel.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n Archana Muniganti <marchana@marvell.com>, Hemant Agrawal\n <hemant.agrawal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>,\n Ciara Power <ciara.power@intel.com>,\n Gagandeep Singh <g.singh@nxp.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 04/13] test/crypto: add IPv6 tunnel mode cases",
        "Date": "Mon, 6 Dec 2021 13:28:39 +0530",
        "Message-ID": "<1638777528-553-5-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1638777528-553-1-git-send-email-anoobj@marvell.com>",
        "References": "<1638777528-553-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "oMoE6YMReDzihehiEqL5wUzWQRcpnM72",
        "X-Proofpoint-ORIG-GUID": "oMoE6YMReDzihehiEqL5wUzWQRcpnM72",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2021-12-06_03,2021-12-06_01,2021-12-02_01",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "From: Tejasree Kondoj <ktejasree@marvell.com>\n\nAdd IPv6 known vector and combined mode tests.\n\nFollowing modes are added:\nTunnel IPv6 in IPv6\nTunnel IPv4 in IPv4\nTunnel IPv4 in IPv6\nTunnel IPv6 in IPv4\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n app/test/test_cryptodev.c                          | 102 ++++++++++-\n app/test/test_cryptodev_security_ipsec.c           |  74 +++++++-\n app/test/test_cryptodev_security_ipsec.h           |   4 +\n .../test_cryptodev_security_ipsec_test_vectors.h   | 202 +++++++++++++++++++++\n 4 files changed, 378 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 2a7ede6..f2c677d 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -9125,6 +9125,10 @@ test_ipsec_proto_process(const struct ipsec_test_data td[],\n \t\t\t bool silent,\n \t\t\t const struct ipsec_test_flags *flags)\n {\n+\tuint16_t v6_src[8] = {0x2607, 0xf8b0, 0x400c, 0x0c03, 0x0000, 0x0000,\n+\t\t\t\t0x0000, 0x001a};\n+\tuint16_t v6_dst[8] = {0x2001, 0x0470, 0xe5bf, 0xdead, 0x4957, 0x2174,\n+\t\t\t\t0xe82c, 0x4887};\n \tstruct crypto_testsuite_params *ts_params = &testsuite_params;\n \tstruct crypto_unittest_params *ut_params = &unittest_params;\n \tstruct rte_security_capability_idx sec_cap_idx;\n@@ -9158,8 +9162,16 @@ test_ipsec_proto_process(const struct ipsec_test_data td[],\n \t\t\tdst += 1;\n \t}\n \n-\tmemcpy(&ipsec_xform.tunnel.ipv4.src_ip, &src, sizeof(src));\n-\tmemcpy(&ipsec_xform.tunnel.ipv4.dst_ip, &dst, sizeof(dst));\n+\tif (td->ipsec_xform.tunnel.type ==\n+\t\t\tRTE_SECURITY_IPSEC_TUNNEL_IPV4) {\n+\t\tmemcpy(&ipsec_xform.tunnel.ipv4.src_ip, &src, sizeof(src));\n+\t\tmemcpy(&ipsec_xform.tunnel.ipv4.dst_ip, &dst, sizeof(dst));\n+\t} else {\n+\t\tmemcpy(&ipsec_xform.tunnel.ipv6.src_addr, &v6_src,\n+\t\t\tsizeof(v6_src));\n+\t\tmemcpy(&ipsec_xform.tunnel.ipv6.dst_addr, &v6_dst,\n+\t\t\tsizeof(v6_dst));\n+\t}\n \n \tctx = rte_cryptodev_get_sec_ctx(dev_id);\n \n@@ -9555,6 +9567,58 @@ test_ipsec_proto_inner_l4_csum(const void *data __rte_unused)\n }\n \n static int\n+test_ipsec_proto_tunnel_v4_in_v4(const void *data __rte_unused)\n+{\n+\tstruct ipsec_test_flags flags;\n+\n+\tmemset(&flags, 0, sizeof(flags));\n+\n+\tflags.ipv6 = false;\n+\tflags.tunnel_ipv6 = false;\n+\n+\treturn test_ipsec_proto_all(&flags);\n+}\n+\n+static int\n+test_ipsec_proto_tunnel_v6_in_v6(const void *data __rte_unused)\n+{\n+\tstruct ipsec_test_flags flags;\n+\n+\tmemset(&flags, 0, sizeof(flags));\n+\n+\tflags.ipv6 = true;\n+\tflags.tunnel_ipv6 = true;\n+\n+\treturn test_ipsec_proto_all(&flags);\n+}\n+\n+static int\n+test_ipsec_proto_tunnel_v4_in_v6(const void *data __rte_unused)\n+{\n+\tstruct ipsec_test_flags flags;\n+\n+\tmemset(&flags, 0, sizeof(flags));\n+\n+\tflags.ipv6 = false;\n+\tflags.tunnel_ipv6 = true;\n+\n+\treturn test_ipsec_proto_all(&flags);\n+}\n+\n+static int\n+test_ipsec_proto_tunnel_v6_in_v4(const void *data __rte_unused)\n+{\n+\tstruct ipsec_test_flags flags;\n+\n+\tmemset(&flags, 0, sizeof(flags));\n+\n+\tflags.ipv6 = true;\n+\tflags.tunnel_ipv6 = false;\n+\n+\treturn test_ipsec_proto_all(&flags);\n+}\n+\n+static int\n test_PDCP_PROTO_all(void)\n {\n \tstruct crypto_testsuite_params *ts_params = &testsuite_params;\n@@ -14431,6 +14495,15 @@ static struct unit_test_suite ipsec_proto_testsuite  = {\n \t\t\ttest_ipsec_proto_known_vec,\n \t\t\t&pkt_aes_128_cbc_hmac_sha256),\n \t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Outbound known vector (ESP tunnel mode IPv6 AES-GCM 128)\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_known_vec, &pkt_aes_256_gcm_v6),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Outbound known vector (ESP tunnel mode IPv6 AES-CBC 128 HMAC-SHA256 [16B ICV])\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_known_vec,\n+\t\t\t&pkt_aes_128_cbc_hmac_sha256_v6),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n \t\t\t\"Inbound known vector (ESP tunnel mode IPv4 AES-GCM 128)\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_known_vec_inb, &pkt_aes_128_gcm),\n@@ -14451,6 +14524,15 @@ static struct unit_test_suite ipsec_proto_testsuite  = {\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_known_vec_inb,\n \t\t\t&pkt_aes_128_cbc_hmac_sha256),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Inbound known vector (ESP tunnel mode IPv6 AES-GCM 128)\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_known_vec_inb, &pkt_aes_256_gcm_v6),\n+\t\tTEST_CASE_NAMED_WITH_DATA(\n+\t\t\t\"Inbound known vector (ESP tunnel mode IPv6 AES-CBC 128 HMAC-SHA256 [16B ICV])\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_known_vec_inb,\n+\t\t\t&pkt_aes_128_cbc_hmac_sha256_v6),\n \t\tTEST_CASE_NAMED_ST(\n \t\t\t\"Combined test alg list\",\n \t\t\tut_setup_security, ut_teardown,\n@@ -14495,6 +14577,22 @@ static struct unit_test_suite ipsec_proto_testsuite  = {\n \t\t\t\"Inner L4 checksum\",\n \t\t\tut_setup_security, ut_teardown,\n \t\t\ttest_ipsec_proto_inner_l4_csum),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"Tunnel IPv4 in IPv4\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_tunnel_v4_in_v4),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"Tunnel IPv6 in IPv6\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_tunnel_v6_in_v6),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"Tunnel IPv4 in IPv6\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_tunnel_v4_in_v6),\n+\t\tTEST_CASE_NAMED_ST(\n+\t\t\t\"Tunnel IPv6 in IPv4\",\n+\t\t\tut_setup_security, ut_teardown,\n+\t\t\ttest_ipsec_proto_tunnel_v6_in_v4),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n };\ndiff --git a/app/test/test_cryptodev_security_ipsec.c b/app/test/test_cryptodev_security_ipsec.c\nindex 5f67dc0..12031d3 100644\n--- a/app/test/test_cryptodev_security_ipsec.c\n+++ b/app/test/test_cryptodev_security_ipsec.c\n@@ -19,6 +19,40 @@ struct crypto_param_comb alg_list[RTE_DIM(aead_list) +\n \t\t\t\t  (RTE_DIM(cipher_list) *\n \t\t\t\t   RTE_DIM(auth_list))];\n \n+static bool\n+is_valid_ipv4_pkt(const struct rte_ipv4_hdr *pkt)\n+{\n+\t/* The IP version number must be 4 */\n+\tif (((pkt->version_ihl) >> 4) != 4)\n+\t\treturn false;\n+\t/*\n+\t * The IP header length field must be large enough to hold the\n+\t * minimum length legal IP datagram (20 bytes = 5 words).\n+\t */\n+\tif ((pkt->version_ihl & 0xf) < 5)\n+\t\treturn false;\n+\n+\t/*\n+\t * The IP total length field must be large enough to hold the IP\n+\t * datagram header, whose length is specified in the IP header length\n+\t * field.\n+\t */\n+\tif (rte_cpu_to_be_16(pkt->total_length) < sizeof(struct rte_ipv4_hdr))\n+\t\treturn false;\n+\n+\treturn true;\n+}\n+\n+static bool\n+is_valid_ipv6_pkt(const struct rte_ipv6_hdr *pkt)\n+{\n+\t/* The IP version number must be 6 */\n+\tif ((rte_be_to_cpu_32((pkt->vtc_flow)) >> 28) != 6)\n+\t\treturn false;\n+\n+\treturn true;\n+}\n+\n void\n test_ipsec_alg_list_populate(void)\n {\n@@ -320,14 +354,22 @@ test_ipsec_td_prepare(const struct crypto_param *param1,\n \n \t\tif (param1->type == RTE_CRYPTO_SYM_XFORM_AEAD) {\n \t\t\t/* Copy template for packet & key fields */\n-\t\t\tmemcpy(td, &pkt_aes_256_gcm, sizeof(*td));\n+\t\t\tif (flags->ipv6)\n+\t\t\t\tmemcpy(td, &pkt_aes_256_gcm_v6, sizeof(*td));\n+\t\t\telse\n+\t\t\t\tmemcpy(td, &pkt_aes_256_gcm, sizeof(*td));\n \n \t\t\ttd->aead = true;\n \t\t\ttd->xform.aead.aead.algo = param1->alg.aead;\n \t\t\ttd->xform.aead.aead.key.length = param1->key_length;\n \t\t} else {\n \t\t\t/* Copy template for packet & key fields */\n-\t\t\tmemcpy(td, &pkt_aes_128_cbc_hmac_sha256, sizeof(*td));\n+\t\t\tif (flags->ipv6)\n+\t\t\t\tmemcpy(td, &pkt_aes_128_cbc_hmac_sha256_v6,\n+\t\t\t\t\tsizeof(*td));\n+\t\t\telse\n+\t\t\t\tmemcpy(td, &pkt_aes_128_cbc_hmac_sha256,\n+\t\t\t\t\tsizeof(*td));\n \n \t\t\ttd->aead = false;\n \t\t\ttd->xform.chain.cipher.cipher.algo = param1->alg.cipher;\n@@ -358,6 +400,13 @@ test_ipsec_td_prepare(const struct crypto_param *param1,\n \t\t\ttest_ipsec_csum_init(&td->input_text.data, false, true);\n \t\t}\n \n+\t\tif (flags->tunnel_ipv6)\n+\t\t\ttd->ipsec_xform.tunnel.type =\n+\t\t\t\t\tRTE_SECURITY_IPSEC_TUNNEL_IPV6;\n+\t\telse\n+\t\t\ttd->ipsec_xform.tunnel.type =\n+\t\t\t\t\tRTE_SECURITY_IPSEC_TUNNEL_IPV4;\n+\n \t}\n }\n \n@@ -686,6 +735,7 @@ test_ipsec_post_process(struct rte_mbuf *m, const struct ipsec_test_data *td,\n \t\t\tstruct ipsec_test_data *res_d, bool silent,\n \t\t\tconst struct ipsec_test_flags *flags)\n {\n+\tuint8_t *output_text = rte_pktmbuf_mtod(m, uint8_t *);\n \tint ret;\n \n \tif (flags->iv_gen &&\n@@ -695,6 +745,26 @@ test_ipsec_post_process(struct rte_mbuf *m, const struct ipsec_test_data *td,\n \t\t\treturn ret;\n \t}\n \n+\tif (td->ipsec_xform.direction == RTE_SECURITY_IPSEC_SA_DIR_EGRESS) {\n+\t\tconst struct rte_ipv4_hdr *iph4;\n+\t\tconst struct rte_ipv6_hdr *iph6;\n+\n+\t\tif (td->ipsec_xform.tunnel.type ==\n+\t\t\t\tRTE_SECURITY_IPSEC_TUNNEL_IPV4) {\n+\t\t\tiph4 = (const struct rte_ipv4_hdr *)output_text;\n+\t\t\tif (is_valid_ipv4_pkt(iph4) == false) {\n+\t\t\t\tprintf(\"Outer header is not IPv4\\n\");\n+\t\t\t\treturn TEST_FAILED;\n+\t\t\t}\n+\t\t} else {\n+\t\t\tiph6 = (const struct rte_ipv6_hdr *)output_text;\n+\t\t\tif (is_valid_ipv6_pkt(iph6) == false) {\n+\t\t\t\tprintf(\"Outer header is not IPv6\\n\");\n+\t\t\t\treturn TEST_FAILED;\n+\t\t\t}\n+\t\t}\n+\t}\n+\n \t/*\n \t * In case of known vector tests & all inbound tests, res_d provided\n \t * would be NULL and output data need to be validated against expected.\ndiff --git a/app/test/test_cryptodev_security_ipsec.h b/app/test/test_cryptodev_security_ipsec.h\nindex b1f0ff8..69e81ae 100644\n--- a/app/test/test_cryptodev_security_ipsec.h\n+++ b/app/test/test_cryptodev_security_ipsec.h\n@@ -61,6 +61,8 @@ struct ipsec_test_flags {\n \tbool udp_ports_verify;\n \tbool ip_csum;\n \tbool l4_csum;\n+\tbool ipv6;\n+\tbool tunnel_ipv6;\n };\n \n struct crypto_param {\n@@ -119,7 +121,9 @@ struct crypto_param_comb {\n };\n \n extern struct ipsec_test_data pkt_aes_256_gcm;\n+extern struct ipsec_test_data pkt_aes_256_gcm_v6;\n extern struct ipsec_test_data pkt_aes_128_cbc_hmac_sha256;\n+extern struct ipsec_test_data pkt_aes_128_cbc_hmac_sha256_v6;\n \n extern struct crypto_param_comb alg_list[RTE_DIM(aead_list) +\n \t\t\t\t\t (RTE_DIM(cipher_list) *\ndiff --git a/app/test/test_cryptodev_security_ipsec_test_vectors.h b/app/test/test_cryptodev_security_ipsec_test_vectors.h\nindex 16c88fe..04ccbf0 100644\n--- a/app/test/test_cryptodev_security_ipsec_test_vectors.h\n+++ b/app/test/test_cryptodev_security_ipsec_test_vectors.h\n@@ -434,6 +434,103 @@ struct ipsec_test_data pkt_aes_128_cbc_null = {\n \t},\n };\n \n+struct ipsec_test_data pkt_aes_256_gcm_v6 = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0xde, 0x12, 0xbe, 0x56, 0xde, 0xad, 0xbe, 0xef,\n+\t\t\t0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0xbe, 0xef,\n+\t\t\t0x12, 0x78, 0xbe, 0x34, 0x01, 0x02, 0x03, 0x07,\n+\t\t\t0xaa, 0xbb, 0xcc, 0xf1, 0x08, 0x07, 0x06, 0x05,\n+\t\t},\n+\t},\n+\t.input_text = {\n+\t\t.data = {\n+\t\t\t0x60, 0x00, 0x00, 0x00, 0x00, 0x20, 0x06, 0x38,\n+\t\t\t0x26, 0x07, 0xf8, 0xb0, 0x40, 0x0c, 0x0c, 0x03,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1a,\n+\t\t\t0x20, 0x01, 0x04, 0x70, 0xe5, 0xbf, 0xde, 0xad,\n+\t\t\t0x49, 0x57, 0x21, 0x74, 0xe8, 0x2c, 0x48, 0x87,\n+\t\t\t0x00, 0x19, 0xf9, 0xc7, 0x95, 0x63, 0x97, 0x9c,\n+\t\t\t0x03, 0xa0, 0x88, 0x31, 0x80, 0x12, 0xa7, 0xd6,\n+\t\t\t0x25, 0x83, 0x00, 0x00, 0x02, 0x04, 0x05, 0x6a,\n+\t\t\t0x01, 0x01, 0x04, 0x02, 0x01, 0x03, 0x03, 0x07,\n+\t\t},\n+\t\t.len = 72,\n+\t},\n+\t.output_text = {\n+\t\t.data = {\n+\t\t\t0x60, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x32, 0x40,\n+\t\t\t0x12, 0x34, 0x12, 0x21, 0x17, 0x45, 0x11, 0x34,\n+\t\t\t0x11, 0xfc, 0x89, 0x71, 0xdf, 0x22, 0x56, 0x78,\n+\t\t\t0x12, 0x34, 0x12, 0x21, 0x17, 0x45, 0x11, 0x34,\n+\t\t\t0x11, 0xfc, 0x89, 0x71, 0xdf, 0x22, 0x34, 0x56,\n+\t\t\t0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x01,\n+\t\t\t0x45, 0xad, 0xfe, 0x23, 0x78, 0x56, 0x12, 0x00,\n+\t\t\t0xe7, 0xdf, 0xc4, 0x7e, 0x21, 0xbd, 0xec, 0x1b,\n+\t\t\t0x74, 0x5a, 0xe4, 0x7e, 0x2e, 0x94, 0x21, 0x0a,\n+\t\t\t0x9b, 0x0e, 0x59, 0xbe, 0x06, 0x2a, 0xda, 0xb8,\n+\t\t\t0x6b, 0x48, 0x7f, 0x0b, 0x88, 0x3a, 0xa9, 0xfd,\n+\t\t\t0x3c, 0xfe, 0x9f, 0xb1, 0x8c, 0x67, 0xd2, 0xf8,\n+\t\t\t0xaf, 0xb5, 0xad, 0x16, 0xdb, 0xff, 0x8d, 0x50,\n+\t\t\t0xd3, 0x48, 0xf5, 0x6c, 0x3c, 0x0c, 0x27, 0x34,\n+\t\t\t0x2b, 0x65, 0xc8, 0xff, 0xeb, 0x5f, 0xb8, 0xff,\n+\t\t\t0x12, 0x00, 0x1c, 0x9f, 0xb7, 0x85, 0xdd, 0x7d,\n+\t\t\t0x40, 0x19, 0xcb, 0x18, 0xeb, 0x15, 0xc4, 0x88,\n+\t\t\t0xe1, 0xc2, 0x91, 0xc7, 0xb1, 0x65, 0xc3, 0x27,\n+\t\t\t0x16, 0x06, 0x8f, 0xf2,\n+\t\t},\n+\t\t.len = 148,\n+\t},\n+\t.salt = {\n+\t\t.data = {\n+\t\t\t0x11, 0x22, 0x33, 0x44\n+\t\t},\n+\t\t.len = 4,\n+\t},\n+\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0x45, 0xad, 0xfe, 0x23, 0x78, 0x56, 0x12, 0x00,\n+\t\t},\n+\t},\n+\n+\t.ipsec_xform = {\n+\t\t.spi = 52,\n+\t\t.options.esn = 0,\n+\t\t.options.udp_encap = 0,\n+\t\t.options.copy_dscp = 0,\n+\t\t.options.copy_flabel = 0,\n+\t\t.options.copy_df = 0,\n+\t\t.options.dec_ttl = 0,\n+\t\t.options.ecn = 0,\n+\t\t.options.stats = 0,\n+\t\t.options.tunnel_hdr_verify = 0,\n+\t\t.direction = RTE_SECURITY_IPSEC_SA_DIR_EGRESS,\n+\t\t.proto = RTE_SECURITY_IPSEC_SA_PROTO_ESP,\n+\t\t.mode = RTE_SECURITY_IPSEC_SA_MODE_TUNNEL,\n+\t\t.tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV6,\n+\t\t.replay_win_sz = 0,\n+\t},\n+\n+\t.aead = true,\n+\n+\t.xform = {\n+\t\t.aead = {\n+\t\t\t.next = NULL,\n+\t\t\t.type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t\t.aead = {\n+\t\t\t\t.op = RTE_CRYPTO_AEAD_OP_ENCRYPT,\n+\t\t\t\t.algo = RTE_CRYPTO_AEAD_AES_GCM,\n+\t\t\t\t.key.length = 32,\n+\t\t\t\t.iv.length = 12,\n+\t\t\t\t.iv.offset = IV_OFFSET,\n+\t\t\t\t.digest_length = 16,\n+\t\t\t\t.aad_length = 12,\n+\t\t\t},\n+\t\t},\n+\t},\n+};\n+\n struct ipsec_test_data pkt_aes_128_cbc_hmac_sha256 = {\n \t.key = {\n \t\t.data = {\n@@ -543,4 +640,109 @@ struct ipsec_test_data pkt_aes_128_cbc_hmac_sha256 = {\n \t},\n };\n \n+struct ipsec_test_data pkt_aes_128_cbc_hmac_sha256_v6 = {\n+\t.key = {\n+\t\t.data = {\n+\t\t\t0x00, 0x04, 0x05, 0x01, 0x23, 0x00, 0x00, 0x00,\n+\t\t\t0x00, 0x00, 0x0a, 0x0b, 0x0c, 0x0f, 0x00, 0x00,\n+\t\t},\n+\t},\n+\t.auth_key = {\n+\t\t.data = {\n+\t\t\t0xde, 0x34, 0x56, 0x00, 0x00, 0x00, 0x78, 0x00,\n+\t\t\t0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,\n+\t\t\t0x10, 0x30, 0x40, 0x00, 0x01, 0x02, 0x03, 0x04,\n+\t\t\t0x0a, 0x0b, 0x0c, 0x0d, 0x05, 0x06, 0x07, 0x08,\n+\t\t},\n+\t},\n+\t.input_text = {\n+\t\t.data = {\n+\t\t\t0x60, 0x00, 0x00, 0x00, 0x00, 0x20, 0x06, 0x38,\n+\t\t\t0x26, 0x07, 0xf8, 0xb0, 0x40, 0x0c, 0x0c, 0x03,\n+\t\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1a,\n+\t\t\t0x20, 0x01, 0x04, 0x70, 0xe5, 0xbf, 0xde, 0xad,\n+\t\t\t0x49, 0x57, 0x21, 0x74, 0xe8, 0x2c, 0x48, 0x87,\n+\t\t\t0x00, 0x19, 0xf9, 0xc7, 0x95, 0x63, 0x97, 0x9c,\n+\t\t\t0x03, 0xa0, 0x88, 0x31, 0x80, 0x12, 0xa7, 0xd6,\n+\t\t\t0x25, 0x83, 0x00, 0x00, 0x02, 0x04, 0x05, 0x6a,\n+\t\t\t0x01, 0x01, 0x04, 0x02, 0x01, 0x03, 0x03, 0x07,\n+\t\t},\n+\t\t.len = 72,\n+\t},\n+\t.output_text = {\n+\t\t.data = {\n+\t\t\t0x60, 0x00, 0x00, 0x00, 0x00, 0x78, 0x32, 0x40,\n+\t\t\t0x12, 0x34, 0x12, 0x21, 0x17, 0x45, 0x11, 0x34,\n+\t\t\t0x11, 0xfc, 0x89, 0x71, 0xdf, 0x22, 0x56, 0x78,\n+\t\t\t0x12, 0x34, 0x12, 0x21, 0x17, 0x45, 0x11, 0x34,\n+\t\t\t0x11, 0xfc, 0x89, 0x71, 0xdf, 0x22, 0x34, 0x56,\n+\t\t\t0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x01,\n+\t\t\t0x45, 0xad, 0xfe, 0x23, 0x78, 0x56, 0x12, 0x00,\n+\t\t\t0xf0, 0xc1, 0x05, 0x3c, 0x00, 0x00, 0x00, 0x00,\n+\t\t\t0x1b, 0x1c, 0x98, 0x6e, 0x2a, 0xce, 0x61, 0xef,\n+\t\t\t0xc1, 0xdd, 0x25, 0x96, 0x5c, 0xb1, 0xb0, 0x15,\n+\t\t\t0x47, 0x25, 0xb7, 0x8b, 0x00, 0xb6, 0xbb, 0xe6,\n+\t\t\t0x2e, 0x29, 0xcb, 0x4a, 0x94, 0x00, 0xf0, 0x73,\n+\t\t\t0xdb, 0x14, 0x32, 0xd9, 0xa2, 0xdf, 0x22, 0x2f,\n+\t\t\t0x52, 0x3e, 0x79, 0x77, 0xf3, 0x17, 0xaa, 0x40,\n+\t\t\t0x1c, 0x57, 0x27, 0x12, 0x82, 0x44, 0x35, 0xb8,\n+\t\t\t0x64, 0xe0, 0xaa, 0x5c, 0x10, 0xc7, 0x97, 0x35,\n+\t\t\t0x9c, 0x6b, 0x1c, 0xf7, 0xe7, 0xbd, 0x83, 0x33,\n+\t\t\t0x77, 0x48, 0x44, 0x7d, 0xa4, 0x13, 0x74, 0x3b,\n+\t\t\t0x6a, 0x91, 0xd0, 0xd8, 0x7d, 0x41, 0x45, 0x23,\n+\t\t\t0x5d, 0xc9, 0x2d, 0x08, 0x7a, 0xd8, 0x25, 0x8e,\n+\t\t},\n+\t\t.len = 160,\n+\t},\n+\t.iv = {\n+\t\t.data = {\n+\t\t\t0x45, 0xad, 0xfe, 0x23, 0x78, 0x56, 0x12, 0x00,\n+\t\t\t0xf0, 0xc1, 0x05, 0x3c, 0x00, 0x00, 0x00, 0x00,\n+\t\t},\n+\t},\n+\n+\t.ipsec_xform = {\n+\t\t.spi = 52,\n+\t\t.options.esn = 0,\n+\t\t.options.udp_encap = 0,\n+\t\t.options.copy_dscp = 0,\n+\t\t.options.copy_flabel = 0,\n+\t\t.options.copy_df = 0,\n+\t\t.options.dec_ttl = 0,\n+\t\t.options.ecn = 0,\n+\t\t.options.stats = 0,\n+\t\t.options.tunnel_hdr_verify = 0,\n+\t\t.direction = RTE_SECURITY_IPSEC_SA_DIR_EGRESS,\n+\t\t.proto = RTE_SECURITY_IPSEC_SA_PROTO_ESP,\n+\t\t.mode = RTE_SECURITY_IPSEC_SA_MODE_TUNNEL,\n+\t\t.tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV6,\n+\t\t.replay_win_sz = 0,\n+\t},\n+\n+\t.aead = false,\n+\n+\t.xform = {\n+\t\t.chain.cipher = {\n+\t\t\t.next = NULL,\n+\t\t\t.type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t\t.cipher = {\n+\t\t\t\t.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT,\n+\t\t\t\t.algo = RTE_CRYPTO_CIPHER_AES_CBC,\n+\t\t\t\t.key.length = 16,\n+\t\t\t\t.iv.length = 16,\n+\t\t\t},\n+\t\t},\n+\t\t.chain.auth = {\n+\t\t\t.next = NULL,\n+\t\t\t.type = RTE_CRYPTO_SYM_XFORM_AUTH,\n+\t\t\t.auth = {\n+\t\t\t\t.op = RTE_CRYPTO_AUTH_OP_GENERATE,\n+\t\t\t\t.algo = RTE_CRYPTO_AUTH_SHA256_HMAC,\n+\t\t\t\t.key.length = 32,\n+\t\t\t\t.digest_length = 16,\n+\t\t\t},\n+\t\t},\n+\t},\n+};\n+\n #endif /* TEST_CRYPTODEV_SECURITY_IPSEC_TEST_VECTORS_H_ */\n",
    "prefixes": [
        "04/13"
    ]
}