get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35100,
    "url": "http://patches.dpdk.org/api/patches/35100/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180209174017.14644-1-tomaszx.kulasek@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": "<20180209174017.14644-1-tomaszx.kulasek@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180209174017.14644-1-tomaszx.kulasek@intel.com",
    "date": "2018-02-09T17:40:17",
    "name": "[dpdk-dev] vhost: reduce size of coredump file",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "17a19b23f9fbc341e24c6bc200eefe7c55ec35cb",
    "submitter": {
        "id": 155,
        "url": "http://patches.dpdk.org/api/people/155/?format=api",
        "name": "Tomasz Kulasek",
        "email": "tomaszx.kulasek@intel.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180209174017.14644-1-tomaszx.kulasek@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35100/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35100/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 1AE6C1B85B;\n\tFri,  9 Feb 2018 18:40:52 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id C247C1B829\n\tfor <dev@dpdk.org>; Fri,  9 Feb 2018 18:40:50 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t09 Feb 2018 09:40:49 -0800",
            "from unknown (HELO Sent) ([10.103.103.74])\n\tby orsmga002.jf.intel.com with SMTP; 09 Feb 2018 09:40:47 -0800",
            "by Sent (sSMTP sendmail emulation); Fri, 09 Feb 2018 18:40:25 +0100"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.46,483,1511856000\"; d=\"scan'208\";a=\"33466042\"",
        "From": "Tomasz Kulasek <tomaszx.kulasek@intel.com>",
        "To": "yliu@fridaylinux.org",
        "Cc": "dev@dpdk.org,\n\tSebastian Basierski <sebastianx.basierski@intel.com>",
        "Date": "Fri,  9 Feb 2018 18:40:17 +0100",
        "Message-Id": "<20180209174017.14644-1-tomaszx.kulasek@intel.com>",
        "X-Mailer": "git-send-email 2.12.3",
        "Subject": "[dpdk-dev] [PATCH] vhost: reduce size of coredump file",
        "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": "If application coredumps with vhost-user devices connected to it,\nthe generated coredump file size is huge.\n\nTo limit its size, this patch adds call to madvise() with MADV_DONTDUMP\non memory regions mapped from the VM.\n\nSigned-off-by: Sebastian Basierski <sebastianx.basierski@intel.com>\nSigned-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>\n---\n lib/librte_vhost/vhost_user.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c\nindex 65ee33919..fc1f1a948 100644\n--- a/lib/librte_vhost/vhost_user.c\n+++ b/lib/librte_vhost/vhost_user.c\n@@ -723,6 +723,11 @@ vhost_user_set_mem_table(struct virtio_net *dev, struct VhostUserMsg *pmsg)\n \t\t\tgoto err_mmap;\n \t\t}\n \n+\t\tif (madvise(mmap_addr, mmap_size, MADV_DONTDUMP) != 0) {\n+\t\t\tRTE_LOG(INFO, VHOST_CONFIG,\n+\t\t\t\t\"MADV_DONTDUMP advice setting failed.\\n\");\n+\t\t}\n+\n \t\treg->mmap_addr = mmap_addr;\n \t\treg->mmap_size = mmap_size;\n \t\treg->host_user_addr = (uint64_t)(uintptr_t)mmap_addr +\n",
    "prefixes": [
        "dpdk-dev"
    ]
}