Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/55239/?format=api
http://patches.dpdk.org/api/patches/55239/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190624134000.2456-2-marcinx.smoczynski@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": "<20190624134000.2456-2-marcinx.smoczynski@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190624134000.2456-2-marcinx.smoczynski@intel.com", "date": "2019-06-24T13:39:57", "name": "[v2,1/4] net: new ipv6 header extension parsing function", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "c2ac81717caff2d7f19f790222edc47fae3a1348", "submitter": { "id": 1293, "url": "http://patches.dpdk.org/api/people/1293/?format=api", "name": "Marcin Smoczynski", "email": "marcinx.smoczynski@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190624134000.2456-2-marcinx.smoczynski@intel.com/mbox/", "series": [ { "id": 5130, "url": "http://patches.dpdk.org/api/series/5130/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5130", "date": "2019-06-24T13:39:56", "name": "IPv6 with options support for IPsec transport", "version": 2, "mbox": "http://patches.dpdk.org/series/5130/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/55239/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/55239/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 0CB381BF05;\n\tMon, 24 Jun 2019 15:43:00 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 811951BF02\n\tfor <dev@dpdk.org>; Mon, 24 Jun 2019 15:42:57 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t24 Jun 2019 06:42:57 -0700", "from msmoczyx-mobl.ger.corp.intel.com ([10.103.104.100])\n\tby fmsmga001.fm.intel.com with ESMTP; 24 Jun 2019 06:42:54 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.63,412,1557212400\"; d=\"scan'208\";a=\"182637003\"", "From": "Marcin Smoczynski <marcinx.smoczynski@intel.com>", "To": "marko.kovacevic@intel.com, orika@mellanox.com, bruce.richardson@intel.com,\n\tpablo.de.lara.guarch@intel.com, radu.nicolau@intel.com,\n\takhil.goyal@nxp.com, tomasz.kantecki@intel.com,\n\tkonstantin.ananyev@intel.com, bernard.iremonger@intel.com,\n\tolivier.matz@6wind.com", "Cc": "dev@dpdk.org,\n\tMarcin Smoczynski <marcinx.smoczynski@intel.com>", "Date": "Mon, 24 Jun 2019 15:39:57 +0200", "Message-Id": "<20190624134000.2456-2-marcinx.smoczynski@intel.com>", "X-Mailer": "git-send-email 2.21.0.windows.1", "In-Reply-To": "<20190624134000.2456-1-marcinx.smoczynski@intel.com>", "References": "<20190508104717.13448-1-marcinx.smoczynski@intel.com>\n\t<20190624134000.2456-1-marcinx.smoczynski@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v2 1/4] net: new ipv6 header extension parsing\n\tfunction", "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": "Introduce new function for IPv6 header extension parsing able to\ndetermine extension length and next protocol number.\n\nThis function is helpful when implementing IPv6 header traversing.\n\nSigned-off-by: Marcin Smoczynski <marcinx.smoczynski@intel.com>\n---\n lib/librte_net/rte_ip.h | 49 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 49 insertions(+)", "diff": "diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h\nindex ae3b7e730..c2c67b85d 100644\n--- a/lib/librte_net/rte_ip.h\n+++ b/lib/librte_net/rte_ip.h\n@@ -428,6 +428,55 @@ rte_ipv6_udptcp_cksum(const struct rte_ipv6_hdr *ipv6_hdr, const void *l4_hdr)\n \treturn (uint16_t)cksum;\n }\n \n+/* IPv6 fragmentation header size */\n+#define RTE_IPV6_FRAG_HDR_SIZE 8\n+\n+/**\n+ * Parse next IPv6 header extension\n+ *\n+ * This function checks if proto number is an IPv6 extensions and parses its\n+ * data if so, providing information on next header and extension length.\n+ *\n+ * @param p\n+ * Pointer to an extension raw data.\n+ * @param proto\n+ * Protocol number extracted from the \"next header\" field from\n+ * the IPv6 header or the previous extension.\n+ * @param ext_len\n+ * Extension data length.\n+ * @return\n+ * next protocol number if proto is an IPv6 extension, -EINVAL otherwise\n+ */\n+static inline int __rte_experimental\n+rte_ipv6_get_next_ext(uint8_t *p, int proto, size_t *ext_len)\n+{\n+\tint next_proto;\n+\n+\tswitch (proto) {\n+\tcase IPPROTO_AH:\n+\t\tnext_proto = *p++;\n+\t\t*ext_len = (*p + 2) * sizeof(uint32_t);\n+\t\tbreak;\n+\n+\tcase IPPROTO_HOPOPTS:\n+\tcase IPPROTO_ROUTING:\n+\tcase IPPROTO_DSTOPTS:\n+\t\tnext_proto = *p++;\n+\t\t*ext_len = (*p + 1) * sizeof(uint64_t);\n+\t\tbreak;\n+\n+\tcase IPPROTO_FRAGMENT:\n+\t\tnext_proto = *p;\n+\t\t*ext_len = RTE_IPV6_FRAG_HDR_SIZE;\n+\t\tbreak;\n+\n+\tdefault:\n+\t\treturn -EINVAL;\n+\t}\n+\n+\treturn next_proto;\n+}\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "v2", "1/4" ] }{ "id": 55239, "url": "