get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 40879,
    "url": "https://patches.dpdk.org/api/patches/40879/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180608165920.12228-2-stephen@networkplumber.org/",
    "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": "<20180608165920.12228-2-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180608165920.12228-2-stephen@networkplumber.org",
    "date": "2018-06-08T16:59:16",
    "name": "[dpdk-dev,v10,1/5] eal: add rte_uuid support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "987e07adce27567a6e2f7bc62568ffa105887785",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180608165920.12228-2-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 59,
            "url": "https://patches.dpdk.org/api/series/59/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=59",
            "date": "2018-06-08T16:59:15",
            "name": "Hyper-V/Azure netvsc PMD and bus support",
            "version": 10,
            "mbox": "https://patches.dpdk.org/series/59/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/40879/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/40879/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 E37BE69D4;\n\tFri,  8 Jun 2018 18:59:29 +0200 (CEST)",
            "from mail-pg0-f66.google.com (mail-pg0-f66.google.com\n\t[74.125.83.66]) by dpdk.org (Postfix) with ESMTP id BA4275B32\n\tfor <dev@dpdk.org>; Fri,  8 Jun 2018 18:59:26 +0200 (CEST)",
            "by mail-pg0-f66.google.com with SMTP id m5-v6so6666065pgd.3\n\tfor <dev@dpdk.org>; Fri, 08 Jun 2018 09:59:26 -0700 (PDT)",
            "from xeon-e3.lan (204-195-35-107.wavecable.com. [204.195.35.107])\n\tby smtp.gmail.com with ESMTPSA id\n\tk9-v6sm21921750pgs.49.2018.06.08.09.59.23\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Jun 2018 09:59:24 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=7IcLS53eG0Ptx6n4ptSne661gIJKn7yuIrs8rV1hfxU=;\n\tb=Yleq43MDsxzaY1Z9sRIdDKuUhd6aK22Y+MKMIfkT1lbcP0FiqXh4wElMisCbrLuepF\n\tA8o2T0fXa1DgjNkVvJbWfxxhbdsGLSrGHpWEkJSqQTa99mCPWc2rMdGEIWdsgQwZEIpf\n\tcL+7w72t9Kl2tvKu7QkDb9+AlKnNYwGIAegqELBZIURDQHakSjI2Mg179DAsw1OhMlzk\n\t7q7VZiNYdZ2x4Jg3tqJBgCD9si3Ic8JkGfAnPsyN8yWR61ahKPFujVt7IrfvT0R+rtbb\n\t5ZQTpoA/19eZq/9Uelq0X3CqaGHtP8nlamWbbqOYBrtCTOmpRePttSjQ0YmRnckxr5rE\n\tIHFg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=7IcLS53eG0Ptx6n4ptSne661gIJKn7yuIrs8rV1hfxU=;\n\tb=lFPjjAVHMKMapr5+dm+/ImdUQyR587dPRG2vg4dy1+ZQI9uEFzx2y6UVUrWzVtqx2H\n\tYJrgybCaTuSnrUWUfXd/GC/G6IWiIH6ufwRkceeEc1ma+HvTCi7ERIziPV/m9JmbNdy7\n\tfUeBHo7S2oRI6N1UbgNkebupcPBZOKFFb0r6lvrv5I9b1sLuG9vyQefxJxMhyUDE+wp1\n\txxEkvGR0RHub0ijaHH7zdEU0ACxC8vb6xelRmYUSNdIGgRhbqANyn7hh48aubmKqXDzb\n\tbJoaKkNCdYSQ1ljW+bzbJfwSCtQyuX6Lbv/LrNIP/I3nP3o55yan6TQjqwYuiQL/HGyi\n\ttsow==",
        "X-Gm-Message-State": "APt69E2hsfIAEbI2fJKPOnJ+R9HbkzgK+NuRgUghXm+kfarJTncWCTvn\n\t+1OqSZtfamCATz0oKuteMiOG7sutagU=",
        "X-Google-Smtp-Source": "ADUXVKKWvNZLBWm56LPX0X7minhe8Pt9yz6sdgrUhSTp0FFOq574nu+0TpIuL+6+LuH9jsDwfHXv4g==",
        "X-Received": "by 2002:a65:5106:: with SMTP id\n\tf6-v6mr5886390pgq.122.1528477165510; \n\tFri, 08 Jun 2018 09:59:25 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n\tStephen Hemminger <sthemmin@microsoft.com>",
        "Date": "Fri,  8 Jun 2018 09:59:16 -0700",
        "Message-Id": "<20180608165920.12228-2-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180608165920.12228-1-stephen@networkplumber.org>",
        "References": "<20180608165920.12228-1-stephen@networkplumber.org>",
        "Subject": "[dpdk-dev] [PATCH v10 1/5] eal: add rte_uuid support",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Since uuid functions may not be available everywhere, implement\nuuid functions in DPDK. These are based off the BSD licensed\nlibuuid in util-link.\n\nSigned-off-by: Stephen Hemminger <sthemmin@microsoft.com>\n---\n lib/librte_eal/bsdapp/eal/Makefile       |   1 +\n lib/librte_eal/common/Makefile           |   2 +-\n lib/librte_eal/common/eal_common_uuid.c  | 193 +++++++++++++++++++++++\n lib/librte_eal/common/include/rte_uuid.h | 129 +++++++++++++++\n lib/librte_eal/common/meson.build        |   2 +\n lib/librte_eal/linuxapp/eal/Makefile     |   1 +\n lib/librte_eal/rte_eal_version.map       |   9 ++\n 7 files changed, 336 insertions(+), 1 deletion(-)\n create mode 100644 lib/librte_eal/common/eal_common_uuid.c\n create mode 100644 lib/librte_eal/common/include/rte_uuid.h",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/Makefile b/lib/librte_eal/bsdapp/eal/Makefile\nindex 3fd33f1e4318..13eafca61243 100644\n--- a/lib/librte_eal/bsdapp/eal/Makefile\n+++ b/lib/librte_eal/bsdapp/eal/Makefile\n@@ -58,6 +58,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_common_options.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_common_thread.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_common_proc.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_common_fbarray.c\n+SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_common_uuid.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += rte_malloc.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += malloc_elem.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += malloc_heap.c\ndiff --git a/lib/librte_eal/common/Makefile b/lib/librte_eal/common/Makefile\nindex 48f870f24bef..68a680bcb934 100644\n--- a/lib/librte_eal/common/Makefile\n+++ b/lib/librte_eal/common/Makefile\n@@ -16,7 +16,7 @@ INC += rte_pci_dev_feature_defs.h rte_pci_dev_features.h\n INC += rte_malloc.h rte_keepalive.h rte_time.h\n INC += rte_service.h rte_service_component.h\n INC += rte_bitmap.h rte_vfio.h rte_hypervisor.h rte_test.h\n-INC += rte_reciprocal.h rte_fbarray.h\n+INC += rte_reciprocal.h rte_fbarray.h rte_uuid.h\n \n GENERIC_INC := rte_atomic.h rte_byteorder.h rte_cycles.h rte_prefetch.h\n GENERIC_INC += rte_spinlock.h rte_memcpy.h rte_cpuflags.h rte_rwlock.h\ndiff --git a/lib/librte_eal/common/eal_common_uuid.c b/lib/librte_eal/common/eal_common_uuid.c\nnew file mode 100644\nindex 000000000000..1b93c5b37ea1\n--- /dev/null\n+++ b/lib/librte_eal/common/eal_common_uuid.c\n@@ -0,0 +1,193 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright (C) 1996, 1997 Theodore Ts'o.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions\n+ * are met:\n+ * 1. Redistributions of source code must retain the above copyright\n+ *    notice, and the entire permission notice in its entirety,\n+ *    including the disclaimer of warranties.\n+ * 2. Redistributions in binary form must reproduce the above copyright\n+ *    notice, this list of conditions and the following disclaimer in the\n+ *    documentation and/or other materials provided with the distribution.\n+ * 3. The name of the author may not be used to endorse or promote\n+ *    products derived from this software without specific prior\n+ *    written permission.\n+ *\n+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED\n+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF\n+ * WHICH ARE HEREBY DISCLAIMED.\t IN NO EVENT SHALL THE AUTHOR BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n+ * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n+ * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH\n+ * DAMAGE.\n+ */\n+\n+#include <stdio.h>\n+#include <string.h>\n+#include <stdint.h>\n+#include <stdlib.h>\n+#include <ctype.h>\n+\n+#include <rte_uuid.h>\n+\n+/* UUID packed form */\n+struct uuid {\n+\tuint32_t\ttime_low;\n+\tuint16_t\ttime_mid;\n+\tuint16_t\ttime_hi_and_version;\n+\tuint16_t\tclock_seq;\n+\tuint8_t\t\tnode[6];\n+};\n+\n+static void uuid_pack(const struct uuid *uu, rte_uuid_t ptr)\n+{\n+\tuint32_t tmp;\n+\tuint8_t\t*out = ptr;\n+\n+\ttmp = uu->time_low;\n+\tout[3] = (uint8_t) tmp;\n+\ttmp >>= 8;\n+\tout[2] = (uint8_t) tmp;\n+\ttmp >>= 8;\n+\tout[1] = (uint8_t) tmp;\n+\ttmp >>= 8;\n+\tout[0] = (uint8_t) tmp;\n+\n+\ttmp = uu->time_mid;\n+\tout[5] = (uint8_t) tmp;\n+\ttmp >>= 8;\n+\tout[4] = (uint8_t) tmp;\n+\n+\ttmp = uu->time_hi_and_version;\n+\tout[7] = (uint8_t) tmp;\n+\ttmp >>= 8;\n+\tout[6] = (uint8_t) tmp;\n+\n+\ttmp = uu->clock_seq;\n+\tout[9] = (uint8_t) tmp;\n+\ttmp >>= 8;\n+\tout[8] = (uint8_t) tmp;\n+\n+\tmemcpy(out+10, uu->node, 6);\n+}\n+\n+static void uuid_unpack(const rte_uuid_t in, struct uuid *uu)\n+{\n+\tconst uint8_t *ptr = in;\n+\tuint32_t tmp;\n+\n+\ttmp = *ptr++;\n+\ttmp = (tmp << 8) | *ptr++;\n+\ttmp = (tmp << 8) | *ptr++;\n+\ttmp = (tmp << 8) | *ptr++;\n+\tuu->time_low = tmp;\n+\n+\ttmp = *ptr++;\n+\ttmp = (tmp << 8) | *ptr++;\n+\tuu->time_mid = tmp;\n+\n+\ttmp = *ptr++;\n+\ttmp = (tmp << 8) | *ptr++;\n+\tuu->time_hi_and_version = tmp;\n+\n+\ttmp = *ptr++;\n+\ttmp = (tmp << 8) | *ptr++;\n+\tuu->clock_seq = tmp;\n+\n+\tmemcpy(uu->node, ptr, 6);\n+}\n+\n+bool rte_uuid_is_null(const rte_uuid_t uu)\n+{\n+\tconst uint8_t *cp = uu;\n+\tint i;\n+\n+\tfor (i = 0; i < 16; i++)\n+\t\tif (*cp++)\n+\t\t\treturn false;\n+\treturn true;\n+}\n+\n+/*\n+ * rte_uuid_compare() - compare two UUIDs.\n+ */\n+int rte_uuid_compare(const rte_uuid_t uu1, const rte_uuid_t uu2)\n+{\n+\tstruct uuid\tuuid1, uuid2;\n+\n+\tuuid_unpack(uu1, &uuid1);\n+\tuuid_unpack(uu2, &uuid2);\n+\n+#define UUCMP(u1, u2) \\\n+\tdo { if (u1 != u2) return (u1 < u2) ? -1 : 1; } while (0)\n+\n+\tUUCMP(uuid1.time_low, uuid2.time_low);\n+\tUUCMP(uuid1.time_mid, uuid2.time_mid);\n+\tUUCMP(uuid1.time_hi_and_version, uuid2.time_hi_and_version);\n+\tUUCMP(uuid1.clock_seq, uuid2.clock_seq);\n+#undef UUCMP\n+\n+\treturn memcmp(uuid1.node, uuid2.node, 6);\n+}\n+\n+int rte_uuid_parse(const char *in, rte_uuid_t uu)\n+{\n+\tstruct uuid\tuuid;\n+\tint\t\ti;\n+\tconst char\t*cp;\n+\tchar\t\tbuf[3];\n+\n+\tif (strlen(in) != 36)\n+\t\treturn -1;\n+\n+\tfor (i = 0, cp = in; i <= 36; i++, cp++) {\n+\t\tif ((i == 8) || (i == 13) || (i == 18) ||\n+\t\t    (i == 23)) {\n+\t\t\tif (*cp == '-')\n+\t\t\t\tcontinue;\n+\t\t\telse\n+\t\t\t\treturn -1;\n+\t\t}\n+\t\tif (i == 36)\n+\t\t\tif (*cp == 0)\n+\t\t\t\tcontinue;\n+\t\tif (!isxdigit(*cp))\n+\t\t\treturn -1;\n+\t}\n+\n+\tuuid.time_low = strtoul(in, NULL, 16);\n+\tuuid.time_mid = strtoul(in+9, NULL, 16);\n+\tuuid.time_hi_and_version = strtoul(in+14, NULL, 16);\n+\tuuid.clock_seq = strtoul(in+19, NULL, 16);\n+\tcp = in+24;\n+\tbuf[2] = 0;\n+\n+\tfor (i = 0; i < 6; i++) {\n+\t\tbuf[0] = *cp++;\n+\t\tbuf[1] = *cp++;\n+\t\tuuid.node[i] = strtoul(buf, NULL, 16);\n+\t}\n+\n+\tuuid_pack(&uuid, uu);\n+\treturn 0;\n+}\n+\n+void rte_uuid_unparse(const rte_uuid_t uu, char *out, size_t len)\n+{\n+\tstruct uuid uuid;\n+\n+\tuuid_unpack(uu, &uuid);\n+\n+\tsnprintf(out, len,\n+\t\t \"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x\",\n+\t\tuuid.time_low, uuid.time_mid, uuid.time_hi_and_version,\n+\t\tuuid.clock_seq >> 8, uuid.clock_seq & 0xFF,\n+\t\tuuid.node[0], uuid.node[1], uuid.node[2],\n+\t\tuuid.node[3], uuid.node[4], uuid.node[5]);\n+}\ndiff --git a/lib/librte_eal/common/include/rte_uuid.h b/lib/librte_eal/common/include/rte_uuid.h\nnew file mode 100644\nindex 000000000000..4528665ada22\n--- /dev/null\n+++ b/lib/librte_eal/common/include/rte_uuid.h\n@@ -0,0 +1,129 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright (C) 1996, 1997, 1998 Theodore Ts'o.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions\n+ * are met:\n+ * 1. Redistributions of source code must retain the above copyright\n+ *    notice, and the entire permission notice in its entirety,\n+ *    including the disclaimer of warranties.\n+ * 2. Redistributions in binary form must reproduce the above copyright\n+ *    notice, this list of conditions and the following disclaimer in the\n+ *    documentation and/or other materials provided with the distribution.\n+ * 3. The name of the author may not be used to endorse or promote\n+ *    products derived from this software without specific prior\n+ *    written permission.\n+ *\n+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED\n+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF\n+ * WHICH ARE HEREBY DISCLAIMED.\t IN NO EVENT SHALL THE AUTHOR BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n+ * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n+ * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH\n+ * DAMAGE.\n+ */\n+/**\n+ * @file\n+ *\n+ * UUID related functions originally from libuuid\n+ */\n+\n+#ifndef _RTE_UUID_H_\n+#define _RTE_UUID_H_\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#include <stdbool.h>\n+\n+/**\n+ * Struct describing a Universal Unique Identifer\n+ */\n+typedef unsigned char rte_uuid_t[16];\n+\n+/**\n+ * Helper for defining UUID values for id tables.\n+ */\n+#define RTE_UUID_INIT(a, b, c, d, e) {\t\t\\\n+\t((a) >> 24) & 0xff, ((a) >> 16) & 0xff,\t\\\n+\t((a) >> 8) & 0xff, (a) & 0xff,\t\t\\\n+\t((b) >> 8) & 0xff, (b) & 0xff,\t\t\\\n+\t((c) >> 8) & 0xff, (c) & 0xff,\t\t\\\n+\t((d) >> 8) & 0xff, (d) & 0xff,\t\t\\\n+\t((e) >> 40) & 0xff, ((e) >> 32) & 0xff, \\\n+\t((e) >> 24) & 0xff, ((e) >> 16) & 0xff, \\\n+\t((e) >> 8) & 0xff, (e) & 0xff\t\t\\\n+}\n+\n+/**\n+ * Test if UUID is all zeros.\n+ *\n+ * @param u\n+ *    The uuid to check.\n+ * @return\n+ *    true if uuid is NULL value, false otherwise\n+ */\n+bool rte_uuid_is_null(const rte_uuid_t uu);\n+\n+/**\n+ * Copy uuid.\n+ *\n+ * @param dst\n+ *    Destination uuid\n+ * @param b\n+ *    Source uuid\n+ */\n+static inline void rte_uuid_copy(rte_uuid_t dst, const rte_uuid_t src)\n+{\n+\tmemcpy(dst, src, sizeof(rte_uuid_t));\n+}\n+\n+/**\n+ * Compare two UUID's\n+ *\n+ * @param a\n+ *    A UUID to compare\n+ * @param b\n+ *    A UUID to compare\n+ * @return\n+ *   returns an integer less than, equal to, or greater than zero if UUID a is\n+ *   is less than, equal, or greater than UUID b.\n+ */\n+int\trte_uuid_compare(const rte_uuid_t a, const rte_uuid_t b);\n+\n+/**\n+ * Extract UUID from string\n+ *\n+ * @param in\n+ *    Pointer to string of characters to convert\n+ * @param string\n+ *    Destination UUID\n+ * @return\n+ *    Returns 0 on succes, and -1 if string is not a valid UUID.\n+ */\n+int\trte_uuid_parse(const char *in, rte_uuid_t uu);\n+\n+/**\n+ * Convert UUID to string\n+ *\n+ * @param u\n+ *    UUID to format\n+ * @param out\n+ *    Resulting string buffer\n+ * @param len\n+ *    Sizeof the available string buffer\n+ */\n+#define RTE_UUID_STRLEN\t(36 + 1)\n+void\trte_uuid_unparse(const rte_uuid_t uu, char *out, size_t len);\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* RTE_UUID_H */\ndiff --git a/lib/librte_eal/common/meson.build b/lib/librte_eal/common/meson.build\nindex 8a3dcfee091b..e184e4d7413d 100644\n--- a/lib/librte_eal/common/meson.build\n+++ b/lib/librte_eal/common/meson.build\n@@ -25,6 +25,7 @@ common_sources = files(\n \t'eal_common_tailqs.c',\n \t'eal_common_thread.c',\n \t'eal_common_timer.c',\n+\t'eal_common_uuid.c',\n \t'malloc_elem.c',\n \t'malloc_heap.c',\n \t'malloc_mp.c',\n@@ -75,6 +76,7 @@ common_headers = files(\n \t'include/rte_string_fns.h',\n \t'include/rte_tailq.h',\n \t'include/rte_time.h',\n+\t'include/rte_uuid.h',\n \t'include/rte_version.h')\n \n # special case install the generic headers, since they go in a subdir\ndiff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile\nindex 3719ec9d7d53..927a80fec907 100644\n--- a/lib/librte_eal/linuxapp/eal/Makefile\n+++ b/lib/librte_eal/linuxapp/eal/Makefile\n@@ -66,6 +66,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_common_options.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_common_thread.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_common_proc.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_common_fbarray.c\n+SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_common_uuid.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += rte_malloc.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += malloc_elem.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += malloc_heap.c\ndiff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map\nindex f7dd0e7bcab6..fd45fea3ce4f 100644\n--- a/lib/librte_eal/rte_eal_version.map\n+++ b/lib/librte_eal/rte_eal_version.map\n@@ -241,6 +241,15 @@ DPDK_18.05 {\n \n } DPDK_18.02;\n \n+DPDK_18.08 {\n+\tglobal:\n+\n+\trte_uuid_compare;\n+\trte_uuid_is_null;\n+\trte_uuid_parse;\n+\trte_uuid_unparse;\n+} DPDK_18.05;\n+\n EXPERIMENTAL {\n \tglobal:\n \n",
    "prefixes": [
        "dpdk-dev",
        "v10",
        "1/5"
    ]
}