get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 112080,
    "url": "http://patches.dpdk.org/api/patches/112080/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/8b41cb1b107180bae15fb86ab714cf76ed672919.1653925803.git.gmuthukrishn@marvell.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": "<8b41cb1b107180bae15fb86ab714cf76ed672919.1653925803.git.gmuthukrishn@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/8b41cb1b107180bae15fb86ab714cf76ed672919.1653925803.git.gmuthukrishn@marvell.com",
    "date": "2022-05-30T15:52:36",
    "name": "[v9,02/10] examples/fips_validation: add json info to header",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9271a07259b9997a5eb826c1129805933a602510",
    "submitter": {
        "id": 2301,
        "url": "http://patches.dpdk.org/api/people/2301/?format=api",
        "name": "Gowrishankar Muthukrishnan",
        "email": "gmuthukrishn@marvell.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/8b41cb1b107180bae15fb86ab714cf76ed672919.1653925803.git.gmuthukrishn@marvell.com/mbox/",
    "series": [
        {
            "id": 23249,
            "url": "http://patches.dpdk.org/api/series/23249/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23249",
            "date": "2022-05-30T15:52:34",
            "name": "Add JSON vector set support to fips validation",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/23249/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/112080/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/112080/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 5F913A0542;\n\tMon, 30 May 2022 17:53:03 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DEA1F4281B;\n\tMon, 30 May 2022 17:52:59 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 4B150427F3\n for <dev@dpdk.org>; Mon, 30 May 2022 17:52:58 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 24UCDgLS004646;\n Mon, 30 May 2022 08:52:57 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3gbk8n61pb-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 30 May 2022 08:52:57 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 30 May 2022 08:52:55 -0700",
            "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; Mon, 30 May 2022 08:52:55 -0700",
            "from localhost.localdomain (unknown [10.28.34.38])\n by maili.marvell.com (Postfix) with ESMTP id 10C5C3F70C0;\n Mon, 30 May 2022 08:52:52 -0700 (PDT)"
        ],
        "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=hm33x41NwoAhw1m+TkooAwyBG1HMFKvnLzJAUBCTTlE=;\n b=it3psuL+o6nG87LPu/LG4XVMKj9aXWJU3u7emmUMXPjv85kKvpePmtJDrTkvL6bX97X9\n M9+/CrLW96awWjukL8mkkQEmM8rrdfLW4E3yEW1oWjBqcyz76maFoU8c7LtztCYVpW6Q\n dR7FEBqMQF4nvLnMqtxugOy0r1XkQzP1dc6ed/QbnG33ZSZpPqR+tgpFPy2tafgxyEMp\n UWLne7Z339GrxfWyPP+86o6lyWx+10pmbH3gEf1Ps0JzjhPVycrfnJJd2jw2rtzr33+i\n 5lLpVc9LuC2u1tfccgXHjvuN94cHdwW9WoKqylooUEHFw6G37R6GyvAac2KdZN5tO53v vw==",
        "From": "Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Fan Zhang <roy.fan.zhang@intel.com>, Brian Dooley\n <brian.dooley@intel.com>, <lylavoie@iol.unh.edu>, Anoob Joseph\n <anoobj@marvell.com>, Archana Muniganti <marchana@marvell.com>, Jerin Jacob\n <jerinj@marvell.com>, Brandon Lo <blo@iol.unh.edu>, \"Gowrishankar\n Muthukrishnan\" <gmuthukrishn@marvell.com>",
        "Subject": "[v9, 02/10] examples/fips_validation: add json info to header",
        "Date": "Mon, 30 May 2022 21:22:36 +0530",
        "Message-ID": "\n <8b41cb1b107180bae15fb86ab714cf76ed672919.1653925803.git.gmuthukrishn@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<cover.1653925803.git.gmuthukrishn@marvell.com>",
        "References": "<cover.1653925803.git.gmuthukrishn@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "A_NBJYWbA4jrcFyYKlHB4TT3mFIHM7eP",
        "X-Proofpoint-GUID": "A_NBJYWbA4jrcFyYKlHB4TT3mFIHM7eP",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514\n definitions=2022-05-30_07,2022-05-30_01,2022-02-23_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: Brandon Lo <blo@iol.unh.edu>\n\nAdded json-specific functions and other information needed to\ntest the new FIPS test vectors.\n\nSigned-off-by: Brandon Lo <blo@iol.unh.edu>\nSigned-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>\n---\nv7:\n* fix switch clause for info.file_type.\n\nv5:\n* fix typo in macro name for prefixes.\n\nv2:\n* fix type of prefix to suffix\n---\n examples/fips_validation/fips_validation.c |  6 +--\n examples/fips_validation/fips_validation.h | 48 ++++++++++++++++++++--\n examples/fips_validation/main.c            |  2 +\n 3 files changed, 49 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c\nindex 94253eaee8..38c99b291c 100644\n--- a/examples/fips_validation/fips_validation.c\n+++ b/examples/fips_validation/fips_validation.c\n@@ -270,11 +270,11 @@ parse_file_type(const char *path)\n {\n \tconst char *tmp = path + strlen(path) - 3;\n \n-\tif (strstr(tmp, REQ_FILE_PERFIX))\n+\tif (strstr(tmp, REQ_FILE_PREFIX))\n \t\tinfo.file_type = FIPS_TYPE_REQ;\n-\telse if (strstr(tmp, RSP_FILE_PERFIX))\n+\telse if (strstr(tmp, RSP_FILE_PREFIX))\n \t\tinfo.file_type = FIPS_TYPE_RSP;\n-\telse if (strstr(path, FAX_FILE_PERFIX))\n+\telse if (strstr(path, FAX_FILE_PREFIX))\n \t\tinfo.file_type = FIPS_TYPE_FAX;\n \telse\n \t\treturn -EINVAL;\ndiff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h\nindex aaadf01ba8..a1c83a9a6a 100644\n--- a/examples/fips_validation/fips_validation.h\n+++ b/examples/fips_validation/fips_validation.h\n@@ -5,6 +5,10 @@\n #ifndef _FIPS_VALIDATION_H_\n #define _FIPS_VALIDATION_H_\n \n+#ifdef RTE_HAS_JANSSON\n+#include <jansson.h>\n+#endif /* RTE_HAS_JANSSON */\n+\n #define FIPS_PARSE_ERR(fmt, args)\t\t\t\t\t\\\n \tRTE_LOG(ERR, USER1, \"FIPS parse error\" ## fmt ## \"\\n\", ## args)\n \n@@ -21,9 +25,12 @@\n #define POSITIVE_TEST\t\t0\n #define NEGATIVE_TEST\t\t-1\n \n-#define REQ_FILE_PERFIX\t\t\"req\"\n-#define RSP_FILE_PERFIX\t\t\"rsp\"\n-#define FAX_FILE_PERFIX\t\t\"fax\"\n+#define REQ_FILE_PREFIX\t\t\"req\"\n+#define RSP_FILE_PREFIX\t\t\"rsp\"\n+#define FAX_FILE_PREFIX\t\t\"fax\"\n+#define JSON_FILE_PREFIX\t\"json\"\n+\n+#define ACVVERSION\t\t\t\"1.0\"\n \n enum fips_test_algorithms {\n \t\tFIPS_TEST_ALGO_AES = 0,\n@@ -40,7 +47,8 @@ enum fips_test_algorithms {\n enum file_types {\n \tFIPS_TYPE_REQ = 1,\n \tFIPS_TYPE_FAX,\n-\tFIPS_TYPE_RSP\n+\tFIPS_TYPE_RSP,\n+\tFIPS_TYPE_JSON,\n };\n \n enum fips_test_op {\n@@ -161,6 +169,23 @@ struct gcm_interim_data {\n \tuint8_t gen_iv;\n };\n \n+#ifdef RTE_HAS_JANSSON\n+struct fips_test_json_info {\n+\t/* Information used for reading from json */\n+\tjson_t *json_root;\n+\tjson_t *json_vector_set;\n+\tjson_t *json_test_group;\n+\tjson_t *json_test_case;\n+\t/* Location of json write output */\n+\tjson_t *json_write_root;\n+\tjson_t *json_write_group;\n+\tjson_t *json_write_set;\n+\tjson_t *json_write_case;\n+\t/* Other info */\n+\tuint8_t is_sample;\n+};\n+#endif /* RTE_HAS_JANSSON */\n+\n struct fips_test_interim_info {\n \tFILE *fp_rd;\n \tFILE *fp_wr;\n@@ -196,6 +221,10 @@ struct fips_test_interim_info {\n extern struct fips_test_vector vec;\n extern struct fips_test_interim_info info;\n \n+#ifdef RTE_HAS_JANSSON\n+extern struct fips_test_json_info json_info;\n+#endif /* RTE_HAS_JANSSON */\n+\n int\n fips_test_init(const char *req_file_path, const char *rsp_file_path,\n \t\tconst char *device_name);\n@@ -212,6 +241,17 @@ fips_test_parse_one_case(void);\n void\n fips_test_write_one_case(void);\n \n+#ifdef RTE_HAS_JANSSON\n+int\n+fips_test_parse_one_json_vector_set(void);\n+\n+int\n+fips_test_parse_one_json_group(void);\n+\n+int\n+fips_test_parse_one_json_case(void);\n+#endif /* RTE_HAS_JANSSON */\n+\n int\n parse_test_aes_init(void);\n \ndiff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c\nindex e06ae37567..554d74cda0 100644\n--- a/examples/fips_validation/main.c\n+++ b/examples/fips_validation/main.c\n@@ -1251,6 +1251,8 @@ fips_generic_test(void)\n \t\tif (ret < 0)\n \t\t\treturn ret;\n \t\tbreak;\n+\tdefault:\n+\t\tbreak;\n \t}\n \n \tfprintf(info.fp_wr, \"\\n\");\n",
    "prefixes": [
        "v9",
        "02/10"
    ]
}