get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 79734,
    "url": "http://patchwork.dpdk.org/api/patches/79734/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20201006074143.31691-4-olivier.matz@6wind.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": "<20201006074143.31691-4-olivier.matz@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201006074143.31691-4-olivier.matz@6wind.com",
    "date": "2020-10-06T07:41:43",
    "name": "[3/3] examples/fips_validation: support self-test only",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d04d0ddcacfa9d927ac36d472eac470c2108aa1f",
    "submitter": {
        "id": 8,
        "url": "http://patchwork.dpdk.org/api/people/8/?format=api",
        "name": "Olivier Matz",
        "email": "olivier.matz@6wind.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/20201006074143.31691-4-olivier.matz@6wind.com/mbox/",
    "series": [
        {
            "id": 12711,
            "url": "http://patchwork.dpdk.org/api/series/12711/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=12711",
            "date": "2020-10-06T07:41:43",
            "name": "examples/fips_validation: misc fixes",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/12711/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/79734/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/79734/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E8539A04BB;\n\tTue,  6 Oct 2020 09:42:04 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4ED2C1E35;\n\tTue,  6 Oct 2020 09:42:03 +0200 (CEST)",
            "from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com\n [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 6FA8325B3\n for <dev@dpdk.org>; Tue,  6 Oct 2020 09:42:01 +0200 (CEST)",
            "from glumotte.dev.6wind.com. (unknown [10.16.0.195])\n by proxy.6wind.com (Postfix) with ESMTP id 48CC846B236;\n Tue,  6 Oct 2020 09:42:00 +0200 (CEST)"
        ],
        "From": "Olivier Matz <olivier.matz@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Marko Kovacevic <marko.kovacevic@intel.com>,\n Akhil Goyal <akhil.goyal@nxp.com>, Fan Zhang <roy.fan.zhang@intel.com>,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>",
        "Date": "Tue,  6 Oct 2020 09:41:43 +0200",
        "Message-Id": "<20201006074143.31691-4-olivier.matz@6wind.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20201006074143.31691-1-olivier.matz@6wind.com>",
        "References": "<20201006074143.31691-1-olivier.matz@6wind.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 3/3] examples/fips_validation: support self-test\n\tonly",
        "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 <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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Make it possible to pass the self-tests when no req path is set.\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\n---\n examples/fips_validation/main.c | 22 ++++++++++++++++++++--\n 1 file changed, 20 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c\nindex 0a1c8b568c..ee3a890e9e 100644\n--- a/examples/fips_validation/main.c\n+++ b/examples/fips_validation/main.c\n@@ -315,8 +315,21 @@ cryptodev_fips_validate_parse_args(int argc, char **argv)\n \t\t}\n \t}\n \n-\tif (env.req_path == NULL || env.rsp_path == NULL ||\n-\t\t\tenv.dev_id == UINT32_MAX) {\n+\tif (env.dev_id == UINT32_MAX) {\n+\t\tRTE_LOG(ERR, USER1, \"No device specified\\n\");\n+\t\tcryptodev_fips_validate_usage(prgname);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif ((env.req_path == NULL && env.rsp_path != NULL) ||\n+\t\t\t(env.req_path != NULL && env.rsp_path == NULL)) {\n+\t\tRTE_LOG(ERR, USER1, \"Missing req path or rsp path\\n\");\n+\t\tcryptodev_fips_validate_usage(prgname);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (env.req_path == NULL && env.self_test == 0) {\n+\t\tRTE_LOG(ERR, USER1, \"--self-test must be set if req path is missing\\n\");\n \t\tcryptodev_fips_validate_usage(prgname);\n \t\treturn -EINVAL;\n \t}\n@@ -348,6 +361,11 @@ main(int argc, char *argv[])\n \t\treturn -1;\n \t}\n \n+\tif (env.req_path == NULL || env.rsp_path == NULL) {\n+\t\tprintf(\"No request, exit.\\n\");\n+\t\tgoto exit;\n+\t}\n+\n \tif (!env.is_path_folder) {\n \t\tprintf(\"Processing file %s... \", env.req_path);\n \n",
    "prefixes": [
        "3/3"
    ]
}