Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52584/?format=api
http://patches.dpdk.org/api/patches/52584/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/0235680ea84ba74d3ecebb62bf5af19559c5170e.1554894982.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": "<0235680ea84ba74d3ecebb62bf5af19559c5170e.1554894982.git.dekelp@mellanox.com>", "list_archive_url": "https://inbox.dpdk.org/dev/0235680ea84ba74d3ecebb62bf5af19559c5170e.1554894982.git.dekelp@mellanox.com", "date": "2019-04-10T11:26:38", "name": "[v3,1/3] ethdev: add actions to modify TCP header fields", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9c50df99a19c03e9a3c71d726ecf89d269c8725f", "submitter": { "id": 1082, "url": "http://patches.dpdk.org/api/people/1082/?format=api", "name": "Dekel Peled", "email": "dekelp@mellanox.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/0235680ea84ba74d3ecebb62bf5af19559c5170e.1554894982.git.dekelp@mellanox.com/mbox/", "series": [ { "id": 4237, "url": "http://patches.dpdk.org/api/series/4237/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4237", "date": "2019-04-10T11:26:37", "name": "add actions to modify header fields", "version": 3, "mbox": "http://patches.dpdk.org/series/4237/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/52584/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/52584/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 D8F7F6833;\n\tWed, 10 Apr 2019 13:28:44 +0200 (CEST)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n\tby dpdk.org (Postfix) with ESMTP id BD7265F32\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 13:28:38 +0200 (CEST)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tdekelp@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 10 Apr 2019 14:28:37 +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 x3ABSUlD011408;\n\tWed, 10 Apr 2019 14:28:36 +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": "Wed, 10 Apr 2019 14:26:38 +0300", "Message-Id": "<0235680ea84ba74d3ecebb62bf5af19559c5170e.1554894982.git.dekelp@mellanox.com>", "X-Mailer": "git-send-email 1.7.1", "In-Reply-To": "<cover.1554894982.git.dekelp@mellanox.com>", "References": "<1554218001-62012-1-git-send-email-dekelp@mellanox.com>\n\t<cover.1554894982.git.dekelp@mellanox.com>", "Subject": "[dpdk-dev] [PATCH v3 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 | 72 ++++++++++++++++++++++++++++++++++++++\n lib/librte_ethdev/rte_flow.c | 4 +++\n lib/librte_ethdev/rte_flow.h | 60 +++++++++++++++++++++++++++++++\n 3 files changed, 136 insertions(+)", "diff": "diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex 0203f4f..58cf6cc 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -2345,6 +2345,78 @@ 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+depending on PMD implementation.\n+\n+.. _table_rte_flow_action_inc_tcp_seq:\n+\n+.. table:: INC_TCP_SEQ\n+\n+ +-----------+------------------------------------------+\n+ | Field | Value |\n+ +===========+==========================================+\n+ | ``value`` | 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+depending on PMD implementation.\n+\n+.. _table_rte_flow_action_dec_tcp_seq:\n+\n+.. table:: DEC_TCP_SEQ\n+\n+ +-----------+------------------------------------------+\n+ | Field | Value |\n+ +===========+==========================================+\n+ | ``value`` | 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+depending on PMD implementation.\n+\n+.. _table_rte_flow_action_inc_tcp_ack:\n+\n+.. table:: INC_TCP_ACK\n+\n+ +-----------+------------------------------------------------+\n+ | Field | Value |\n+ +===========+================================================+\n+ | ``value`` | 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+depending on PMD implementation.\n+\n+.. _table_rte_flow_action_dec_tcp_ack:\n+\n+.. table:: DEC_TCP_ACK\n+\n+ +-----------+------------------------------------------------+\n+ | Field | Value |\n+ +===========+================================================+\n+ | ``value`` | 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..ed4e643 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_general_action)),\n+\tMK_FLOW_ACTION(DEC_TCP_SEQ, sizeof(struct rte_flow_general_action)),\n+\tMK_FLOW_ACTION(INC_TCP_ACK, sizeof(struct rte_flow_general_action)),\n+\tMK_FLOW_ACTION(DEC_TCP_ACK, sizeof(struct rte_flow_general_action)),\n };\n \n static int\ndiff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h\nindex c0fe879..3b0e262 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, depending on PMD implementation.\n+\t *\n+\t * See struct rte_flow_general_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, depending on PMD implementation.\n+\t *\n+\t * See struct rte_flow_general_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, depending on PMD implementation.\n+\t *\n+\t * See struct rte_flow_general_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, depending on PMD implementation.\n+\t *\n+\t * See struct rte_flow_general_action.\n+\t */\n+\tRTE_FLOW_ACTION_TYPE_DEC_TCP_ACK,\n };\n \n /**\n@@ -2123,6 +2163,26 @@ struct rte_flow_action_set_mac {\n };\n \n /*\n+ * @warning\n+ * @b EXPERIMENTAL: this union may change without prior notice\n+ *\n+ * General integer type, can be expanded as needed.\n+*/\n+union rte_flow_integer {\n+ rte_be32_t be32;\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_general_action {\n+\tunion rte_flow_integer integer;\n+};\n+\n+/*\n * Definition of a single action.\n *\n * A list of actions is terminated by a END action.\n", "prefixes": [ "v3", "1/3" ] }{ "id": 52584, "url": "