get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196227,
    "url": "http://patchwork.ozlabs.org/api/patches/2196227/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260213071042.3733239-6-lulu@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260213071042.3733239-6-lulu@redhat.com>",
    "list_archive_url": null,
    "date": "2026-02-13T07:08:05",
    "name": "[RFC,5/5] qapi: add in/out_netdev to filter-redirector",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d9331058c6a7a329785c34965db03f4c8bdb627e",
    "submitter": {
        "id": 78960,
        "url": "http://patchwork.ozlabs.org/api/people/78960/?format=api",
        "name": "Cindy Lu",
        "email": "lulu@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260213071042.3733239-6-lulu@redhat.com/mbox/",
    "series": [
        {
            "id": 492063,
            "url": "http://patchwork.ozlabs.org/api/series/492063/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492063",
            "date": "2026-02-13T07:08:05",
            "name": "net/filter-redirector: Add AF_PACKET support for vhost-net",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492063/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196227/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196227/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=dbRRzf+x;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fC3J464ZVz1xvQ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 18:11:48 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vqnL7-0002lL-OF; Fri, 13 Feb 2026 02:11:45 -0500",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <lulu@redhat.com>) id 1vqnL2-0002kG-5M\n for qemu-devel@nongnu.org; Fri, 13 Feb 2026 02:11:41 -0500",
            "from us-smtp-delivery-124.mimecast.com ([170.10.129.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <lulu@redhat.com>) id 1vqnKz-0005eb-Lx\n for qemu-devel@nongnu.org; Fri, 13 Feb 2026 02:11:38 -0500",
            "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-385-K0e8aoZdNBSe0yWh8aIrMA-1; Fri,\n 13 Feb 2026 02:11:33 -0500",
            "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\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 2DEDE18003F5; Fri, 13 Feb 2026 07:11:32 +0000 (UTC)",
            "from S2.redhat.com (unknown [10.72.112.33])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id E9BE318003F5; Fri, 13 Feb 2026 07:11:28 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1770966697;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=7XqBAWjNfsCkJWkYmrEfgAktWS9f9SYgLSbaxuuB2Dc=;\n b=dbRRzf+x1zp/vIEjndMvidrJop5eMuHwcExJ97wtJf/r1q2CGY2tq4hdfVIpbm0eqb+5vD\n pgi3GDtKs2HtxCfycGkg4Xwn/plFx6+GZotycMLTp+TFBlEb02bC4OmbYaLxRsmXs5HE3b\n G7r1WszHJ158lnO57Q/LsWE0ohSt4+k=",
        "X-MC-Unique": "K0e8aoZdNBSe0yWh8aIrMA-1",
        "X-Mimecast-MFC-AGG-ID": "K0e8aoZdNBSe0yWh8aIrMA_1770966692",
        "From": "Cindy Lu <lulu@redhat.com>",
        "To": "lulu@redhat.com, mst@redhat.com, jasowang@redhat.com, zhangckid@gmail.com,\n lizhijian@fujitsu.com, qemu-devel@nongnu.org",
        "Subject": "[RFC 5/5] qapi: add in/out_netdev to filter-redirector",
        "Date": "Fri, 13 Feb 2026 15:08:05 +0800",
        "Message-ID": "<20260213071042.3733239-6-lulu@redhat.com>",
        "In-Reply-To": "<20260213071042.3733239-1-lulu@redhat.com>",
        "References": "<20260213071042.3733239-1-lulu@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111",
        "Received-SPF": "pass client-ip=170.10.129.124; envelope-from=lulu@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Document the new in_netdev and out_netdev properties in the QAPI\nschema for FilterRedirectorProperties:\n\n- in_netdev: Name of an input netdev endpoint captured via AF_PACKET.\n  Allows capturing packets directly from a TAP interface, bypassing\n  the QEMU network stack.\n\n- out_netdev: Name of an output netdev endpoint injected via AF_PACKET.\n  Allows injecting packets directly to a TAP interface.\n\nThese properties are mutually exclusive with each other and with\nindev/outdev on the same direction. They enable filter-redirector\nto work with vhost-net backends for live migration packet mirroring.\n\nSigned-off-by: Cindy Lu <lulu@redhat.com>\n---\n qapi/qom.json | 19 +++++++++++++++++--\n 1 file changed, 17 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/qapi/qom.json b/qapi/qom.json\nindex b1fe55944c..a62a824403 100644\n--- a/qapi/qom.json\n+++ b/qapi/qom.json\n@@ -476,8 +476,15 @@\n #\n # Properties for filter-redirector objects.\n #\n-# At least one of @indev or @outdev must be present.  If both are\n-# present, they must not refer to the same character device backend.\n+# At least one of @indev, @outdev, @in_netdev, or @out_netdev must be\n+# present.\n+#\n+# If both @indev and @outdev are present, they must not refer to the\n+# same character device backend.\n+#\n+# @in_netdev and @out_netdev are Linux AF_PACKET based endpoints.\n+# They are mutually exclusive with each other, and also with\n+# @indev/@outdev on the same direction.\n #\n # @indev: the name of a character device backend from which packets\n #     are received and redirected to the filtered network device\n@@ -485,6 +492,12 @@\n # @outdev: the name of a character device backend to which all\n #     incoming packets are redirected\n #\n+# @in_netdev: the name of an input netdev endpoint captured via\n+#     AF_PACKET\n+#\n+# @out_netdev: the name of an output netdev endpoint injected via\n+#     AF_PACKET\n+#\n # @vnet_hdr_support: if true, vnet header support is enabled\n #     (default: false)\n #\n@@ -498,6 +511,8 @@\n   'base': 'NetfilterProperties',\n   'data': { '*indev': 'str',\n             '*outdev': 'str',\n+            '*in_netdev': 'str',\n+            '*out_netdev': 'str',\n             '*vnet_hdr_support': 'bool',\n             '*enable_when_stopped': 'bool' } }\n \n",
    "prefixes": [
        "RFC",
        "5/5"
    ]
}