get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 83858,
    "url": "http://patchwork.dpdk.org/api/patches/83858/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/0ae7d9b2c1ee0e12f8ae7faa2d154c03ae7e0c92.1604935662.git.anatoly.burakov@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<0ae7d9b2c1ee0e12f8ae7faa2d154c03ae7e0c92.1604935662.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/0ae7d9b2c1ee0e12f8ae7faa2d154c03ae7e0c92.1604935662.git.anatoly.burakov@intel.com",
    "date": "2020-11-09T15:27:47",
    "name": "[21.02] mem: don't warn about base addr if not requested",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d64447075f2dbc34b6b235e604fa6acbb1550562",
    "submitter": {
        "id": 4,
        "url": "http://patchwork.dpdk.org/api/people/4/?format=api",
        "name": "Burakov, Anatoly",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/0ae7d9b2c1ee0e12f8ae7faa2d154c03ae7e0c92.1604935662.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 13750,
            "url": "http://patchwork.dpdk.org/api/series/13750/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=13750",
            "date": "2020-11-09T15:27:47",
            "name": "[21.02] mem: don't warn about base addr if not requested",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/13750/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/83858/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/83858/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DD428A0527;\n\tMon,  9 Nov 2020 16:27:56 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8B2455F13;\n\tMon,  9 Nov 2020 16:27:55 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id CF3CE5B3C\n for <dev@dpdk.org>; Mon,  9 Nov 2020 16:27:52 +0100 (CET)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Nov 2020 07:27:42 -0800",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.52])\n by orsmga004.jf.intel.com with ESMTP; 09 Nov 2020 07:27:42 -0800"
        ],
        "IronPort-SDR": [
            "\n +DtpL0sbW8k/dXCTwisW6csqnvhDFrszedhSq3dMmTTmxOHOHrw5W6L6uF7c4RXsbVic7AWtzm\n Hdfy1ShSRCkg==",
            "\n ebWdapyZRnWOyeB7jY6+CBsGh95f5hGiY7HwChArTZzdq0paKXtobFbC3MSDHBDPG36IH7OYX9\n Ax/nraIzNT3w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9800\"; a=\"149100356\"",
            "E=Sophos;i=\"5.77,463,1596524400\"; d=\"scan'208\";a=\"149100356\"",
            "E=Sophos;i=\"5.77,463,1596524400\"; d=\"scan'208\";a=\"473014708\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Damjan Marion <damarion@cisco.com>",
        "Date": "Mon,  9 Nov 2020 15:27:47 +0000",
        "Message-Id": "\n <0ae7d9b2c1ee0e12f8ae7faa2d154c03ae7e0c92.1604935662.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH 21.02] mem: don't warn about base addr if not\n\trequested",
        "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 <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": "Any EAL memory allocation often goes through eal_get_virtual_area()\nfunction, which will print a warning whenever the resulting allocation\ndidn't match the specified address requirements. This is useful for\nwhen we have requested a specific base virtual address, to let the user\nknow that the mapping has deviated from that address.\n\nHowever, on Linux, we also have a default base address that's there to\nensure better chances of successful secondary process initialization,\nas well as higher likelihood of the virtual areas to fit inside the\nIOMMU address width. Because of this default base address, there are\nwarnings printed even when no base address was explicitly requested,\nwhich can be confusing to the user.\n\nDisable this warning unless base address was explicitly requested.\n\nCc: Damjan Marion <damarion@cisco.com>\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n\nNotes:\n    I'm not entirely sure the trade off between user confusion and helpful debug\n    information is worth it, but in my experience, i've stopped getting any emails\n    about secondary processes a long time ago and this isn't a widely used feature,\n    so i believe this is worth it.\n\n lib/librte_eal/common/eal_common_memory.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_memory.c b/lib/librte_eal/common/eal_common_memory.c\nindex 33917fa835..6e0d6a0b1c 100644\n--- a/lib/librte_eal/common/eal_common_memory.c\n+++ b/lib/librte_eal/common/eal_common_memory.c\n@@ -139,7 +139,8 @@ eal_get_virtual_area(void *requested_addr, size_t *size,\n \t\trte_errno = EADDRNOTAVAIL;\n \t\treturn NULL;\n \t} else if (requested_addr != NULL && addr_is_hint &&\n-\t\t\taligned_addr != requested_addr) {\n+\t\t\taligned_addr != requested_addr &&\n+\t\t\tinternal_conf->base_virtaddr != 0) {\n \t\tRTE_LOG(WARNING, EAL, \"WARNING! Base virtual address hint (%p != %p) not respected!\\n\",\n \t\t\trequested_addr, aligned_addr);\n \t\tRTE_LOG(WARNING, EAL, \"   This may cause issues with mapping memory into secondary processes\\n\");\n",
    "prefixes": [
        "21.02"
    ]
}