get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52975,
    "url": "http://patches.dpdk.org/api/patches/52975/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/090cc7320454e38afcfcc3b0910dd99d801e942c.1555926274.git.dekelp@mellanox.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": "<090cc7320454e38afcfcc3b0910dd99d801e942c.1555926274.git.dekelp@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/090cc7320454e38afcfcc3b0910dd99d801e942c.1555926274.git.dekelp@mellanox.com",
    "date": "2019-04-22T11:22:51",
    "name": "[v5,1/3] ethdev: add actions to modify TCP header fields",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c00fec967002d11a917b576cf8964d3d20650e27",
    "submitter": {
        "id": 1082,
        "url": "http://patches.dpdk.org/api/people/1082/?format=api",
        "name": "Dekel Peled",
        "email": "dekelp@mellanox.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/090cc7320454e38afcfcc3b0910dd99d801e942c.1555926274.git.dekelp@mellanox.com/mbox/",
    "series": [
        {
            "id": 4409,
            "url": "http://patches.dpdk.org/api/series/4409/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4409",
            "date": "2019-04-22T11:22:50",
            "name": "add actions to modify header fields",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/4409/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52975/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/52975/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CCCA01B474;\n\tMon, 22 Apr 2019 13:26:24 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id EC5E51B43B\n\tfor <dev@dpdk.org>; Mon, 22 Apr 2019 13:26:19 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tdekelp@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 22 Apr 2019 14:26:18 +0300",
            "from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx\n\t[10.128.130.87])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x3MBQA05026285;\n\tMon, 22 Apr 2019 14:26:18 +0300"
        ],
        "From": "Dekel Peled <dekelp@mellanox.com>",
        "To": "adrien.mazarguil@6wind.com, wenzhuo.lu@intel.com, jingjing.wu@intel.com, \n\tbernard.iremonger@intel.com, yskoh@mellanox.com, shahafs@mellanox.com,\n\tarybchenko@solarflare.com",
        "Cc": "dev@dpdk.org, orika@mellanox.com, dekelp@mellanox.com",
        "Date": "Mon, 22 Apr 2019 14:22:51 +0300",
        "Message-Id": "<090cc7320454e38afcfcc3b0910dd99d801e942c.1555926274.git.dekelp@mellanox.com>",
        "X-Mailer": "git-send-email 1.7.1",
        "In-Reply-To": "<cover.1555926274.git.dekelp@mellanox.com>",
        "References": "<cover.1554896841.git.dekelp@mellanox.com>\n\t<cover.1555926274.git.dekelp@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v5 1/3] ethdev: add actions to modify TCP header\n\tfields",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add actions:\n- INC_TCP_SEQ - Increase sequence number in the outermost TCP header.\n- DEC_TCP_SEQ - Decrease sequence number in the outermost TCP header.\n- INC_TCP_ACK - Increase acknowledgment number in the outermost TCP\n\t\theader.\n- DEC_TCP_ACK - Decrease acknowledgment number in the outermost TCP\n\t\theader.\n\nOriginal work by Xiaoyu Min.\n\nSigned-off-by: Dekel Peled <dekelp@mellanox.com>\n---\n doc/guides/prog_guide/rte_flow.rst | 68 ++++++++++++++++++++++++++++++++++++++\n lib/librte_ethdev/rte_flow.c       |  4 +++\n lib/librte_ethdev/rte_flow.h       | 61 ++++++++++++++++++++++++++++++++++\n 3 files changed, 133 insertions(+)",
    "diff": "diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex 0203f4f..a050853 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -2345,6 +2345,74 @@ Otherwise, RTE_FLOW_ERROR_TYPE_ACTION error will be returned.\n    | ``mac_addr`` | MAC address   |\n    +--------------+---------------+\n \n+Action: ``INC_TCP_SEQ``\n+^^^^^^^^^^^^^^^^^^^^^^^\n+\n+Increase sequence number in the outermost TCP header.\n+\n+Using this action on non-matching traffic will result in undefined behavior.\n+\n+.. _table_rte_flow_action_inc_tcp_seq:\n+\n+.. table:: INC_TCP_SEQ\n+\n+   +----------+------------------------------------------+\n+   | Field    | Value                                    |\n+   +==========+==========================================+\n+   | ``be32`` | Value to increase TCP sequence number by |\n+   +----------+------------------------------------------+\n+\n+Action: ``DEC_TCP_SEQ``\n+^^^^^^^^^^^^^^^^^^^^^^^\n+\n+Decrease sequence number in the outermost TCP header.\n+\n+Using this action on non-matching traffic will result in undefined behavior.\n+\n+.. _table_rte_flow_action_dec_tcp_seq:\n+\n+.. table:: DEC_TCP_SEQ\n+\n+   +----------+------------------------------------------+\n+   | Field    | Value                                    |\n+   +==========+==========================================+\n+   | ``be32`` | Value to decrease TCP sequence number by |\n+   +----------+------------------------------------------+\n+\n+Action: ``INC_TCP_ACK``\n+^^^^^^^^^^^^^^^^^^^^^^^\n+\n+Increase acknowledgment number in the outermost TCP header.\n+\n+Using this action on non-matching traffic will result in undefined behavior.\n+\n+.. _table_rte_flow_action_inc_tcp_ack:\n+\n+.. table:: INC_TCP_ACK\n+\n+   +----------+------------------------------------------------+\n+   | Field    | Value                                          |\n+   +==========+================================================+\n+   | ``be32`` | Value to increase TCP acknowledgment number by |\n+   +----------+------------------------------------------------+\n+\n+Action: ``DEC_TCP_ACK``\n+^^^^^^^^^^^^^^^^^^^^^^^\n+\n+Decrease acknowledgment number in the outermost TCP header.\n+\n+Using this action on non-matching traffic will result in undefined behavior.\n+\n+.. _table_rte_flow_action_dec_tcp_ack:\n+\n+.. table:: DEC_TCP_ACK\n+\n+   +----------+------------------------------------------------+\n+   | Field    | Value                                          |\n+   +==========+================================================+\n+   | ``be32`` | Value to decrease TCP acknowledgment number by |\n+   +----------+------------------------------------------------+\n+\n Negative types\n ~~~~~~~~~~~~~~\n \ndiff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c\nindex 3277be1..d666d06 100644\n--- a/lib/librte_ethdev/rte_flow.c\n+++ b/lib/librte_ethdev/rte_flow.c\n@@ -143,6 +143,10 @@ struct rte_flow_desc_data {\n \tMK_FLOW_ACTION(SET_TTL, sizeof(struct rte_flow_action_set_ttl)),\n \tMK_FLOW_ACTION(SET_MAC_SRC, sizeof(struct rte_flow_action_set_mac)),\n \tMK_FLOW_ACTION(SET_MAC_DST, sizeof(struct rte_flow_action_set_mac)),\n+\tMK_FLOW_ACTION(INC_TCP_SEQ, sizeof(struct rte_flow_integer_action)),\n+\tMK_FLOW_ACTION(DEC_TCP_SEQ, sizeof(struct rte_flow_integer_action)),\n+\tMK_FLOW_ACTION(INC_TCP_ACK, sizeof(struct rte_flow_integer_action)),\n+\tMK_FLOW_ACTION(DEC_TCP_ACK, sizeof(struct rte_flow_integer_action)),\n };\n \n static int\ndiff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h\nindex c0fe879..e03ca58 100644\n--- a/lib/librte_ethdev/rte_flow.h\n+++ b/lib/librte_ethdev/rte_flow.h\n@@ -1651,6 +1651,46 @@ enum rte_flow_action_type {\n \t * See struct rte_flow_action_set_mac.\n \t */\n \tRTE_FLOW_ACTION_TYPE_SET_MAC_DST,\n+\n+\t/**\n+\t * Increase sequence number in the outermost TCP header.\n+\t *\n+\t * Using this action on non-matching traffic will result in\n+\t * undefined behavior.\n+\t *\n+\t * See struct rte_flow_integer_action.\n+\t */\n+\tRTE_FLOW_ACTION_TYPE_INC_TCP_SEQ,\n+\n+\t/**\n+\t * Decrease sequence number in the outermost TCP header.\n+\t *\n+\t * Using this action on non-matching traffic will result in\n+\t * undefined behavior.\n+\t *\n+\t * See struct rte_flow_integer_action.\n+\t */\n+\tRTE_FLOW_ACTION_TYPE_DEC_TCP_SEQ,\n+\n+\t/**\n+\t * Increase acknowledgment number in the outermost TCP header.\n+\t *\n+\t * Using this action on non-matching traffic will result in\n+\t * undefined behavior.\n+\t *\n+\t * See struct rte_flow_integer_action.\n+\t */\n+\tRTE_FLOW_ACTION_TYPE_INC_TCP_ACK,\n+\n+\t/**\n+\t * Decrease acknowledgment number in the outermost TCP header.\n+\t *\n+\t * Using this action on non-matching traffic will result in\n+\t * undefined behavior.\n+\t *\n+\t * See struct rte_flow_integer_action.\n+\t */\n+\tRTE_FLOW_ACTION_TYPE_DEC_TCP_ACK,\n };\n \n /**\n@@ -2122,6 +2162,27 @@ struct rte_flow_action_set_mac {\n \tuint8_t mac_addr[ETHER_ADDR_LEN];\n };\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this structure may change without prior notice\n+ *\n+ * General struct, for use by actions that require a single integer value.\n+ */\n+struct rte_flow_integer_action {\n+\tunion rte_flow_integer {\n+\t\trte_be32_t\tbe32;\n+\t\trte_le32_t\tle32;\n+\t\tuint32_t\tu32;\n+\t\tint32_t\t\ti32;\n+\t\trte_be16_t\tbe16;\n+\t\trte_le16_t\tle16;\n+\t\tuint16_t\tu16;\n+\t\tint16_t\t\ti16;\n+\t\tuint8_t\t\tu8;\n+\t\tint8_t\t\ti8;\n+\t} rte_flow_int;\n+};\n+\n /*\n  * Definition of a single action.\n  *\n",
    "prefixes": [
        "v5",
        "1/3"
    ]
}