get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 89403,
    "url": "http://patches.dpdk.org/api/patches/89403/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210317151535.1412311-1-thomas@monjalon.net/",
    "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": "<20210317151535.1412311-1-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210317151535.1412311-1-thomas@monjalon.net",
    "date": "2021-03-17T15:15:35",
    "name": "eal: mark version parts API as experimental",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "69155e9a142ed26db2362a456b66e68d986a1ad2",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "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/20210317151535.1412311-1-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 15742,
            "url": "http://patches.dpdk.org/api/series/15742/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15742",
            "date": "2021-03-17T15:15:35",
            "name": "eal: mark version parts API as experimental",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/15742/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/89403/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/89403/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 EA142A00C2;\n\tWed, 17 Mar 2021 16:15:57 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6C8A24067E;\n\tWed, 17 Mar 2021 16:15:57 +0100 (CET)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 7E7454014D;\n Wed, 17 Mar 2021 16:15:56 +0100 (CET)",
            "from compute2.internal (compute2.nyi.internal [10.202.2.42])\n by mailout.nyi.internal (Postfix) with ESMTP id B69485C0329;\n Wed, 17 Mar 2021 11:15:55 -0400 (EDT)",
            "from mailfrontend2 ([10.202.2.163])\n by compute2.internal (MEProxy); Wed, 17 Mar 2021 11:15:55 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 9BDF91080064;\n Wed, 17 Mar 2021 11:15:53 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding; s=fm3; bh=pxxQtFbdxMNekmIhO6oDr/Vfum\n qoAB2smt7JOgTw+qU=; b=EWyKVdd7ylmkdYZtsGk3OgYwPhW1ZI5GW7p1MWUZZ8\n GAtXWdPJyabXZNHGEnY2IsAAXG/qRaWhSJYAPiyhqUdoIDA6jaLdjsLyT1RwVAiu\n p0oi+lnbHAu7dCpkxhj9EMrVr6WbpcIZLJ3hCwDCKjMRy2TnUPA4O9Hji6TMaB0S\n iTsr4XTrmJuGBuLSlzXYVTJfJbn+3o45/wPEb9qotfZXdFvtdjYasIllZD4t3RgU\n u6eY8RGKY+F3dZhH5GAfcp7OOC1UfrC1lBUAa1JZjYB3y0vsRNfSFZdjA1sYsCHZ\n nMcAZ+0AGgZaEo+zz5cX2yh0VyY6r0Gl+vw1BxxNa39Q==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy\n :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=pxxQtFbdxMNekmIhO\n 6oDr/VfumqoAB2smt7JOgTw+qU=; b=sMPXWvNQet/qMBNGHfIjkfP7i3ww28MzB\n NSS4bheOvN3oDyz8j2zgNi2EUcNbmNGf240HC4oj8IFvHkY4OUUsNDVU5SM3/A37\n /M7RgO84dSA93GLlQd+1TfeLawsZujD1hs2Cfs0hVXuCzCIDGVrcqEDIEd3jG1Oh\n zsD6bwgyIVDUbKDd8f+jvlqVzU63EHTk/crclE7t+eoJmWCI5ndxLBk2oOWLauQ9\n G8jWdczrp7uVt8K35a5u5Z0hE8Yz+YSLScRjIGhjCMlf23L+S/rwyczOsLlzM811\n ak18726Bne92txlS4/Qe2YPAiVloKrtjiOnzkwl5rAm3B2hZZXxpA=="
        ],
        "X-ME-Sender": "<xms:Kh1SYNjCkcoJYifpnWqUDxza__TDykWbn7kVIM93IYLtANlPP7adHQ>\n <xme:Kh1SYCAiNGygx7UxU2XHxSaZNUYonMsp3nZUj_7hs-n0haMpXoY_JSZdf_UScCNf0\n agc344aKO2dG1xbKA>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduledrudefgedgjeejucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgrshcu\n ofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuggftrf\n grthhtvghrnhepvdelvdduhedvudduveeuvdevheegudelgeeigfejheduhedttdegudff\n jeeihffgnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiii\n gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhn\n rdhnvght",
        "X-ME-Proxy": "<xmx:Kh1SYNGfuxWY17TiQIl5wMRVlhuvpc6_CH4CV3loLLNkuKcSWFI6Ag>\n <xmx:Kh1SYCQ-CKp50ZLq2_C2vvBRVD8jjAuxWBmIgL1VbWJp6Zi003BZRA>\n <xmx:Kh1SYKyRyor8mYIro5cUXD5-pHND_FlhYuwMa7wl9LNFK0pr-MFZBw>\n <xmx:Kx1SYO8TGX-NCtiKXzUBJ67gSSLMpVaIzVNpFzLj5TO_fMJhU_2PtA>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org, David Marchand <david.marchand@redhat.com>,\n Ray Kinsella <mdr@ashroe.eu>, Neil Horman <nhorman@tuxdriver.com>,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Date": "Wed, 17 Mar 2021 16:15:35 +0100",
        "Message-Id": "<20210317151535.1412311-1-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.30.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] eal: mark version parts API as experimental",
        "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": "Some functions were introduced in DPDK 21.05 to query the version parts\n(prefix, year, month, minor, suffix, release) at runtime.\nPer guidelines, these new public functions must be marked with\n__rte_experimental and ABI versioned as EXPERIMENTAL.\n\nFixes: 5b637a848195 (\"eal: fix querying DPDK version at runtime\")\nCc: stable@dpdk.org\n\nSuggested-by: David Marchand <david.marchand@redhat.com>\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n lib/librte_eal/include/rte_version.h |  7 +++++++\n lib/librte_eal/version.map           | 14 ++++++++------\n 2 files changed, 15 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/include/rte_version.h b/lib/librte_eal/include/rte_version.h\nindex 736c5703be..b06a62e7a2 100644\n--- a/lib/librte_eal/include/rte_version.h\n+++ b/lib/librte_eal/include/rte_version.h\n@@ -18,6 +18,7 @@ extern \"C\" {\n #include <string.h>\n #include <stdio.h>\n #include <rte_common.h>\n+#include <rte_compat.h>\n \n /**\n  * Macro to compute a version number usable for comparisons\n@@ -36,31 +37,37 @@ extern \"C\" {\n /**\n  * Function to return DPDK version prefix string\n  */\n+__rte_experimental\n const char *rte_version_prefix(void);\n \n /**\n  * Function to return DPDK version year\n  */\n+__rte_experimental\n unsigned int rte_version_year(void);\n \n /**\n  * Function to return DPDK version month\n  */\n+__rte_experimental\n unsigned int rte_version_month(void);\n \n /**\n  * Function to return DPDK minor version number\n  */\n+__rte_experimental\n unsigned int rte_version_minor(void);\n \n /**\n  * Function to return DPDK version suffix for any release candidates\n  */\n+__rte_experimental\n const char *rte_version_suffix(void);\n \n /**\n  * Function to return DPDK version release candidate value\n  */\n+__rte_experimental\n unsigned int rte_version_release(void);\n \n /**\ndiff --git a/lib/librte_eal/version.map b/lib/librte_eal/version.map\nindex 756c60ed1d..48a2b55d57 100644\n--- a/lib/librte_eal/version.map\n+++ b/lib/librte_eal/version.map\n@@ -200,12 +200,6 @@ DPDK_21 {\n \trte_uuid_parse;\n \trte_uuid_unparse;\n \trte_version;\n-\trte_version_minor;\n-\trte_version_month;\n-\trte_version_prefix;\n-\trte_version_release;\n-\trte_version_suffix;\n-\trte_version_year;\n \trte_vfio_clear_group;\n \trte_vfio_container_create;\n \trte_vfio_container_destroy;\n@@ -419,6 +413,14 @@ EXPERIMENTAL {\n \trte_thread_tls_key_delete;\n \trte_thread_tls_value_get;\n \trte_thread_tls_value_set;\n+\n+\t# added in 21.05\n+\trte_version_minor;\n+\trte_version_month;\n+\trte_version_prefix;\n+\trte_version_release;\n+\trte_version_suffix;\n+\trte_version_year;\n };\n \n INTERNAL {\n",
    "prefixes": []
}