get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1561817,
    "url": "http://patchwork.ozlabs.org/api/patches/1561817/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20211130213116.39241-1-mkp@redhat.com/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20211130213116.39241-1-mkp@redhat.com>",
    "list_archive_url": null,
    "date": "2021-11-30T21:31:16",
    "name": "[ovs-dev,v1] dpdk: Use --in-memory by default.",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "922a5c5ae989e308ad287a39e6e3e6ef27f65eb5",
    "submitter": {
        "id": 82705,
        "url": "http://patchwork.ozlabs.org/api/people/82705/",
        "name": "Mike Pattrick",
        "email": "mkp@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20211130213116.39241-1-mkp@redhat.com/mbox/",
    "series": [
        {
            "id": 274512,
            "url": "http://patchwork.ozlabs.org/api/series/274512/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=274512",
            "date": "2021-11-30T21:31:16",
            "name": "[ovs-dev,v1] dpdk: Use --in-memory by default.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/274512/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1561817/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/1561817/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "bilbo.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=Y9kEPMkc;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.138; helo=smtp1.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
            "smtp4.osuosl.org (amavisd-new);\n dkim=pass (1024-bit key) header.d=redhat.com",
            "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mkp@redhat.com"
        ],
        "Received": [
            "from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby bilbo.ozlabs.org (Postfix) with ESMTPS id 4J3b5S0YxDz9tkS\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  1 Dec 2021 08:31:55 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 0F9D482542;\n\tTue, 30 Nov 2021 21:31:54 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n\tby localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id EMtUFQVMzU0o; Tue, 30 Nov 2021 21:31:53 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp1.osuosl.org (Postfix) with ESMTPS id 21A34831A0;\n\tTue, 30 Nov 2021 21:31:52 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id D8CDEC001C;\n\tTue, 30 Nov 2021 21:31:51 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists.linuxfoundation.org (Postfix) with ESMTP id A351FC000A\n for <dev@openvswitch.org>; Tue, 30 Nov 2021 21:31:50 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 8550741C73\n for <dev@openvswitch.org>; Tue, 30 Nov 2021 21:31:50 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id qfOpWDLZhXHp for <dev@openvswitch.org>;\n Tue, 30 Nov 2021 21:31:48 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by smtp4.osuosl.org (Postfix) with ESMTPS id BE3A941C68\n for <dev@openvswitch.org>; Tue, 30 Nov 2021 21:31:48 +0000 (UTC)",
            "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-424-dSbzdHRNPYOnvs5Jd4pkXA-1; Tue, 30 Nov 2021 16:31:45 -0500",
            "from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com\n [10.5.11.12])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 74408801B0E\n for <dev@openvswitch.org>; Tue, 30 Nov 2021 21:31:44 +0000 (UTC)",
            "from mpattric.remote.csb (unknown [10.22.19.105])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 8790C60C13;\n Tue, 30 Nov 2021 21:31:25 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1638307907;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=mn/KivvtK1/4FKQM+lxbmQWSqI0lsFASeik5zlSpjgA=;\n b=Y9kEPMkcxFW7SLQalurJMAKAE4WZtpGSw4amDaziHI0ICONUxDRjOgixIt69+v6ZXYkqvR\n MgaNxoRey6gGyKiAs48Nc2sScsGGkBriwOxKkIuQLXoMVoFLNWlqU5Seja4nFYJTTTpEjG\n LgBzfROT8FKCD5UBcVrZ5JZAtb7IF1A=",
        "X-MC-Unique": "dSbzdHRNPYOnvs5Jd4pkXA-1",
        "From": "Mike Pattrick <mkp@redhat.com>",
        "To": "dev@openvswitch.org",
        "Date": "Tue, 30 Nov 2021 16:31:16 -0500",
        "Message-Id": "<20211130213116.39241-1-mkp@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.12",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Subject": "[ovs-dev] [PATCH v1] dpdk: Use --in-memory by default.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "If anonymous memory mapping is supported by the kernel, it's better\nto run OVS entirely in memory rather than creating shared data\nstructures. OVS doesn't work in multi-process mode, so there is no need\nto litter a filesystem and experience random crashes due to old memory\nchunks stored in re-opened files.\n\nWhen OVS is not running in memory and crashes, it never reaches the\nclean up scripts that delete the new files it has created, resulting in\n\"dirty\" memory. OVS will partially overwrite this memory on the next\nstart-up, but will fail to run again because its filesystem is full of\nold memory.\n\nHere is an example of these crashes:\n  https://inbox.dpdk.org/dev/20200910162407.12669-1-david.marchand@redhat.com/\n\nReported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1949849\nSigned-off-by: Rosemarie O'Riorden <roriorde@redhat.com>\nSigned-off-by: Mike Pattrick <mkp@redhat.com>\n---\n NEWS         | 1 +\n acinclude.m4 | 6 ++++++\n lib/dpdk.c   | 7 +++++++\n 3 files changed, 14 insertions(+)",
    "diff": "diff --git a/NEWS b/NEWS\nindex dce1aeb2b..f3015c664 100644\n--- a/NEWS\n+++ b/NEWS\n@@ -10,6 +10,7 @@ Post-v2.16.0\n        limiting behavior.\n      * Add hardware offload support for matching IPv4/IPv6 frag types\n        (experimental).\n+     * EAL argument --in-memory is applied by default if supported.\n    - Python:\n      * For SSL support, the use of the pyOpenSSL library has been replaced\n        with the native 'ssl' module.\ndiff --git a/acinclude.m4 b/acinclude.m4\nindex 8ab690f47..700a0ce15 100644\n--- a/acinclude.m4\n+++ b/acinclude.m4\n@@ -472,6 +472,12 @@ AC_DEFUN([OVS_CHECK_DPDK], [\n       ], [[#include <rte_config.h>]])\n     ], [], [[#include <rte_config.h>]])\n \n+    AC_CHECK_DECL([MAP_HUGE_SHIFT], [\n+      AC_DEFINE([DPDK_IN_MEMORY_SUPPORTED], [1], [If MAP_HUGE_SHIFT is\n+                 defined, anonomous memory mapping is supported by the\n+                 kernel, and --in-memory can be used.])\n+    ], [], [[#include <sys/mman.h>]])\n+\n     # DPDK uses dlopen to load plugins.\n     OVS_FIND_DEPENDENCY([dlopen], [dl], [libdl])\n \ndiff --git a/lib/dpdk.c b/lib/dpdk.c\nindex b2ef31cd2..6cdd69bd2 100644\n--- a/lib/dpdk.c\n+++ b/lib/dpdk.c\n@@ -405,6 +405,13 @@ dpdk_init__(const struct smap *ovs_other_config)\n     svec_add(&args, ovs_get_program_name());\n     construct_dpdk_args(ovs_other_config, &args);\n \n+#ifdef DPDK_IN_MEMORY_SUPPORTED\n+    if (!args_contains(&args, \"--in-memory\") &&\n+            !args_contains(&args, \"--legacy-mem\")) {\n+        svec_add(&args, \"--in-memory\");\n+    }\n+#endif\n+\n     if (args_contains(&args, \"-c\") || args_contains(&args, \"-l\")) {\n         auto_determine = false;\n     }\n",
    "prefixes": [
        "ovs-dev",
        "v1"
    ]
}