Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/86724/?format=api
https://patches.dpdk.org/api/patches/86724/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210117102123.19045-2-shirik@nvidia.com/", "project": { "id": 1, "url": "https://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": "<20210117102123.19045-2-shirik@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210117102123.19045-2-shirik@nvidia.com", "date": "2021-01-17T10:21:15", "name": "[v7,1/9] lib/librte_ethdev: introduce GENEVE header TLV option item", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "521806d95bb1b7229434bde3bbabedd65a0ad3c5", "submitter": { "id": 1894, "url": "https://patches.dpdk.org/api/people/1894/?format=api", "name": "Shiri Kuzin", "email": "shirik@nvidia.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210117102123.19045-2-shirik@nvidia.com/mbox/", "series": [ { "id": 14793, "url": "https://patches.dpdk.org/api/series/14793/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14793", "date": "2021-01-17T10:21:14", "name": "ethdev: introduce GENEVE header TLV option item", "version": 7, "mbox": "https://patches.dpdk.org/series/14793/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/86724/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/86724/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 03B4BA09E4;\n\tSun, 17 Jan 2021 11:22:06 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 14FF6140DAC;\n\tSun, 17 Jan 2021 11:22:05 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 06C7F140D4C\n for <dev@dpdk.org>; Sun, 17 Jan 2021 11:22:02 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n shirik@nvidia.com) with SMTP; 17 Jan 2021 12:21:58 +0200", "from nvidia.com (c-141-140-1-007.mtl.labs.mlnx [10.141.140.7])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 10HALkmG003653;\n Sun, 17 Jan 2021 12:21:58 +0200" ], "From": "Shiri Kuzin <shirik@nvidia.com>", "To": "dev@dpdk.org", "Cc": "viacheslavo@nvidia.com, adrien.mazarguil@6wind.com, orika@nvidia.com,\n ferruh.yigit@intel.com, thomas@monjalon.net, rasland@nvidia.com,\n andrew.rybchenko@oktetlabs.ru", "Date": "Sun, 17 Jan 2021 12:21:15 +0200", "Message-Id": "<20210117102123.19045-2-shirik@nvidia.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20210117102123.19045-1-shirik@nvidia.com>", "References": "<20210114070743.2377-1-shirik@nvidia.com>\n <20210117102123.19045-1-shirik@nvidia.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v7 1/9] lib/librte_ethdev: introduce GENEVE\n header TLV option item", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The Geneve tunneling protocol is designed to allow the\nuser to specify some data context on the packet.\nThe GENEVE TLV (Type-Length-Variable) Option\nis the mean intended to present the user data.\n\nIn order to support GENEVE TLV Option the new rte_flow\nitem \"rte_flow_item_geneve_opt\" is added.\nThe new item contains the values and masks for the\nfollowing fields:\n-option class\n-option type\n-length\n-data\n\nNew item will be added to testpmd to support match and\nraw encap/decap actions.\n\nSigned-off-by: Shiri Kuzin <shirik@nvidia.com>\nAcked-by: Ori Kam <orika@nvidia.com>\n---\n lib/librte_ethdev/rte_flow.c | 1 +\n lib/librte_ethdev/rte_flow.h | 27 +++++++++++++++++++++++++++\n 2 files changed, 28 insertions(+)", "diff": "diff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c\nindex a06f64c271..2af7d965e1 100644\n--- a/lib/librte_ethdev/rte_flow.c\n+++ b/lib/librte_ethdev/rte_flow.c\n@@ -97,6 +97,7 @@ static const struct rte_flow_desc_data rte_flow_desc_item[] = {\n \tMK_FLOW_ITEM(L2TPV3OIP, sizeof(struct rte_flow_item_l2tpv3oip)),\n \tMK_FLOW_ITEM(PFCP, sizeof(struct rte_flow_item_pfcp)),\n \tMK_FLOW_ITEM(ECPRI, sizeof(struct rte_flow_item_ecpri)),\n+\tMK_FLOW_ITEM(GENEVE_OPT, sizeof(struct rte_flow_item_geneve_opt)),\n };\n \n /** Generate flow_action[] entry. */\ndiff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h\nindex 0977a78270..11a6494b8e 100644\n--- a/lib/librte_ethdev/rte_flow.h\n+++ b/lib/librte_ethdev/rte_flow.h\n@@ -543,6 +543,14 @@ enum rte_flow_item_type {\n \t * See struct rte_flow_item_ipv6_frag_ext.\n \t */\n \tRTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT,\n+\n+\t/**\n+\t * Matches Geneve Variable Length Option\n+\t *\n+\t * See struct rte_flow_item_geneve_opt\n+\t */\n+\tRTE_FLOW_ITEM_TYPE_GENEVE_OPT,\n+\n };\n \n /**\n@@ -1627,6 +1635,25 @@ static const struct rte_flow_item_ecpri rte_flow_item_ecpri_mask = {\n };\n #endif\n \n+/**\n+ * RTE_FLOW_ITEM_TYPE_GENEVE_OPT\n+ *\n+ * Matches a GENEVE Variable Length Option\n+ */\n+struct rte_flow_item_geneve_opt {\n+\trte_be16_t option_class;\n+\tuint8_t option_type;\n+\tuint8_t option_len;\n+\tuint32_t *data;\n+};\n+\n+/** Default mask for RTE_FLOW_ITEM_TYPE_GENEVE_OPT. */\n+#ifndef __cplusplus\n+static const struct rte_flow_item_geneve_opt\n+rte_flow_item_geneve_opt_mask = {\n+\t.option_type = 0xff,\n+};\n+#endif\n /**\n * Matching pattern item definition.\n *\n", "prefixes": [ "v7", "1/9" ] }{ "id": 86724, "url": "