get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 106716,
    "url": "http://patchwork.dpdk.org/api/patches/106716/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220129175514.746925-3-blo@iol.unh.edu/",
    "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": "<20220129175514.746925-3-blo@iol.unh.edu>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220129175514.746925-3-blo@iol.unh.edu",
    "date": "2022-01-29T17:55:11",
    "name": "[v3,2/5] examples/fips_validation: add json info to header",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e3b0ddeb358883f949e5f446abb68157493554fe",
    "submitter": {
        "id": 1678,
        "url": "http://patchwork.dpdk.org/api/people/1678/?format=api",
        "name": "Brandon Lo",
        "email": "blo@iol.unh.edu"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220129175514.746925-3-blo@iol.unh.edu/mbox/",
    "series": [
        {
            "id": 21426,
            "url": "http://patchwork.dpdk.org/api/series/21426/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=21426",
            "date": "2022-01-29T17:55:09",
            "name": "Add JSON vector set support to fips validation",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/21426/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/106716/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/106716/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 B6ED0A00C4;\n\tSat, 29 Jan 2022 18:55:27 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A748940E2D;\n\tSat, 29 Jan 2022 18:55:22 +0100 (CET)",
            "from mail-qk1-f169.google.com (mail-qk1-f169.google.com\n [209.85.222.169])\n by mails.dpdk.org (Postfix) with ESMTP id 85D9440E2D\n for <dev@dpdk.org>; Sat, 29 Jan 2022 18:55:19 +0100 (CET)",
            "by mail-qk1-f169.google.com with SMTP id j24so6113994qkk.10\n for <dev@dpdk.org>; Sat, 29 Jan 2022 09:55:19 -0800 (PST)",
            "from blo.hsd1.nh.comcast.net\n ([2601:187:807e:37c0:8f3:b5b9:6ccc:8a5c])\n by smtp.gmail.com with ESMTPSA id 195sm5423654qkf.30.2022.01.29.09.55.18\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 29 Jan 2022 09:55:18 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu;\n s=unh-iol;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=gwlnmQeD/tOhON2UYqK1AATKV/D3dMUkEaJcvvn1dUg=;\n b=cEjJQ+1rSQyYI6ruqLGzPJ6VI+BCNlQz4+ZcBvc9//aO8d8mwkDiHEtNkKNHf8eAFK\n S7c9eH/EzyvXi53hJL7LSo3A3Dp6R+tgyIigkY0Z0YxieqRRoDgrCXlkQ+HxEXBxn4Sy\n LTUnqN7GXwrPAtwwniEYM2pLrC5P/sw8fUxRo=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=gwlnmQeD/tOhON2UYqK1AATKV/D3dMUkEaJcvvn1dUg=;\n b=Yel88a825tB2lAjjewNCEeUpVV7hr2W3g+9rZRGRfG0ioKAUiwZzB1wM95RCcMOzs6\n lPbJ+spsbcby5/xMDWTo8L/d//1A/ZtfMZ6srt0wqRJ+eaYzR9vdIdximdJfJkz0JitD\n DhKhPEomzIJfaxUwgV1Z8Udnwu884gXx7MeiZoDHgATstqSMeLMoVKD5my7Qe2SxrM2e\n L7VcFG4IS+X33f6830A0+zU0ytd4Y7I5qKBo9pLUN6jX2kL2w6skJcFcwyzrsYXIj2SG\n L33fLvwLex8T1YC8AZgbs7RpPwM/8NC4CaftfIyceUDHHm+n8DKqRmnWSEPwRyNOZhfa\n mxDQ==",
        "X-Gm-Message-State": "AOAM530kFG6+bzGA26tehZJFXjoLUbMteoDgURY0+5FqX5KlV2RdWlHR\n wcn1MN3yIJPfnkTWuW43Z6wzyNFAHtpqbn3/Mws=",
        "X-Google-Smtp-Source": "\n ABdhPJzpBudmjzOBbvTo+oEi8bt6x8nR5jpzEefSlt5d0EIVwimRPMCTdX1gjvc/cecgZE62Bzrcrg==",
        "X-Received": "by 2002:a37:9444:: with SMTP id w65mr8927831qkd.468.1643478918939;\n Sat, 29 Jan 2022 09:55:18 -0800 (PST)",
        "From": "Brandon Lo <blo@iol.unh.edu>",
        "To": "roy.fan.zhang@intel.com,\n\tciara.power@intel.com",
        "Cc": "dev@dpdk.org,\n\tBrandon Lo <blo@iol.unh.edu>",
        "Subject": "[PATCH v3 2/5] examples/fips_validation: add json info to header",
        "Date": "Sat, 29 Jan 2022 12:55:11 -0500",
        "Message-Id": "<20220129175514.746925-3-blo@iol.unh.edu>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220129175514.746925-1-blo@iol.unh.edu>",
        "References": "<20220129170313.489986-1-blo@iol.unh.edu>\n <20220129175514.746925-1-blo@iol.unh.edu>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Added json-specific functions and other information needed to\ntest the new FIPS test vectors.\n\nSigned-off-by: Brandon Lo <blo@iol.unh.edu>\n---\nv2:\n* fix type of prefix to suffix\n\n examples/fips_validation/fips_validation.h | 48 ++++++++++++++++++++--\n 1 file changed, 44 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/examples/fips_validation/fips_validation.h b/examples/fips_validation/fips_validation.h\nindex aaadf01ba8..8e2963faa3 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_SUFFIX\t\t\"req\"\n+#define RSP_FILE_SUFFIX\t\t\"rsp\"\n+#define FAX_FILE_SUFFIX\t\t\"fax\"\n+#define JSON_FILE_SUFFIX\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 \n",
    "prefixes": [
        "v3",
        "2/5"
    ]
}