get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 40556,
    "url": "http://patches.dpdk.org/api/patches/40556/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/abb7d1fd951fd34792fbb0a394cbcfaad1a4ad43.1527780522.git.anatoly.burakov@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": "<abb7d1fd951fd34792fbb0a394cbcfaad1a4ad43.1527780522.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/abb7d1fd951fd34792fbb0a394cbcfaad1a4ad43.1527780522.git.anatoly.burakov@intel.com",
    "date": "2018-05-31T15:35:42",
    "name": "[dpdk-dev] eal: move runtime config file to new location",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3b79f3a2311bcc36f610a3472d9a37d661e455c1",
    "submitter": {
        "id": 4,
        "url": "http://patches.dpdk.org/api/people/4/?format=api",
        "name": "Burakov, Anatoly",
        "email": "anatoly.burakov@intel.com"
    },
    "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/abb7d1fd951fd34792fbb0a394cbcfaad1a4ad43.1527780522.git.anatoly.burakov@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/40556/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/40556/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 02CF45F35;\n\tThu, 31 May 2018 17:35:48 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id C94455F2F\n\tfor <dev@dpdk.org>; Thu, 31 May 2018 17:35:46 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t31 May 2018 08:35:45 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga005.jf.intel.com with ESMTP; 31 May 2018 08:35:43 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tw4VFZhxa021271; Thu, 31 May 2018 16:35:43 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id w4VFZhvG024462;\n\tThu, 31 May 2018 16:35:43 +0100",
            "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id w4VFZgw2024456;\n\tThu, 31 May 2018 16:35:42 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.49,463,1520924400\"; d=\"scan'208\";a=\"228859875\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Neil Horman <nhorman@tuxdriver.com>,\n\tJohn McNamara <john.mcnamara@intel.com>,\n\tMarko Kovacevic <marko.kovacevic@intel.com>, thomas@monjalon.net,\n\tbruce.richardson@intel.com, harry.van.haaren@intel.com",
        "Date": "Thu, 31 May 2018 16:35:42 +0100",
        "Message-Id": "<abb7d1fd951fd34792fbb0a394cbcfaad1a4ad43.1527780522.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Subject": "[dpdk-dev] [PATCH] eal: move runtime config file to new location",
        "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": "As per deprecation notice [1], move DPDK runtime config to default\nDPDK runtime data location. Also, remove the deprecation notice.\n\n[1] http://dpdk.org/dev/patchwork/patch/40418/\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n doc/guides/rel_notes/deprecation.rst   | 10 ----------\n lib/librte_eal/common/eal_filesystem.h | 10 +++-------\n 2 files changed, 3 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst\nindex 1ce692eac..ff15baa3f 100644\n--- a/doc/guides/rel_notes/deprecation.rst\n+++ b/doc/guides/rel_notes/deprecation.rst\n@@ -8,16 +8,6 @@ API and ABI deprecation notices are to be posted here.\n Deprecation Notices\n -------------------\n \n-* eal: DPDK runtime configuration file (located at\n-  ``/var/run/.<prefix>_config``) will be moved. The new path will be as follows:\n-\n-  - if DPDK is running as root, path will be set to\n-    ``/var/run/dpdk/<prefix>/config``\n-  - if DPDK is not running as root and $XDG_RUNTIME_DIR is set, path will be set\n-    to ``$XDG_RUNTIME_DIR/dpdk/<prefix>/config``\n-  - if DPDK is not running as root and $XDG_RUNTIME_DIR is not set, path will be\n-    set to ``/tmp/dpdk/<prefix>/config``\n-\n * eal: both declaring and identifying devices will be streamlined in v18.08.\n   New functions will appear to query a specific port from buses, classes of\n   device and device drivers. Device declaration will be made coherent with the\ndiff --git a/lib/librte_eal/common/eal_filesystem.h b/lib/librte_eal/common/eal_filesystem.h\nindex 364f38d13..de05febf4 100644\n--- a/lib/librte_eal/common/eal_filesystem.h\n+++ b/lib/librte_eal/common/eal_filesystem.h\n@@ -12,7 +12,6 @@\n #define EAL_FILESYSTEM_H\n \n /** Path of rte config file. */\n-#define RUNTIME_CONFIG_FMT \"%s/.%s_config\"\n \n #include <stdint.h>\n #include <limits.h>\n@@ -30,17 +29,14 @@ eal_create_runtime_dir(void);\n const char *\n eal_get_runtime_dir(void);\n \n+#define RUNTIME_CONFIG_FNAME \"config\"\n static inline const char *\n eal_runtime_config_path(void)\n {\n \tstatic char buffer[PATH_MAX]; /* static so auto-zeroed */\n-\tconst char *directory = \"/var/run\";\n-\tconst char *home_dir = getenv(\"HOME\");\n \n-\tif (getuid() != 0 && home_dir != NULL)\n-\t\tdirectory = home_dir;\n-\tsnprintf(buffer, sizeof(buffer) - 1, RUNTIME_CONFIG_FMT, directory,\n-\t\t\tinternal_config.hugefile_prefix);\n+\tsnprintf(buffer, sizeof(buffer) - 1, \"%s/%s\", eal_get_runtime_dir(),\n+\t\t\tRUNTIME_CONFIG_FNAME);\n \treturn buffer;\n }\n \n",
    "prefixes": [
        "dpdk-dev"
    ]
}