Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47592/?format=api
http://patches.dpdk.org/api/patches/47592/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181031021758.66752-3-doucette@bu.edu/", "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": "<20181031021758.66752-3-doucette@bu.edu>", "list_archive_url": "https://inbox.dpdk.org/dev/20181031021758.66752-3-doucette@bu.edu", "date": "2018-10-31T02:17:57", "name": "[v5,2/3] net: add IPv6 extension header definitions", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "c0fd2dd6a4daf22e5ddb18b8fc1661f1cb24476d", "submitter": { "id": 1059, "url": "http://patches.dpdk.org/api/people/1059/?format=api", "name": "Cody Doucette", "email": "doucette@bu.edu" }, "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/20181031021758.66752-3-doucette@bu.edu/mbox/", "series": [ { "id": 2170, "url": "http://patches.dpdk.org/api/series/2170/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2170", "date": "2018-10-31T02:17:58", "name": "Extend rte_ipv6_frag_get_ipv6_fragment_header()", "version": 5, "mbox": "http://patches.dpdk.org/series/2170/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/47592/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/47592/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 8444B4F91;\n\tWed, 31 Oct 2018 03:18:47 +0100 (CET)", "from relay64.bu.edu (relay64.bu.edu [128.197.228.104])\n\tby dpdk.org (Postfix) with ESMTP id 3C4F691\n\tfor <dev@dpdk.org>; Wed, 31 Oct 2018 03:18:46 +0100 (CET)", "from BU-AUTH (localhost.localdomain [127.0.0.1]) (authenticated\n\tbits=0)\n\tby relay64.bu.edu (8.14.3/8.14.3) with ESMTP id w9V2I3mQ032189\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128\n\tverify=NO); Tue, 30 Oct 2018 22:18:14 -0400" ], "X-Envelope-From": "doucette@bu.edu", "X-BU-AUTH": "xia1.bu.edu [128.197.41.97]", "From": "Cody Doucette <doucette@bu.edu>", "To": "Olivier Matz <olivier.matz@6wind.com>", "Cc": "dev@dpdk.org, Cody Doucette <doucette@bu.edu>", "Date": "Wed, 31 Oct 2018 02:17:57 +0000", "Message-Id": "<20181031021758.66752-3-doucette@bu.edu>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20181031021758.66752-1-doucette@bu.edu>", "References": "<20181031021758.66752-1-doucette@bu.edu>", "Subject": "[dpdk-dev] [PATCH v5 2/3] net: add IPv6 extension header definitions", "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 a common IPv6 extension header and an inline function\nfor determining whether a next header field represents\nan IPv6 extension header.\n\nSigned-off-by: Cody Doucette <doucette@bu.edu>\n---\n lib/librte_net/rte_ip.h | 27 +++++++++++++++++++++++++++\n 1 file changed, 27 insertions(+)", "diff": "diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h\nindex f2a8904a2..43dbb15e4 100644\n--- a/lib/librte_net/rte_ip.h\n+++ b/lib/librte_net/rte_ip.h\n@@ -350,6 +350,14 @@ struct ipv6_hdr {\n #define IPV6_HDR_FL_MASK ((1u << IPV6_HDR_TC_SHIFT) - 1)\n #define IPV6_HDR_TC_MASK (0xf << IPV6_HDR_TC_SHIFT)\n \n+/**\n+ * IPv6 extension header\n+ */\n+struct ipv6_opt_hdr {\n+\tuint8_t nexthdr; /**< Next header. */\n+\tuint8_t hdrlen;\t /**< Length; presence & meaning varies by ext type. */\n+} __attribute__((packed));\n+\n /**\n * Process the pseudo-header checksum of an IPv6 header.\n *\n@@ -421,6 +429,25 @@ rte_ipv6_udptcp_cksum(const struct ipv6_hdr *ipv6_hdr, const void *l4_hdr)\n \treturn (uint16_t)cksum;\n }\n \n+/**\n+ * Check whether an IPv6 nexthdr value is for an IPv6 extension header.\n+ *\n+ * @param nexthdr\n+ * The protocol/next header field from an IPv6 (extension) header.\n+ * @return\n+ * Whether the nexthdr field is for an IPv6 extension header.\n+ */\n+static inline int\n+ipv6_ext_hdr(uint8_t nexthdr)\n+{\n+\treturn (nexthdr == IPPROTO_HOPOPTS) ||\n+\t\t(nexthdr == IPPROTO_ROUTING) ||\n+\t\t(nexthdr == IPPROTO_FRAGMENT) ||\n+\t\t(nexthdr == IPPROTO_AH) ||\n+\t\t(nexthdr == IPPROTO_NONE) ||\n+\t\t(nexthdr == IPPROTO_DSTOPTS);\n+}\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "v5", "2/3" ] }{ "id": 47592, "url": "