get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220582,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220582/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/af3d81da716943128dc98b5aefd44d1aa52c1094.1775571957.git.metze@samba.org/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/12/?format=api",
        "name": "Linux CIFS Client",
        "link_name": "linux-cifs-client",
        "list_id": "linux-cifs.vger.kernel.org",
        "list_email": "linux-cifs@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<af3d81da716943128dc98b5aefd44d1aa52c1094.1775571957.git.metze@samba.org>",
    "date": "2026-04-07T14:46:31",
    "name": "[5/8] net: define IPPROTO_SMBDIRECT and SOL_SMBDIRECT constants",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2cc326c152bf4435a74869ce6911a7b17bc19aab",
    "submitter": {
        "id": 8149,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/8149/?format=api",
        "name": "Stefan Metzmacher",
        "email": "metze@samba.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/af3d81da716943128dc98b5aefd44d1aa52c1094.1775571957.git.metze@samba.org/mbox/",
    "series": [
        {
            "id": 498990,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498990/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=498990",
            "date": "2026-04-07T14:46:28",
            "name": "smb: add kernel internal IPPROTO_SMBDIRECT",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498990/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220582/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220582/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-10694-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-cifs@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (3072-bit key;\n secure) header.d=samba.org header.i=@samba.org header.a=rsa-sha256\n header.s=42 header.b=uEzIW+wb;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10694-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (3072-bit key) header.d=samba.org header.i=@samba.org\n header.b=\"uEzIW+wb\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=144.76.82.148",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=samba.org",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=samba.org"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqq475NcQz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 00:55:03 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 47EAD309B1AC\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  7 Apr 2026 14:47:51 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 68D33312825;\n\tTue,  7 Apr 2026 14:47:44 +0000 (UTC)",
            "from hr2.samba.org (hr2.samba.org [144.76.82.148])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id EDE403126C4;\n\tTue,  7 Apr 2026 14:47:37 +0000 (UTC)",
            "from [127.0.0.2] (localhost [127.0.0.1])\n\tby hr2.samba.org with esmtpsa\n (TLS1.3:ECDHE_SECP256R1__ECDSA_SECP256R1_SHA256__CHACHA20_POLY1305:256)\n\t(Exim)\n\tid 1wA7iH-00000007WPz-3q2b;\n\tTue, 07 Apr 2026 14:47:34 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775573264; cv=none;\n b=Cz4pk71yOJTqoTuxgwyUhFDrkswrfXhm/fTyRZ4IeBGJF8IVRoOcbgElo1gGyKSZgi14JreAoPL94S2qzSEIbj7GyPCB5qE4rr55qxZVu7XCkFeEurm4/NAa7I9vTDxf5SlZW2V9Ziqn/S7kjVLxztkFRIe7p18ZABXf7/jV51c=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775573264; c=relaxed/simple;\n\tbh=LEkhz9RNk6tC5NYe6F1u2WXpjMlteUXxksP1aHu2o4o=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=rMAQ/2vqISESc4uuI6kFc7CsSTGNh9PaZvKKzPnb+j1zEKMIC2PYtAPCyBhU/fldaa53uyqFG5sjW8gNvOurMHlUrwSCyWaD+H9C1DuU2rXiEOdqIz3KfqsPwMQJOnQzAJXB+vm1/MlmnBUy5+RcyyRWHmOb0+3b78ezWUHWIJI=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=samba.org;\n spf=pass smtp.mailfrom=samba.org;\n dkim=pass (3072-bit key) header.d=samba.org header.i=@samba.org\n header.b=uEzIW+wb; arc=none smtp.client-ip=144.76.82.148",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org;\n\ts=42; h=Message-ID:Date:Cc:To:From;\n\tbh=9bs+E70xzu5LpaFuUzNo/5yPnyZdKVdBaQo2fRz47yM=; b=uEzIW+wbkTBxfbOC2ciOptE7dO\n\t+g3IMOMNJ5GDsssalXpuq63yKaVv1S8YOH3AJ9yegOkYm3UmPXECFc9EaKYxyky+JAao7vsChSJx+\n\txVgrMxW9vcT/t7NLxE8ZyWDd3Ox40W+N+q0y+CZkg7QUlC7cf/1TbxaSfyyaZc+zOsE/XTijN8o/N\n\ttiichYGtpziwETQu6ouyEXtgSLNvX61j4qpC/LL0EODtzUG3Q15jBrJJY/WCNvgcMFKwQUe9VJM3T\n\tQzlbk9vJyONZbww7JRyJqp4YffIewObgcNWgI83buD6dyzUgH9xgV5+8TgndYbDtpX+qJueezmzyY\n\toIoRmwvolOV9nKcEBYlhev4X1G6oIeDgDV+jCueSe4x54zQPwGQ7rPjAdUcNfiJ7DOHgak45ZQMty\n\tb+CRxcHiHopXsYaPlurKPNZuT3bAJaPJZwPwnYQs+Isy6h10Lpom6HEz+efVxPAMPh4DTnuAIhLxo\n\t8cwKxDDHQk/lRNGcviNpF9fH;",
        "From": "Stefan Metzmacher <metze@samba.org>",
        "To": "linux-cifs@vger.kernel.org,\n\tsamba-technical@lists.samba.org",
        "Cc": "metze@samba.org,\n\tSteve French <smfrench@gmail.com>,\n\tTom Talpey <tom@talpey.com>,\n\tLong Li <longli@microsoft.com>,\n\tNamjae Jeon <linkinjeon@kernel.org>,\n\tDavid Howells <dhowells@redhat.com>,\n\tHenrique Carvalho <henrique.carvalho@suse.com>,\n\t\"David S . Miller\" <davem@davemloft.net>,\n\tEric Dumazet <edumazet@google.com>,\n\tJakub Kicinski <kuba@kernel.org>,\n\tPaolo Abeni <pabeni@redhat.com>,\n\tSimon Horman <horms@kernel.org>,\n\tKuniyuki Iwashima <kuniyu@google.com>,\n\tWillem de Bruijn <willemb@google.com>,\n\tnetdev@vger.kernel.org,\n\tXin Long <lucien.xin@gmail.com>,\n\tquic@lists.linux.dev,\n\tlinux-rdma@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org",
        "Subject": "[PATCH 5/8] net: define IPPROTO_SMBDIRECT and SOL_SMBDIRECT constants",
        "Date": "Tue,  7 Apr 2026 16:46:31 +0200",
        "Message-ID": "\n <af3d81da716943128dc98b5aefd44d1aa52c1094.1775571957.git.metze@samba.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<cover.1775571957.git.metze@samba.org>",
        "References": "<cover.1775571957.git.metze@samba.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-cifs@vger.kernel.org",
        "List-Id": "<linux-cifs.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "This patch adds IPPROTO_SMBDIRECT and SOL_SMBDIRECT constants to the\nnetworking subsystem. These definitions are essential for applications\nto set socket options and protocol identifiers related to the SMBDIRECT\nprotocol, defined in [MS-SMBD] by Microsoft. It is used as wrapper\naround RDMA in order to provide a transport for SMB3, but Microsoft also\nuses it as transport for other protocols.\n\nSMBDIRECT works over Infiniband, RoCE and iWarp.\nRoCEv2 is based on IP/UDP and iWarp is based on IP/TCP,\nso these use IP addresses natively.\nInfiniband and RoCEv1 require IPOIB in order to be used for\nSMBDIRECT.\n\nSo instead of adding a PF_SMBDIRECT, which would only use AF_INET[6],\nwe use IPPROTO_SMBDIRECT instead, this uses a number not\nallocated from IANA, as it would not appear in an IP header.\n\nThis is similar to IPPROTO_SMC, IPPROTO_MPTCP and IPPROTO_QUIC,\nwhich are linux specific values for the socket() syscall.\n\n  socket(AF_INET, SOCK_STREAM, IPPROTO_SMBDIRECT);\n  socket(AF_INET6, SOCK_STREAM, IPPROTO_SMBDIRECT);\n\nThis will allow the existing smbdirect code used by\ncifs.ko and ksmbd.ko to be moved behind the socket layer,\nso that there's less special handling. Only sock_sendmsg()\nsock_recvmsg() are used, so that the main stream handling\nis done all the same for tcp, smbdirect and later also quic.\n\nThe special RDMA read/write handling will be via direct\nfunction calls as they are currently done for the in kernel\nconsumers.\n\nAs a start __sock_create(kern=0)/sk->sk_kern_sock == 0 will\nstill cause a -EPROTONOSUPPORT. So only in kernel consumers\nwill be supported for now.\n\nOnce I have developed a stable interface for the RDMA read/write\nhandling using sendmsg/recvmsg with MSG_OOB and msg_control,\nit will also exposed to userspace in order to allow Samba to\nuse it.\n\nAs the numbers of IPPROTO_QUIC (261) and SOL_QUIC (288) [1]\nare already used in various (released) userspace applications,\nI used 289 for SOL_SMBDIRECT instead of 288.\n\n[1]\nhttps://lore.kernel.org/quic/0cb58f6fcf35ac988660e42704dae9960744a0a7.1763994509.git.lucien.xin@gmail.com/T/#u\n\nCc: Steve French <smfrench@gmail.com>\nCc: Tom Talpey <tom@talpey.com>\nCc: Long Li <longli@microsoft.com>\nCc: Namjae Jeon <linkinjeon@kernel.org>\nCc: David Howells <dhowells@redhat.com>\nCc: Henrique Carvalho <henrique.carvalho@suse.com>\nCc: linux-cifs@vger.kernel.org\nCc: samba-technical@lists.samba.org\nCc: David S. Miller <davem@davemloft.net>\nCc: Eric Dumazet <edumazet@google.com>\nCc: Jakub Kicinski <kuba@kernel.org>\nCc: Paolo Abeni <pabeni@redhat.com>\nCc: Simon Horman <horms@kernel.org>\nCc: Kuniyuki Iwashima <kuniyu@google.com>\nCc: Willem de Bruijn <willemb@google.com>\nCc: netdev@vger.kernel.org\nCc: Xin Long <lucien.xin@gmail.com>\nCc: quic@lists.linux.dev\nCc: linux-rdma@vger.kernel.org\nCc: linux-kernel@vger.kernel.org\nSigned-off-by: Stefan Metzmacher <metze@samba.org>\n---\n include/linux/socket.h  | 2 ++\n include/uapi/linux/in.h | 2 ++\n 2 files changed, 4 insertions(+)",
    "diff": "diff --git a/include/linux/socket.h b/include/linux/socket.h\nindex ec715ad4bf25..e00cbfdaa8d6 100644\n--- a/include/linux/socket.h\n+++ b/include/linux/socket.h\n@@ -401,6 +401,8 @@ struct ucred {\n #define SOL_MCTP\t285\n #define SOL_SMC\t\t286\n #define SOL_VSOCK\t287\n+/* 288 reserved for SOL_QUIC */\n+#define SOL_SMBDIRECT\t289\n \n /* IPX options */\n #define IPX_TYPE\t1\ndiff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h\nindex ced0fc3c3aa5..933d243b1780 100644\n--- a/include/uapi/linux/in.h\n+++ b/include/uapi/linux/in.h\n@@ -85,6 +85,8 @@ enum {\n #define IPPROTO_RAW\t\tIPPROTO_RAW\n   IPPROTO_SMC = 256,\t\t/* Shared Memory Communications\t\t*/\n #define IPPROTO_SMC\t\tIPPROTO_SMC\n+  IPPROTO_SMBDIRECT = 257,\t/* RDMA based transport (mostly used by SMB3) */\n+#define IPPROTO_SMBDIRECT\tIPPROTO_SMBDIRECT\n   IPPROTO_MPTCP = 262,\t\t/* Multipath TCP connection\t\t*/\n #define IPPROTO_MPTCP\t\tIPPROTO_MPTCP\n   IPPROTO_MAX\n",
    "prefixes": [
        "5/8"
    ]
}