get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104720,
    "url": "http://patches.dpdk.org/api/patches/104720/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211126235129.35781-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": "<20211126235129.35781-3-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211126235129.35781-3-cristian.dumitrescu@intel.com",
    "date": "2021-11-26T23:51:28",
    "name": "[3/4] pipeline: move table type registration to library",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "53b1eb3d5fd88545f1b359039cfa40732af31072",
    "submitter": {
        "id": 19,
        "url": "http://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211126235129.35781-3-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 20793,
            "url": "http://patches.dpdk.org/api/series/20793/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20793",
            "date": "2021-11-26T23:51:26",
            "name": "[1/4] pipeline: improve the drop instruction",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/20793/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/104720/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/104720/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 533EBA0C43;\n\tSat, 27 Nov 2021 00:51:45 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4A8764274C;\n\tSat, 27 Nov 2021 00:51:37 +0100 (CET)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id AC01041223\n for <dev@dpdk.org>; Sat, 27 Nov 2021 00:51:34 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Nov 2021 15:51:33 -0800",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by orsmga008.jf.intel.com with ESMTP; 26 Nov 2021 15:51:32 -0800"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10180\"; a=\"299130310\"",
            "E=Sophos;i=\"5.87,267,1631602800\"; d=\"scan'208\";a=\"299130310\"",
            "E=Sophos;i=\"5.87,267,1631602800\"; d=\"scan'208\";a=\"510837562\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "yogesh.jangra@intel.com",
        "Subject": "[PATCH 3/4] pipeline: move table type registration to library",
        "Date": "Fri, 26 Nov 2021 23:51:28 +0000",
        "Message-Id": "<20211126235129.35781-3-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20211126235129.35781-1-cristian.dumitrescu@intel.com>",
        "References": "<20211126235129.35781-1-cristian.dumitrescu@intel.com>",
        "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": "Move the table type registration for the well known table types from\nthe application to the pipeline library.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Yogesh Jangra <yogesh.jangra@intel.com>\n---\n examples/pipeline/obj.c         | 16 ----------------\n lib/pipeline/rte_swx_pipeline.c | 29 +++++++++++++++++++++++++++++\n 2 files changed, 29 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/examples/pipeline/obj.c b/examples/pipeline/obj.c\nindex 4b2db66c46..b79f044ac7 100644\n--- a/examples/pipeline/obj.c\n+++ b/examples/pipeline/obj.c\n@@ -16,8 +16,6 @@\n #include <rte_mempool.h>\n #include <rte_mbuf.h>\n #include <rte_ethdev.h>\n-#include <rte_swx_table_em.h>\n-#include <rte_swx_table_wm.h>\n #include <rte_swx_pipeline.h>\n #include <rte_swx_ctl.h>\n \n@@ -539,20 +537,6 @@ pipeline_create(struct obj *obj, const char *name, int numa_node)\n \tif (status)\n \t\tgoto error;\n \n-\tstatus = rte_swx_pipeline_table_type_register(p,\n-\t\t\"exact\",\n-\t\tRTE_SWX_TABLE_MATCH_EXACT,\n-\t\t&rte_swx_table_exact_match_ops);\n-\tif (status)\n-\t\tgoto error;\n-\n-\tstatus = rte_swx_pipeline_table_type_register(p,\n-\t\t\"wildcard\",\n-\t\tRTE_SWX_TABLE_MATCH_WILDCARD,\n-\t\t&rte_swx_table_wildcard_match_ops);\n-\tif (status)\n-\t\tgoto error;\n-\n \t/* Node allocation */\n \tpipeline = calloc(1, sizeof(struct pipeline));\n \tif (pipeline == NULL)\ndiff --git a/lib/pipeline/rte_swx_pipeline.c b/lib/pipeline/rte_swx_pipeline.c\nindex bebad98e99..a05a4edc7d 100644\n--- a/lib/pipeline/rte_swx_pipeline.c\n+++ b/lib/pipeline/rte_swx_pipeline.c\n@@ -12,6 +12,9 @@\n #include <rte_swx_port_ring.h>\n #include \"rte_swx_port_source_sink.h\"\n \n+#include <rte_swx_table_em.h>\n+#include <rte_swx_table_wm.h>\n+ \n #include \"rte_swx_pipeline_internal.h\"\n \n #define CHECK(condition, err_code)                                             \\\n@@ -9088,6 +9091,28 @@ port_out_types_register(struct rte_swx_pipeline *p)\n \treturn 0;\n }\n \n+static int\n+table_types_register(struct rte_swx_pipeline *p)\n+{\n+\tint status;\n+\n+\tstatus = rte_swx_pipeline_table_type_register(p,\n+\t\t\"exact\",\n+\t\tRTE_SWX_TABLE_MATCH_EXACT,\n+\t\t&rte_swx_table_exact_match_ops);\n+\tif (status)\n+\t\treturn status;\n+\n+\tstatus = rte_swx_pipeline_table_type_register(p,\n+\t\t\"wildcard\",\n+\t\tRTE_SWX_TABLE_MATCH_WILDCARD,\n+\t\t&rte_swx_table_wildcard_match_ops);\n+\tif (status)\n+\t\treturn status;\n+\n+\treturn 0;\n+}\n+\n int\n rte_swx_pipeline_config(struct rte_swx_pipeline **p, int numa_node)\n {\n@@ -9134,6 +9159,10 @@ rte_swx_pipeline_config(struct rte_swx_pipeline **p, int numa_node)\n \tif (status)\n \t\tgoto error;\n \n+\tstatus = table_types_register(pipeline);\n+\tif (status)\n+\t\tgoto error;\n+\n \t*p = pipeline;\n \treturn 0;\n \n",
    "prefixes": [
        "3/4"
    ]
}