get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114315,
    "url": "http://patches.dpdk.org/api/patches/114315/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220727230132.601114-3-cristian.dumitrescu@intel.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": "<20220727230132.601114-3-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220727230132.601114-3-cristian.dumitrescu@intel.com",
    "date": "2022-07-27T23:01:18",
    "name": "[V5,03/17] pipeline: add pipeline specification data structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "46f9b010176897c7bc84c61b560f8a09204fa8ba",
    "submitter": {
        "id": 19,
        "url": "http://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220727230132.601114-3-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 24108,
            "url": "http://patches.dpdk.org/api/series/24108/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24108",
            "date": "2022-07-27T23:01:16",
            "name": "[V5,01/17] pipeline: add pipeline name",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/24108/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/114315/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/114315/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 00689A00C4;\n\tThu, 28 Jul 2022 01:01:46 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 979F142826;\n\tThu, 28 Jul 2022 01:01:39 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 8FDA040E25\n for <dev@dpdk.org>; Thu, 28 Jul 2022 01:01:36 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Jul 2022 16:01:35 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by fmsmga006.fm.intel.com with ESMTP; 27 Jul 2022 16:01:35 -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=1658962896; x=1690498896;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=UzzpIhJ2abbRozU27BFdEHiHwKlZzXx+954EfyzY78c=;\n b=eutnOykAdDtqfMc/xLFhHlZ89WvYuN9MXAyA/KGWDWjOLhlfTrd9o6pP\n tlKHca/conBhdXfzxnyDoM7OUpa7qP/WjPSwO2OGVKziTU/loggbd/23S\n URPFJTSNwfI7bhieleL8pO8y62nkFxulJ0oH4ku3jDjYJXzXFI8/kQD6/\n p7q3pAOfDvktIc3vp0Qvaz6FBZDGbZG5toiUqr+w/Li6q4Dj3JsAC/yPL\n J12v8RgZ0saFrmPG9WS4IXz8P51kJ9/x9D772zCpOVE6lG0Y3eK9loGS/\n ezmV03EW/tQQ3wgNagE7Mejv8D6ARthXaVbAD8ULUhZy5BSd3tvXFywXa w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10421\"; a=\"314150880\"",
            "E=Sophos;i=\"5.93,196,1654585200\"; d=\"scan'208\";a=\"314150880\"",
            "E=Sophos;i=\"5.93,196,1654585200\"; d=\"scan'208\";a=\"846444291\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "\"Kamalakannan R .\" <kamalakannan.r@intel.com>",
        "Subject": "[PATCH V5 03/17] pipeline: add pipeline specification data structure",
        "Date": "Wed, 27 Jul 2022 23:01:18 +0000",
        "Message-Id": "<20220727230132.601114-3-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220727230132.601114-1-cristian.dumitrescu@intel.com>",
        "References": "<20220727225431.600913-1-cristian.dumitrescu@intel.com>\n <20220727230132.601114-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 specification data structure for the entire pipeline.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Kamalakannan R. <kamalakannan.r@intel.com>\n---\n lib/pipeline/rte_swx_pipeline_spec.c | 21 ++++++++++++++++++\n lib/pipeline/rte_swx_pipeline_spec.h | 32 ++++++++++++++++++++++++++++\n 2 files changed, 53 insertions(+)",
    "diff": "diff --git a/lib/pipeline/rte_swx_pipeline_spec.c b/lib/pipeline/rte_swx_pipeline_spec.c\nindex 5e07b4f794..642091b678 100644\n--- a/lib/pipeline/rte_swx_pipeline_spec.c\n+++ b/lib/pipeline/rte_swx_pipeline_spec.c\n@@ -2082,6 +2082,27 @@ apply_block_parse(struct apply_spec *s,\n /*\n  * Pipeline.\n  */\n+void\n+pipeline_spec_free(struct pipeline_spec *s)\n+{\n+\tif (!s)\n+\t\treturn;\n+\n+\tfree(s->extobjs);\n+\tfree(s->structs);\n+\tfree(s->headers);\n+\tfree(s->metadata);\n+\tfree(s->actions);\n+\tfree(s->tables);\n+\tfree(s->selectors);\n+\tfree(s->learners);\n+\tfree(s->regarrays);\n+\tfree(s->metarrays);\n+\tfree(s->apply);\n+\n+\tmemset(s, 0, sizeof(struct pipeline_spec));\n+}\n+\n int\n rte_swx_pipeline_build_from_spec(struct rte_swx_pipeline *p,\n \t\t\t\t FILE *spec,\ndiff --git a/lib/pipeline/rte_swx_pipeline_spec.h b/lib/pipeline/rte_swx_pipeline_spec.h\nindex 8458de878a..e1170a33b1 100644\n--- a/lib/pipeline/rte_swx_pipeline_spec.h\n+++ b/lib/pipeline/rte_swx_pipeline_spec.h\n@@ -174,3 +174,35 @@ struct apply_spec {\n \tconst char **instructions;\n \tuint32_t n_instructions;\n };\n+\n+/*\n+ * Pipeline.\n+ */\n+struct pipeline_spec {\n+\tstruct extobj_spec *extobjs;\n+\tstruct struct_spec *structs;\n+\tstruct header_spec *headers;\n+\tstruct metadata_spec *metadata;\n+\tstruct action_spec *actions;\n+\tstruct table_spec *tables;\n+\tstruct selector_spec *selectors;\n+\tstruct learner_spec *learners;\n+\tstruct regarray_spec *regarrays;\n+\tstruct metarray_spec *metarrays;\n+\tstruct apply_spec *apply;\n+\n+\tuint32_t n_extobjs;\n+\tuint32_t n_structs;\n+\tuint32_t n_headers;\n+\tuint32_t n_metadata;\n+\tuint32_t n_actions;\n+\tuint32_t n_tables;\n+\tuint32_t n_selectors;\n+\tuint32_t n_learners;\n+\tuint32_t n_regarrays;\n+\tuint32_t n_metarrays;\n+\tuint32_t n_apply;\n+};\n+\n+void\n+pipeline_spec_free(struct pipeline_spec *s);\n",
    "prefixes": [
        "V5",
        "03/17"
    ]
}