get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230856,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230856/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/CCEBE763-3CEE-4FFA-9BAC-1A395D64ACF2@amazon.com/",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/22/?format=api",
        "name": "HostAP Development",
        "link_name": "hostap",
        "list_id": "hostap.lists.infradead.org",
        "list_email": "hostap@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<CCEBE763-3CEE-4FFA-9BAC-1A395D64ACF2@amazon.com>",
    "date": "2026-04-28T00:07:20",
    "name": "ctrl_iface: Allow configuring pending message queue depth",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0d2f33b2487e7fcc307eaf9c39f4ba86cc854683",
    "submitter": {
        "id": 93286,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/93286/?format=api",
        "name": "Shukla, Ashish",
        "email": "ashshukl@lab126.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/CCEBE763-3CEE-4FFA-9BAC-1A395D64ACF2@amazon.com/mbox/",
    "series": [
        {
            "id": 502217,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502217/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=502217",
            "date": "2026-04-28T00:07:20",
            "name": "ctrl_iface: Allow configuring pending message queue depth",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502217/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230856/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230856/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gpi4lDv5;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=lab126.com header.i=@lab126.com header.a=rsa-sha256\n header.s=amazoncorp2 header.b=lmyKcRU6;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\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 4g5l782Q7pz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 16:45:51 +1000 (AEST)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wIL91-00000004nKL-0nGd;\n\tThu, 30 Apr 2026 06:45:07 +0000",
            "from pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com\n ([35.83.148.184])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHVz2-00000000KAZ-0MxP\n\tfor hostap@lists.infradead.org;\n\tTue, 28 Apr 2026 00:07:25 +0000",
            "from ip-10-5-6-203.us-west-2.compute.internal (HELO\n smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.6.203])\n  by internal-pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com\n with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2026 00:07:21 +0000",
            "from EX19MTAUWC001.ant.amazon.com [205.251.233.105:19239]\n by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.41.10:2525]\n with esmtp (Farcaster)\n id a3dafa09-eaff-4b93-9949-36de01679300;\n Tue, 28 Apr 2026 00:07:21 +0000 (UTC)",
            "from EX19D013UWA003.ant.amazon.com (10.13.138.202) by\n EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37;\n Tue, 28 Apr 2026 00:07:20 +0000",
            "from EX19D013UWA002.ant.amazon.com (10.13.138.210) by\n EX19D013UWA003.ant.amazon.com (10.13.138.202) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37;\n Tue, 28 Apr 2026 00:07:20 +0000",
            "from EX19D013UWA002.ant.amazon.com ([fe80::c1a7:99f7:47a9:3e07]) by\n EX19D013UWA002.ant.amazon.com ([fe80::c1a7:99f7:47a9:3e07%6]) with mapi id\n 15.02.2562.037; Tue, 28 Apr 2026 00:07:20 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:Message-ID:Date\n\t:Subject:CC:To:From:Reply-To:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=Hij8htcy6gdXeBLQRIpR0ubquFsl5Y3a2DoZdUu7cp0=; b=gpi4lDv5j3o0ny\n\tpyFobDLFJQhT+R4XzXE7JIuy6e5os83I03qZOa/uHAbaWyRhLurO0OjJTFiqRmhgbXK01NO7/XHv/\n\tEUP+GgmbUj0H0GO5Je6oHA+WTTcK3g5XnwOAJzBhnU39mBscS8R/S7K20saNhrbYr2TQO7cXmg563\n\tlmaiQrv7UbAtJHcx4G03CtQsGedmRnKaphPt5DJyOYpktImkZWTQ9PYKD+Xt4BQbyE+vD3sQ6/4GB\n\tcwWlhrLoqO+d1UH1/G7ry/dmcv+wcVS8VtUAxTJS25e9qFewhYW1za6TndZOHYqVeRPEJYE58IZNE\n\tXzWe5+HjSBex/gUjdNpQ==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n  d=lab126.com; i=@lab126.com; q=dns/txt; s=amazoncorp2;\n  t=1777334844; x=1808870844;\n  h=from:to:cc:subject:date:message-id:content-id:\n   content-transfer-encoding:mime-version;\n  bh=tNZvugEXRqogWdQRueThRfXaF6dix4KX69Xj5RUepFA=;\n  b=lmyKcRU6X+4Nq/0sRkEwm0VhX1LeAIqyzQZbdtpb4A/BxVWHtBbAqx0L\n   ZnsBQATNcXEa8osFsfY/XkfwWZS3g3j3YCn+uufSTWtpoAz/8YAVT7eGC\n   XAYJy1wuPepiM6nQceh7QHOngSmrhNhyWs2VVoDPJvN6zkXTOD77ql30m\n   rO2gBxmsJaYb5dlAiTRzhBrUhiBabjvgTMyRoJYc9nFWkEAEJAUKd8rJz\n   bQo782/gLsPJgx7TqmK0BmDGxTt7aeI+x8BHRWTRBD/EJFJ/oln1VE1BK\n   CtSLrFm/hfoF3r9ZylsJheiY5rY9a1PQCr9RSKjO/rUhDChP6MDJnrKYF\n   g==;"
        ],
        "X-CSE-ConnectionGUID": "CNpUEH5bRLCvb7tDNIclfA==",
        "X-CSE-MsgGUID": "WX0k00/VToOXGQJdWvlGyA==",
        "X-IronPort-AV": "E=Sophos;i=\"6.23,203,1770595200\";\n   d=\"scan'208\";a=\"18111864\"",
        "X-Farcaster-Flow-ID": "a3dafa09-eaff-4b93-9949-36de01679300",
        "From": "\"Shukla, Ashish\" <ashshukl@lab126.com>",
        "To": "\"hostap@lists.infradead.org\" <hostap@lists.infradead.org>",
        "CC": "Jouni Malinen <j@w1.fi>",
        "Subject": "[PATCH] ctrl_iface: Allow configuring pending message queue depth",
        "Thread-Topic": "[PATCH] ctrl_iface: Allow configuring pending message queue\n depth",
        "Thread-Index": "AQHc1qL7BA2nm9Via0KgOLgHuAZNyA==",
        "Date": "Tue, 28 Apr 2026 00:07:20 +0000",
        "Message-ID": "<CCEBE763-3CEE-4FFA-9BAC-1A395D64ACF2@amazon.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "user-agent": "Microsoft-MacOutlook/16.107.26030937",
        "x-originating-ip": "[10.13.138.181]",
        "Content-ID": "<9015F038D006E744B5AD2DDB169C752C@amazon.com>",
        "MIME-Version": "1.0",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260427_170724_384741_BCCD7B4C ",
        "X-CRM114-Status": "GOOD (  14.76  )",
        "X-Spam-Score": "-2.1 (--)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  Hi, The ctrl_iface UNIX socket implementation queues event\n    messages when monitor clients cannot keep up,\n and starts dropping the oldest\n    message once 2000 have accumulated. This limit is hardcoded and cann [...]    \n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [35.83.148.184 listed in list.dnswl.org]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay\n lines",
        "X-Mailman-Approved-At": "Wed, 29 Apr 2026 23:45:04 -0700",
        "X-BeenThere": "hostap@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<hostap.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/hostap>,\n <mailto:hostap-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/hostap/>",
        "List-Post": "<mailto:hostap@lists.infradead.org>",
        "List-Help": "<mailto:hostap-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/hostap>,\n <mailto:hostap-request@lists.infradead.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Sender": "\"Hostap\" <hostap-bounces@lists.infradead.org>",
        "Errors-To": "hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Hi,\n\nThe ctrl_iface UNIX socket implementation queues event messages when\nmonitor clients cannot keep up, and starts dropping the oldest message\nonce 2000 have accumulated. This limit is hardcoded and cannot be\nchanged without modifying the source.\n\nOn embedded and mobile platforms (e.g., Android devices with STA + P2P\ninterfaces), each interface maintains its own queue in addition to the\nglobal queue. Each queued message allocates the struct header plus the\nfull event text inline, so the combined queues can consume several\nhundred KB before throttling takes effect.\n\nThis patch adds CONFIG_CTRL_IFACE_MSG_QUEUE_LIMIT as a build-time\noption to control the threshold. The default remains 2000 so there is\nno change in behavior for existing builds. Platforms with tighter\nmemory constraints can set a lower value in their .config (e.g., 100)\nto cap the queue earlier without any functional impact — messages that\nold are stale for monitor clients anyway.\n\nPlease review.\n\nThanks,\nAshish\n\n---\n\nctrl_iface: Allow configuring pending message queue depth\n\nThe hardcoded limit of 2000 pending ctrl_iface monitor messages may\nnot be appropriate for all platforms. Each queued message carries the\nfull event text, so the queue can consume several hundred KB per\ninterface before throttling begins.\n\nAdd CONFIG_CTRL_IFACE_MSG_QUEUE_LIMIT so that the threshold can be\ntuned at build time. The default remains 2000 for backward\ncompatibility. Embedded platforms can set a lower value to reduce peak\nmemory usage when monitor clients are slow to consume events.\n\nSigned-off-by: Ashish Shukla <ashshukl@amazon.com>\n---\n wpa_supplicant/ctrl_iface_unix.c | 6 +++++-\n wpa_supplicant/defconfig         | 5 +++++\n 2 files changed, 10 insertions(+), 1 deletion(-)\n\n--\n2.34.1",
    "diff": "diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c\r\n--- a/wpa_supplicant/ctrl_iface_unix.c\r\n+++ b/wpa_supplicant/ctrl_iface_unix.c\r\n@@ -30,6 +30,10 @@\r\n #include \"wpa_supplicant_i.h\"\r\n #include \"ctrl_iface.h\"\r\n \r\n+#ifndef CONFIG_CTRL_IFACE_MSG_QUEUE_LIMIT\r\n+#define CONFIG_CTRL_IFACE_MSG_QUEUE_LIMIT 2000\r\n+#endif\r\n+\r\n /* Per-interface ctrl_iface */\r\n \r\n struct ctrl_iface_priv {\r\n@@ -403,7 +407,7 @@ static void wpas_ctrl_msg_queue_limit(unsigned int throttle_count,\r\n {\r\n \tstruct ctrl_iface_msg *msg;\r\n \r\n-\tif (throttle_count < 2000)\r\n+\tif (throttle_count < CONFIG_CTRL_IFACE_MSG_QUEUE_LIMIT)\r\n \t\treturn;\r\n \r\n \tmsg = dl_list_first(queue, struct ctrl_iface_msg, list);\r\ndiff --git a/wpa_supplicant/defconfig b/wpa_supplicant/defconfig\r\n--- a/wpa_supplicant/defconfig\r\n+++ b/wpa_supplicant/defconfig\r\n@@ -620,3 +620,8 @@ CONFIG_MBO=y\r\n #CONFIG_DPP=y\r\n # DPP version 2 support\r\n #CONFIG_DPP2=y\r\n+\r\n+# Maximum number of pending ctrl_iface monitor messages to queue before\r\n+# dropping the oldest. Default is 2000. Embedded platforms with limited\r\n+# memory may benefit from a lower value (e.g., 100).\r\n+#CONFIG_CTRL_IFACE_MSG_QUEUE_LIMIT=2000\r\n",
    "prefixes": []
}