get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76960,
    "url": "http://patches.dpdk.org/api/patches/76960/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200908201830.74206-27-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": "<20200908201830.74206-27-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200908201830.74206-27-cristian.dumitrescu@intel.com",
    "date": "2020-09-08T20:18:15",
    "name": "[v3,26/41] pipeline: add SWX instruction description",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9c6560d8b965d552d92c1adb506cdc9266ea86b9",
    "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/20200908201830.74206-27-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 12034,
            "url": "http://patches.dpdk.org/api/series/12034/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12034",
            "date": "2020-09-08T20:17:52",
            "name": "Pipeline alignment with the P4 language",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/12034/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76960/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76960/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 AEBDBA04B1;\n\tTue,  8 Sep 2020 22:23:26 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 191451C229;\n\tTue,  8 Sep 2020 22:19:37 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id B97BD1C11D\n for <dev@dpdk.org>; Tue,  8 Sep 2020 22:19:03 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Sep 2020 13:18:57 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga006.fm.intel.com with ESMTP; 08 Sep 2020 13:18:56 -0700"
        ],
        "IronPort-SDR": [
            "\n BnszsstbqBIRErKXxUlep3myf/bRqDvwIbxQ5yVQPO5+7OT3LiyY99/dsE4k+xGQ2bcT3tiCTC\n PFhNk61psEMw==",
            "\n ZINptMGMpfPO3nNUsweAGrV9cFaqLdVsBs9fsxZZc0pmLi2gDnXpfO6wQKKYbaRsKzX5nboETW\n UMR19t/DAZ3A=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9738\"; a=\"145939429\"",
            "E=Sophos;i=\"5.76,407,1592895600\"; d=\"scan'208\";a=\"145939429\"",
            "E=Sophos;i=\"5.76,406,1592895600\"; d=\"scan'208\";a=\"504493490\""
        ],
        "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",
        "Date": "Tue,  8 Sep 2020 21:18:15 +0100",
        "Message-Id": "<20200908201830.74206-27-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200908201830.74206-1-cristian.dumitrescu@intel.com>",
        "References": "<20200907214032.95052-2-cristian.dumitrescu@intel.com>\n <20200908201830.74206-1-cristian.dumitrescu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 26/41] pipeline: add SWX instruction\n\tdescription",
        "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": "Added SWX instruction set reference table.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/librte_pipeline/rte_swx_pipeline.h | 109 +++++++++++++++++++++++++\n 1 file changed, 109 insertions(+)",
    "diff": "diff --git a/lib/librte_pipeline/rte_swx_pipeline.h b/lib/librte_pipeline/rte_swx_pipeline.h\nindex fb83a8820..d6c086e27 100644\n--- a/lib/librte_pipeline/rte_swx_pipeline.h\n+++ b/lib/librte_pipeline/rte_swx_pipeline.h\n@@ -345,6 +345,115 @@ int\n rte_swx_pipeline_packet_metadata_register(struct rte_swx_pipeline *p,\n \t\t\t\t\t  const char *struct_type_name);\n \n+/*\n+ * Instructions\n+ */\n+\n+/**\n+ * Instruction operands:\n+ *\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>|     | Description               | Format           | DST | SRC |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| hdr | Header                    | h.header         |     |     |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| act | Action                    | ACTION           |     |     |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| tbl | Table                     | TABLE            |     |     |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| H   | Header field              | h.header.field   | YES | YES |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| M   | Meta-data field           | m.field          | YES | YES |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| E   | Extern obj mailbox field  | e.ext_obj.field  | YES | YES |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| F   | Extern func mailbox field | f.ext_func.field | YES | YES |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| T   | Table action data field   | t.header.field   | NO  | YES |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *<pre>| I   | Immediate value (32-bit)  | h.header.field   | NO  | YES |</pre>\n+ *<pre>+-----+---------------------------+------------------+-----+-----+</pre>\n+ *\n+ * Instruction set:\n+ *\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| Instr.     | Instruction          | Instruction       | 1st  | 2nd    |</pre>\n+ *<pre>| Name       | Description          | Format            | opnd.| opnd.  |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| rx         | Receive one pkt      | rx m.port_in      | M    |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| tx         | Transmit one pkt     | tx m.port_out     | M    |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| extract    | Extract one hdr      | extract h.hdr     | hdr  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| emit       | Emit one hdr         | emit h.hdr        | hdr  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| validate   | Validate one hdr     | validate h.hdr    | hdr  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| invalidate | Invalidate one hdr   | invalidate h.hdr  | hdr  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| mov        | dst = src            | mov dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| dma        | memcpy(h.hdr,        | dma h.hdr t.field | hdr  | T      |</pre>\n+ *<pre>|            |    &t.field,         |                   |      |        |</pre>\n+ *<pre>|            |    sizeof(h.hdr)     |                   |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| add        | dst += src           | add dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| sub        | dst -= src           | add dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| ckadd      | Checksum add: dst =  | add dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>|            | dst '+ src[0:1] '+   |                   |      | or hdr |</pre>\n+ *<pre>|            | src[2:3] '+ ...      |                   |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| cksub      | Checksum subtract:   | add dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>|            | dst = dst '- src     |                   |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| and        | dst &= src           | and dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| or         | dst |= src           | or  dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| xor        | dst ^= src           | xor dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| shl        | dst <<= src          | shl dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| shr        | dst >>= src          | shr dst src       | HMEF | HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| table      | Table lookup         | table TABLE       | tbl  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| extern     | Ext obj member func  | extern e.obj.mfunc| ext  |        |</pre>\n+ *<pre>|            | call or ext func call| extern f.func     |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmp        | Unconditional jump   | jmp LABEL         |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpv       | Jump if hdr is valid | jmpv LABEL h.hdr  | hdr  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpnv      | Jump if hdr is inval | jmpnv LABEL h.hdr | hdr  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmph       | Jump if tbl lkp hit  | jmph LABEL        |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpnh      | Jump if tbl lkp miss | jmpnh LABEL       |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpa       | Jump if action run   | jmpa LABEL ACTION | act  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpna      | Jump if act not run  | jmpna LABEL ACTION| act  |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpeq      | Jump if (a == b)     | jmpeq LABEL a b   | HMEFT| HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpneq     | Jump if (a != b)     | jmpneq LABEL a b  | HMEFT| HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmplt      | Jump if (a < b)      | jmplt LABEL a b   | HMEFT| HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| jmpgt      | Jump if (a > b)      | jmpgt LABEL a b   | HMEFT| HMEFTI |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *<pre>| return     | Return from action   | return            |      |        |</pre>\n+ *<pre>+------------+----------------------+-------------------+------+--------+</pre>\n+ *\n+ * At initialization time, the pipeline and action instructions (including the\n+ * symbolic name operands) are translated to internal data structures that are\n+ * used at run-time.\n+ */\n+\n /*\n  * Pipeline action\n  */\n",
    "prefixes": [
        "v3",
        "26/41"
    ]
}