get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115522,
    "url": "http://patchwork.dpdk.org/api/patches/115522/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220826131737.1741743-17-cristian.dumitrescu@intel.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": "<20220826131737.1741743-17-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220826131737.1741743-17-cristian.dumitrescu@intel.com",
    "date": "2022-08-26T13:17:32",
    "name": "[V2,16/21] net/softnic: add pipeline commit and abort CLI commands",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8c8bed9134c4030355d38614dd7ff5c3a1e15dde",
    "submitter": {
        "id": 19,
        "url": "http://patchwork.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220826131737.1741743-17-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 24429,
            "url": "http://patchwork.dpdk.org/api/series/24429/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24429",
            "date": "2022-08-26T13:17:16",
            "name": "net/softnic: replace the legacy pipeline with SWX pipeline",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/24429/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/115522/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/115522/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 E46BDA0543;\n\tFri, 26 Aug 2022 15:20:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 056F142BA8;\n\tFri, 26 Aug 2022 15:18:20 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id A372040143\n for <dev@dpdk.org>; Fri, 26 Aug 2022 15:18:02 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Aug 2022 06:17:53 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by orsmga002.jf.intel.com with ESMTP; 26 Aug 2022 06:17:52 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1661519882; x=1693055882;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=a1BjULy0hJa4uUVv3Fg1yHqVl7/RMYYBVG3woNUVbdM=;\n b=g20xez8auqT/sF1/68olhh9SArEvVYzNRcv2leqvSgri1I8D7B0B/mk7\n ezavp23VDoux05L7+2c2URyTE9YU3p6hCEeid9p2WuopaeWINM41PAcKy\n XOXLdxvMtuWUAM1R0bk6m4mGmniEe5KdaV2+KJ8EczhubBJbRqrvwUm+Y\n ewSFZ1aCwX8zs6GHrBUHh57NSHlsLznY0SjjMEsu8OsMq9TGy9u721RuM\n I/Ni+94NxGJTHHwa1+BIW+Z8wGHkHkHAaV4GyG5mbEgAwBnjzIdc9oO+J\n VBl3CA7HMWtMV93NapbUvR5/sylMANJ8hhV82pr9ubUshX0zQiJ1DMEb0 g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10450\"; a=\"320598609\"",
            "E=Sophos;i=\"5.93,265,1654585200\"; d=\"scan'208\";a=\"320598609\"",
            "E=Sophos;i=\"5.93,265,1654585200\"; d=\"scan'208\";a=\"610561683\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Yogesh Jangra <yogesh.jangra@intel.com>",
        "Subject": "[PATCH V2 16/21] net/softnic: add pipeline commit and abort CLI\n commands",
        "Date": "Fri, 26 Aug 2022 13:17:32 +0000",
        "Message-Id": "<20220826131737.1741743-17-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220826131737.1741743-1-cristian.dumitrescu@intel.com>",
        "References": "<20220804165839.1074817-1-cristian.dumitrescu@intel.com>\n <20220826131737.1741743-1-cristian.dumitrescu@intel.com>",
        "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": "Add CLI commands for pipeline table update commit and abort.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Yogesh Jangra <yogesh.jangra@intel.com>\n---\n drivers/net/softnic/rte_eth_softnic_cli.c | 70 +++++++++++++++++++++++\n 1 file changed, 70 insertions(+)",
    "diff": "diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net/softnic/rte_eth_softnic_cli.c\nindex 4b7d001033..7c25a502ec 100644\n--- a/drivers/net/softnic/rte_eth_softnic_cli.c\n+++ b/drivers/net/softnic/rte_eth_softnic_cli.c\n@@ -1343,6 +1343,66 @@ cmd_softnic_pipeline_learner_default(struct pmd_internals *softnic,\n \tfclose(file);\n }\n \n+/**\n+ * pipeline <pipeline_name> commit\n+ */\n+static void\n+cmd_softnic_pipeline_commit(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct pipeline *p;\n+\tchar *pipeline_name;\n+\tint status;\n+\n+\tif (n_tokens != 3) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tpipeline_name = tokens[1];\n+\tp = softnic_pipeline_find(softnic, pipeline_name);\n+\tif (!p) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pipeline_name\");\n+\t\treturn;\n+\t}\n+\n+\tstatus = rte_swx_ctl_pipeline_commit(p->ctl, 1);\n+\tif (status)\n+\t\tsnprintf(out, out_size, \"Commit failed. \"\n+\t\t\t\"Use \\\"commit\\\" to retry or \\\"abort\\\" to discard the pending work.\\n\");\n+}\n+\n+/**\n+ * pipeline <pipeline_name> abort\n+ */\n+static void\n+cmd_softnic_pipeline_abort(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct pipeline *p;\n+\tchar *pipeline_name;\n+\n+\tif (n_tokens != 3) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tpipeline_name = tokens[1];\n+\tp = softnic_pipeline_find(softnic, pipeline_name);\n+\tif (!p) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"pipeline_name\");\n+\t\treturn;\n+\t}\n+\n+\trte_swx_ctl_pipeline_abort(p->ctl);\n+}\n+\n /**\n  * thread <thread_id> pipeline <pipeline_name> enable [ period <timer_period_ms> ]\n  */\n@@ -1563,6 +1623,16 @@ softnic_cli_process(char *in, char *out, size_t out_size, void *arg)\n \t\t\t\tout, out_size);\n \t\t\treturn;\n \t\t}\n+\n+\t\tif (n_tokens >= 3 && !strcmp(tokens[2], \"commit\")) {\n+\t\t\tcmd_softnic_pipeline_commit(softnic, tokens, n_tokens, out, out_size);\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tif (n_tokens >= 3 && !strcmp(tokens[2], \"abort\")) {\n+\t\t\tcmd_softnic_pipeline_abort(softnic, tokens, n_tokens, out, out_size);\n+\t\t\treturn;\n+\t\t}\n \t}\n \n \tif (strcmp(tokens[0], \"thread\") == 0) {\n",
    "prefixes": [
        "V2",
        "16/21"
    ]
}