get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28820,
    "url": "https://patches.dpdk.org/api/patches/28820/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/d50965340fd71c6556da620243b70d6d6263282d.1505726803.git.gaetan.rivet@6wind.com/",
    "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": "<d50965340fd71c6556da620243b70d6d6263282d.1505726803.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/d50965340fd71c6556da620243b70d6d6263282d.1505726803.git.gaetan.rivet@6wind.com",
    "date": "2017-09-18T09:31:35",
    "name": "[dpdk-dev,v2,01/14] eal: expose rte_eal_using_phys_addrs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2d7a276be4212e780f279212133344f7fff91325",
    "submitter": {
        "id": 269,
        "url": "https://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/d50965340fd71c6556da620243b70d6d6263282d.1505726803.git.gaetan.rivet@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28820/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/28820/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 5C7431AEE8;\n\tMon, 18 Sep 2017 11:32:07 +0200 (CEST)",
            "from mail-wm0-f51.google.com (mail-wm0-f51.google.com\n\t[74.125.82.51]) by dpdk.org (Postfix) with ESMTP id EADB57CE2\n\tfor <dev@dpdk.org>; Mon, 18 Sep 2017 11:32:04 +0200 (CEST)",
            "by mail-wm0-f51.google.com with SMTP id e71so848778wmg.4\n\tfor <dev@dpdk.org>; Mon, 18 Sep 2017 02:32:04 -0700 (PDT)",
            "from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tf89sm6416859wmh.18.2017.09.18.02.32.03\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 18 Sep 2017 02:32:03 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:in-reply-to:references;\n\tbh=YdEPUpELB3tOMFA7aZfbMkW0wJByXUgt02N9aNk9O98=;\n\tb=J2wTCrALqNnuOwp27sY44tlJG/xwpmoWnSUi41xPiPljBEabr/CwIl0VAiOvJh/6xt\n\t1nT2dWX0DRvWSqV0wOQQhTeLJ4imdFO5vU3ozZSv04PVBHxYFJ4r8WGkKMBsPCf0x0yB\n\tdNJuDAZxlgVn8VrIX7SlhoiBTBPlj27RfrWfXBGkY4R8N+vT9qg5pnq9FBTOj1/ooP8w\n\tc12gCYHgV1dLM6Z0fZ6cOXFzaECjA8+dK5va7clZF7ixHMuypNswOTi3FRF01431jxVy\n\t4SRkqdZ10Y9xmXb56h4cNTUP4rb/dOf/TSgtMyhQCUKNc0l8TYFFvkW7VjVMsC2dPd18\n\tWsyg==",
        "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:in-reply-to:references;\n\tbh=YdEPUpELB3tOMFA7aZfbMkW0wJByXUgt02N9aNk9O98=;\n\tb=dDn6G+jfDBAQIDtAKWxJkXHNH4lmTOza0uc9CqdyDz0+7TCeyzQBN4cMqYLpiXqFKC\n\tOulaU7TFAbjPgbwgVf7qLy1GgNzIKqpUy4KQP2jXDxuZeD+cvMYQSTtVnvlSUJxXO+tB\n\t807pzB5cBcHMwHHbDb6dkpxv+X7zf9x9dQSw9sTdCogfP1q62JMSFLCsYH1Gid6tnz5F\n\t8GyEY2SY9EFn/HJ7gORYHxla1JxzOrOmkj+m3Mek9R5LzngP4ETtEkfb3jSR15shOUkn\n\tsR6R22IcqfquDmGCt72Nxh9JE91QzCQw6E4rG8WZKrj4VJVg4NooljygWOKmA6sAQlD7\n\taYWw==",
        "X-Gm-Message-State": "AHPjjUh1Jujpv2Oepw2uhh2VnJ/9l4fsdp/hsWBBEL7VG28M+lsKg8PC\n\tDvPVZAtuh6z64iPqbYI=",
        "X-Google-Smtp-Source": "AOwi7QB3Y/k9NxCi1z/kGeoRhyyNTPyzsdePn9ii087KpcBXMSabD1Ouhs3rFCR9NUJwdlvp63sVJQ==",
        "X-Received": "by 10.28.109.78 with SMTP id i75mr8573384wmc.117.1505727124046; \n\tMon, 18 Sep 2017 02:32:04 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Mon, 18 Sep 2017 11:31:35 +0200",
        "Message-Id": "<d50965340fd71c6556da620243b70d6d6263282d.1505726803.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": [
            "<cover.1505726803.git.gaetan.rivet@6wind.com>",
            "<cover.1505726803.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1503651392.git.gaetan.rivet@6wind.com>\n\t<cover.1505726803.git.gaetan.rivet@6wind.com>",
            "<cover.1505726803.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 01/14] eal: expose rte_eal_using_phys_addrs",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "This function was previously private to the EAL layer.\nOther subsystems requires it, such as the PCI bus.\n\nIn order not to force other components to include stdbool, which is\nincompatible with several NIC drivers, the return type has\nbeen changed from bool to int.\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_eal/bsdapp/eal/eal_memory.c          |  6 ++++++\n lib/librte_eal/bsdapp/eal/rte_eal_version.map   |  1 +\n lib/librte_eal/common/eal_private.h             | 11 -----------\n lib/librte_eal/common/include/rte_memory.h      | 11 +++++++++++\n lib/librte_eal/linuxapp/eal/eal_memory.c        |  2 +-\n lib/librte_eal/linuxapp/eal/rte_eal_version.map |  1 +\n 6 files changed, 20 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal_memory.c b/lib/librte_eal/bsdapp/eal/eal_memory.c\nindex 3614da8..65c96b0 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_memory.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_memory.c\n@@ -192,3 +192,9 @@ rte_eal_hugepage_attach(void)\n \t\tclose(fd_hugepage);\n \treturn -1;\n }\n+\n+int\n+rte_eal_using_phys_addrs(void)\n+{\n+\treturn 0;\n+}\ndiff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map\nindex 47a09ea..cff7d18 100644\n--- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map\n+++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map\n@@ -200,6 +200,7 @@ DPDK_17.08 {\n \trte_bus_find;\n \trte_bus_find_by_device;\n \trte_bus_find_by_name;\n+\trte_eal_using_phys_addrs;\n \trte_log_get_level;\n \n } DPDK_17.05;\ndiff --git a/lib/librte_eal/common/eal_private.h b/lib/librte_eal/common/eal_private.h\nindex 597d82e..10a7078 100644\n--- a/lib/librte_eal/common/eal_private.h\n+++ b/lib/librte_eal/common/eal_private.h\n@@ -333,17 +333,6 @@ int rte_eal_hugepage_init(void);\n int rte_eal_hugepage_attach(void);\n \n /**\n- * Returns true if the system is able to obtain\n- * physical addresses. Return false if using DMA\n- * addresses through an IOMMU.\n- *\n- * Drivers based on uio will not load unless physical\n- * addresses are obtainable. It is only possible to get\n- * physical addresses when running as a privileged user.\n- */\n-bool rte_eal_using_phys_addrs(void);\n-\n-/**\n  * Find a bus capable of identifying a device.\n  *\n  * @param str\ndiff --git a/lib/librte_eal/common/include/rte_memory.h b/lib/librte_eal/common/include/rte_memory.h\nindex 4aa5d1f..5568931 100644\n--- a/lib/librte_eal/common/include/rte_memory.h\n+++ b/lib/librte_eal/common/include/rte_memory.h\n@@ -195,6 +195,17 @@ unsigned rte_memory_get_nchannel(void);\n  */\n unsigned rte_memory_get_nrank(void);\n \n+/**\n+ * Drivers based on uio will not load unless physical\n+ * addresses are obtainable. It is only possible to get\n+ * physical addresses when running as a privileged user.\n+ *\n+ * @return\n+ *   1 if the system is able to obtain physical addresses.\n+ *   0 if using DMA addresses through an IOMMU.\n+ */\n+int rte_eal_using_phys_addrs(void);\n+\n #ifdef RTE_LIBRTE_XEN_DOM0\n \n /**< Internal use only - should DOM0 memory mapping be used */\ndiff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c\nindex 5279128..af8719b 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_memory.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_memory.c\n@@ -1542,7 +1542,7 @@ rte_eal_hugepage_attach(void)\n \treturn -1;\n }\n \n-bool\n+int\n rte_eal_using_phys_addrs(void)\n {\n \treturn phys_addrs_available;\ndiff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map\nindex 8c08b8d..f866b70 100644\n--- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map\n+++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map\n@@ -205,6 +205,7 @@ DPDK_17.08 {\n \trte_bus_find;\n \trte_bus_find_by_device;\n \trte_bus_find_by_name;\n+\trte_eal_using_phys_addrs;\n \trte_log_get_level;\n \n } DPDK_17.05;\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "01/14"
    ]
}