get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218111,
    "url": "http://patchwork.ozlabs.org/api/patches/2218111/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/1b626d8576fb86cf7911c224c19a469c3509a906.1774960196.git.tredaelli@redhat.com/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/?format=api",
        "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": "<1b626d8576fb86cf7911c224c19a469c3509a906.1774960196.git.tredaelli@redhat.com>",
    "list_archive_url": null,
    "date": "2026-03-31T12:34:22",
    "name": "[ovs-dev,v2,2/5] ovs-ctl: Detect systemd socket activation.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f997f4320000b30a0f71e21b48f0bed5cca1ff55",
    "submitter": {
        "id": 70949,
        "url": "http://patchwork.ozlabs.org/api/people/70949/?format=api",
        "name": "Timothy Redaelli",
        "email": "tredaelli@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/1b626d8576fb86cf7911c224c19a469c3509a906.1774960196.git.tredaelli@redhat.com/mbox/",
    "series": [
        {
            "id": 498188,
            "url": "http://patchwork.ozlabs.org/api/series/498188/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=498188",
            "date": "2026-03-31T12:34:22",
            "name": "Add systemd socket activation for ovsdb-server",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498188/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218111/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218111/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@legolas.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "legolas.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=eCh0EWgd;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org)",
            "smtp3.osuosl.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=eCh0EWgd",
            "smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "smtp2.osuosl.org;\n dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.a=rsa-sha256 header.s=mimecast20190719 header.b=eCh0EWgd"
        ],
        "Received": [
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flSHp4Nctz1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 23:35:02 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 4C17960F31;\n\tTue, 31 Mar 2026 12:35:00 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id qgC6W_S9DUdc; Tue, 31 Mar 2026 12:34:59 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp3.osuosl.org (Postfix) with ESMTPS id 49239606CC;\n\tTue, 31 Mar 2026 12:34:59 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 2BBBAC054A;\n\tTue, 31 Mar 2026 12:34:59 +0000 (UTC)",
            "from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 5A303C054A\n for <dev@openvswitch.org>; Tue, 31 Mar 2026 12:34:58 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id 4BEC640691\n for <dev@openvswitch.org>; Tue, 31 Mar 2026 12:34:58 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id XBucfGOWc_0q for <dev@openvswitch.org>;\n Tue, 31 Mar 2026 12:34:57 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by smtp2.osuosl.org (Postfix) with ESMTPS id 31241400A5\n for <dev@openvswitch.org>; Tue, 31 Mar 2026 12:34:57 +0000 (UTC)",
            "from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-562-44hk_QVHOY-kkUR6LNks5w-1; Tue,\n 31 Mar 2026 08:34:54 -0400",
            "from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id BE0D1180034F; Tue, 31 Mar 2026 12:34:53 +0000 (UTC)",
            "from aldebaran.char-dominant.ts.net (unknown [10.44.32.65])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 76F111955F2B; Tue, 31 Mar 2026 12:34:52 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections -\n client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 49239606CC",
            "OpenDKIM Filter v2.11.0 smtp2.osuosl.org 31241400A5"
        ],
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124;\n helo=us-smtp-delivery-124.mimecast.com; envelope-from=tredaelli@redhat.com;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp2.osuosl.org 31241400A5",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774960496;\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 in-reply-to:in-reply-to:references:references;\n bh=aN9TvBW/rbaarnbkEqB9EEaHkDAeICh4Lqp+nfJTQ1E=;\n b=eCh0EWgd9DDZN6DCpu/ANYg25AlAsBiedcjJq0yI/drePrmvLLpEOUsndAxPRQ/CmWbmf2\n D03LiB69iJV6lL5iHXsyC20zl3Uz9o/16RQgZxnqBb0nG+e76NfYu64Y0NtkB6MM7gbpqF\n KTGHNVXocgEWQOXOCEnKp4Dxy+R9CnI=",
        "X-MC-Unique": "44hk_QVHOY-kkUR6LNks5w-1",
        "X-Mimecast-MFC-AGG-ID": "44hk_QVHOY-kkUR6LNks5w_1774960493",
        "To": "dev@openvswitch.org",
        "Date": "Tue, 31 Mar 2026 14:34:22 +0200",
        "Message-ID": "\n <1b626d8576fb86cf7911c224c19a469c3509a906.1774960196.git.tredaelli@redhat.com>",
        "In-Reply-To": "<cover.1774960196.git.tredaelli@redhat.com>",
        "References": "<cover.1774960196.git.tredaelli@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.12",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "kpzhmxFkHnzDgxEH8PIODAwUZc7noBvWp8-uMpJJWvk_1774960493",
        "X-Mimecast-Originator": "redhat.com",
        "Subject": "[ovs-dev] [PATCH v2 2/5] ovs-ctl: Detect systemd socket activation.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.30",
        "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>",
        "From": "Timothy Redaelli via dev <ovs-dev@openvswitch.org>",
        "Reply-To": "Timothy Redaelli <tredaelli@redhat.com>",
        "Cc": "Lubomir Rintel <lkundrak@v3.sk>",
        "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": "When systemd socket-activates ovsdb-server, it sets LISTEN_FDNAMES\nto the socket unit name and passes the listening socket as fd 3.\nDetect this in do_start_ovsdb() and use --remote=pfd:3 instead of\n--remote=punix:$DB_SOCK.\n\nValidate LISTEN_PID against the current shell's PID, as required by\nsd_listen_fds(3), to ensure the variables were set for this process\nand not inherited from a parent.\n\nUnset LISTEN_FDS, LISTEN_FDNAMES, LISTEN_PID, and LISTEN_PIDFDID after\nconsuming them to prevent propagation to child processes.\n\nCo-authored-by: Lubomir Rintel <lkundrak@v3.sk>\nSigned-off-by: Lubomir Rintel <lkundrak@v3.sk>\nSigned-off-by: Timothy Redaelli <tredaelli@redhat.com>\n---\n utilities/ovs-ctl.in | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in\nindex c65c76812..8ebd720dc 100644\n--- a/utilities/ovs-ctl.in\n+++ b/utilities/ovs-ctl.in\n@@ -149,7 +149,13 @@ do_start_ovsdb () {\n             set \"$@\" --no-self-confinement\n         fi\n         set \"$@\" -vconsole:emer -vsyslog:err -vfile:info\n-        set \"$@\" --remote=punix:\"$DB_SOCK\"\n+        if test X\"$LISTEN_PID\" = X\"$$\" && \\\n+           test X\"$LISTEN_FDNAMES\" = X\"ovsdb-server.socket\"; then\n+            unset LISTEN_FDS LISTEN_FDNAMES LISTEN_PID LISTEN_PIDFDID\n+            set \"$@\" --remote=pfd:3\n+        else\n+            set \"$@\" --remote=punix:\"$DB_SOCK\"\n+        fi\n         set \"$@\" --private-key=db:Open_vSwitch,SSL,private_key\n         set \"$@\" --certificate=db:Open_vSwitch,SSL,certificate\n         set \"$@\" --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert\n",
    "prefixes": [
        "ovs-dev",
        "v2",
        "2/5"
    ]
}