get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 79273,
    "url": "https://patches.dpdk.org/api/patches/79273/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200930063416.68428-31-cristian.dumitrescu@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20200930063416.68428-31-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200930063416.68428-31-cristian.dumitrescu@intel.com",
    "date": "2020-09-30T06:34:04",
    "name": "[v6,30/42] pipeline: add SWX pipeline flush",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3a1090a576a8b1de8cb7a315774435732eeafbac",
    "submitter": {
        "id": 19,
        "url": "https://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200930063416.68428-31-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 12606,
            "url": "https://patches.dpdk.org/api/series/12606/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12606",
            "date": "2020-09-30T06:33:34",
            "name": "Pipeline alignment with the P4 language",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/12606/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/79273/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/79273/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 EE974A04B1;\n\tWed, 30 Sep 2020 08:45:02 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 729BF1DB71;\n\tWed, 30 Sep 2020 08:35:57 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 989D31DA33\n for <dev@dpdk.org>; Wed, 30 Sep 2020 08:34:59 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Sep 2020 23:34:57 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by orsmga005.jf.intel.com with ESMTP; 29 Sep 2020 23:34:57 -0700"
        ],
        "IronPort-SDR": [
            "\n 6ug85Z/tRgEX5IW3Pry/0A1F4ttFq6LLGZEbQ9WXC/WpzI1LohWgU1S41KEygHTsz9EQjAJo/U\n pEnnug651wsg==",
            "\n bbKYlD9XhAVKijj/Gac+3W8HuWyumEbcMYPhd/INwAe6o4JrIrb5ZOV+Gzi3+h3xwgMScGmsih\n bFWsu9JJEvWg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9759\"; a=\"163238779\"",
            "E=Sophos;i=\"5.77,321,1596524400\"; d=\"scan'208\";a=\"163238779\"",
            "E=Sophos;i=\"5.77,321,1596524400\"; d=\"scan'208\";a=\"495883600\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net,\n\tdavid.marchand@redhat.com",
        "Date": "Wed, 30 Sep 2020 07:34:04 +0100",
        "Message-Id": "<20200930063416.68428-31-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200930063416.68428-1-cristian.dumitrescu@intel.com>",
        "References": "<20200923180645.55852-2-cristian.dumitrescu@intel.com>\n <20200930063416.68428-1-cristian.dumitrescu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v6 30/42] pipeline: add SWX pipeline flush",
        "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": "Flush the packets currently buffered by the SWX pipeline output ports.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/librte_pipeline/rte_pipeline_version.map |  1 +\n lib/librte_pipeline/rte_swx_pipeline.c       | 13 +++++++++++++\n lib/librte_pipeline/rte_swx_pipeline.h       | 12 ++++++++++++\n 3 files changed, 26 insertions(+)",
    "diff": "diff --git a/lib/librte_pipeline/rte_pipeline_version.map b/lib/librte_pipeline/rte_pipeline_version.map\nindex bb992fdd0..730e11a0c 100644\n--- a/lib/librte_pipeline/rte_pipeline_version.map\n+++ b/lib/librte_pipeline/rte_pipeline_version.map\n@@ -74,6 +74,7 @@ EXPERIMENTAL {\n \trte_swx_pipeline_build;\n \trte_swx_pipeline_free;\n \trte_swx_pipeline_run;\n+\trte_swx_pipeline_flush;\n \trte_swx_pipeline_table_state_get;\n \trte_swx_pipeline_table_state_set;\n \trte_swx_ctl_pipeline_info_get;\ndiff --git a/lib/librte_pipeline/rte_swx_pipeline.c b/lib/librte_pipeline/rte_swx_pipeline.c\nindex da69bab49..8b7ff56f6 100644\n--- a/lib/librte_pipeline/rte_swx_pipeline.c\n+++ b/lib/librte_pipeline/rte_swx_pipeline.c\n@@ -6951,6 +6951,19 @@ rte_swx_pipeline_run(struct rte_swx_pipeline *p, uint32_t n_instructions)\n \t\tinstr_exec(p);\n }\n \n+void\n+rte_swx_pipeline_flush(struct rte_swx_pipeline *p)\n+{\n+\tuint32_t i;\n+\n+\tfor (i = 0; i < p->n_ports_out; i++) {\n+\t\tstruct port_out_runtime *port = &p->out[i];\n+\n+\t\tif (port->flush)\n+\t\t\tport->flush(port->obj);\n+\t}\n+}\n+\n /*\n  * Control.\n  */\ndiff --git a/lib/librte_pipeline/rte_swx_pipeline.h b/lib/librte_pipeline/rte_swx_pipeline.h\nindex d6c086e27..6da5710af 100644\n--- a/lib/librte_pipeline/rte_swx_pipeline.h\n+++ b/lib/librte_pipeline/rte_swx_pipeline.h\n@@ -656,6 +656,18 @@ void\n rte_swx_pipeline_run(struct rte_swx_pipeline *p,\n \t\t     uint32_t n_instructions);\n \n+/**\n+ * Pipeline flush\n+ *\n+ * Flush all output ports of the pipeline.\n+ *\n+ * @param[in] p\n+ *   Pipeline handle.\n+ */\n+__rte_experimental\n+void\n+rte_swx_pipeline_flush(struct rte_swx_pipeline *p);\n+\n /**\n  * Pipeline free\n  *\n",
    "prefixes": [
        "v6",
        "30/42"
    ]
}