get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1528341,
    "url": "http://patchwork.ozlabs.org/api/patches/1528341/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210915124319.1683219-2-cmi@nvidia.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": "<20210915124319.1683219-2-cmi@nvidia.com>",
    "list_archive_url": null,
    "date": "2021-09-15T12:43:13",
    "name": "[ovs-dev,v15,1/7] compat: Add psample and tc sample action defines for older kernels",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "c60fc7a45c6da30251487fbb687a4f3de2241741",
    "submitter": {
        "id": 80086,
        "url": "http://patchwork.ozlabs.org/api/people/80086/?format=api",
        "name": "Chris Mi",
        "email": "cmi@nvidia.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/20210915124319.1683219-2-cmi@nvidia.com/mbox/",
    "series": [
        {
            "id": 262447,
            "url": "http://patchwork.ozlabs.org/api/series/262447/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=262447",
            "date": "2021-09-15T12:43:12",
            "name": "Add offload support for sFlow",
            "version": 15,
            "mbox": "http://patchwork.ozlabs.org/series/262447/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1528341/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/1528341/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@ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
        "Received": [
            "from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])\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 ozlabs.org (Postfix) with ESMTPS id 4H8fz12Kd0z9t0k\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Sep 2021 22:43:41 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id 38B4D4018B;\n\tWed, 15 Sep 2021 12:43:38 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n\tby localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id lEDM4cCHfgcc; Wed, 15 Sep 2021 12:43:36 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id 13B8D40586;\n\tWed, 15 Sep 2021 12:43:34 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 65FA8C0024;\n\tWed, 15 Sep 2021 12:43:32 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 394DCC001D\n for <dev@openvswitch.org>; Wed, 15 Sep 2021 12:43:30 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 6509B60BA9\n for <dev@openvswitch.org>; Wed, 15 Sep 2021 12:43:29 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id Ca6P8kTGSwzg for <dev@openvswitch.org>;\n Wed, 15 Sep 2021 12:43:28 +0000 (UTC)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by smtp3.osuosl.org (Postfix) with ESMTP id 18ED360B65\n for <dev@openvswitch.org>; Wed, 15 Sep 2021 12:43:27 +0000 (UTC)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from cmi@nvidia.com)\n with SMTP; 15 Sep 2021 15:43:21 +0300",
            "from c-141-46-1-010.mtl.labs.mlnx (c-141-46-1-010.mtl.labs.mlnx\n [10.141.46.10])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 18FChLbV010242;\n Wed, 15 Sep 2021 15:43:21 +0300"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0",
        "To": "dev@openvswitch.org",
        "Date": "Wed, 15 Sep 2021 15:43:13 +0300",
        "Message-Id": "<20210915124319.1683219-2-cmi@nvidia.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20210915124319.1683219-1-cmi@nvidia.com>",
        "References": "<20210915124319.1683219-1-cmi@nvidia.com>",
        "MIME-Version": "1.0",
        "Cc": "elibr@nvidia.com, simon.horman@netronome.com, roniba@nvidia.com,\n i.maximets@ovn.org",
        "Subject": "[ovs-dev] [PATCH v15 1/7] compat: Add psample and tc sample action\n\tdefines for older kernels",
        "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>",
        "From": "Chris Mi via dev <ovs-dev@openvswitch.org>",
        "Reply-To": "Chris Mi <cmi@nvidia.com>",
        "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": "Update kernel UAPI to support psample and the tc sample action.\n\nSigned-off-by: Chris Mi <cmi@nvidia.com>\nReviewed-by: Eli Britstein <elibr@nvidia.com>\nAcked-by: Eelco Chaudron <echaudro@redhat.com>\n---\n include/linux/automake.mk        |  4 ++-\n include/linux/psample.h          | 62 ++++++++++++++++++++++++++++++++\n include/linux/tc_act/tc_sample.h | 25 +++++++++++++\n 3 files changed, 90 insertions(+), 1 deletion(-)\n create mode 100644 include/linux/psample.h\n create mode 100644 include/linux/tc_act/tc_sample.h",
    "diff": "diff --git a/include/linux/automake.mk b/include/linux/automake.mk\nindex 8f063f482..c48d9699a 100644\n--- a/include/linux/automake.mk\n+++ b/include/linux/automake.mk\n@@ -7,4 +7,6 @@ noinst_HEADERS += \\\n \tinclude/linux/tc_act/tc_skbedit.h \\\n \tinclude/linux/tc_act/tc_tunnel_key.h \\\n \tinclude/linux/tc_act/tc_vlan.h \\\n-\tinclude/linux/tc_act/tc_ct.h\n+\tinclude/linux/tc_act/tc_ct.h \\\n+\tinclude/linux/tc_act/tc_sample.h \\\n+\tinclude/linux/psample.h\ndiff --git a/include/linux/psample.h b/include/linux/psample.h\nnew file mode 100644\nindex 000000000..e585db5bf\n--- /dev/null\n+++ b/include/linux/psample.h\n@@ -0,0 +1,62 @@\n+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */\n+#ifndef __UAPI_PSAMPLE_H\n+#define __UAPI_PSAMPLE_H\n+\n+enum {\n+\tPSAMPLE_ATTR_IIFINDEX,\n+\tPSAMPLE_ATTR_OIFINDEX,\n+\tPSAMPLE_ATTR_ORIGSIZE,\n+\tPSAMPLE_ATTR_SAMPLE_GROUP,\n+\tPSAMPLE_ATTR_GROUP_SEQ,\n+\tPSAMPLE_ATTR_SAMPLE_RATE,\n+\tPSAMPLE_ATTR_DATA,\n+\tPSAMPLE_ATTR_GROUP_REFCOUNT,\n+\tPSAMPLE_ATTR_TUNNEL,\n+\n+\tPSAMPLE_ATTR_PAD,\n+\tPSAMPLE_ATTR_OUT_TC,\t\t/* u16 */\n+\tPSAMPLE_ATTR_OUT_TC_OCC,\t/* u64, bytes */\n+\tPSAMPLE_ATTR_LATENCY,\t\t/* u64, nanoseconds */\n+\tPSAMPLE_ATTR_TIMESTAMP,\t\t/* u64, nanoseconds */\n+\tPSAMPLE_ATTR_PROTO,\t\t/* u16 */\n+\n+\t__PSAMPLE_ATTR_MAX\n+};\n+\n+enum psample_command {\n+\tPSAMPLE_CMD_SAMPLE,\n+\tPSAMPLE_CMD_GET_GROUP,\n+\tPSAMPLE_CMD_NEW_GROUP,\n+\tPSAMPLE_CMD_DEL_GROUP,\n+};\n+\n+enum psample_tunnel_key_attr {\n+\tPSAMPLE_TUNNEL_KEY_ATTR_ID,                 /* be64 Tunnel ID */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_IPV4_SRC,           /* be32 src IP address. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_IPV4_DST,           /* be32 dst IP address. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_TOS,                /* u8 Tunnel IP ToS. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_TTL,                /* u8 Tunnel IP TTL. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_DONT_FRAGMENT,      /* No argument, set DF. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_CSUM,               /* No argument. CSUM packet. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_OAM,                /* No argument. OAM frame.  */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_GENEVE_OPTS,        /* Array of Geneve options. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_TP_SRC,\t            /* be16 src Transport Port. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_TP_DST,\t\t    /* be16 dst Transport Port. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_VXLAN_OPTS,\t    /* Nested VXLAN opts* */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_IPV6_SRC,           /* struct in6_addr src IPv6 address. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_IPV6_DST,           /* struct in6_addr dst IPv6 address. */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_PAD,\n+\tPSAMPLE_TUNNEL_KEY_ATTR_ERSPAN_OPTS,        /* struct erspan_metadata */\n+\tPSAMPLE_TUNNEL_KEY_ATTR_IPV4_INFO_BRIDGE,   /* No argument. IPV4_INFO_BRIDGE mode.*/\n+\t__PSAMPLE_TUNNEL_KEY_ATTR_MAX\n+};\n+\n+/* Can be overridden at runtime by module option */\n+#define PSAMPLE_ATTR_MAX (__PSAMPLE_ATTR_MAX - 1)\n+\n+#define PSAMPLE_NL_MCGRP_CONFIG_NAME \"config\"\n+#define PSAMPLE_NL_MCGRP_SAMPLE_NAME \"packets\"\n+#define PSAMPLE_GENL_NAME \"psample\"\n+#define PSAMPLE_GENL_VERSION 1\n+\n+#endif\ndiff --git a/include/linux/tc_act/tc_sample.h b/include/linux/tc_act/tc_sample.h\nnew file mode 100644\nindex 000000000..fee1bcc20\n--- /dev/null\n+++ b/include/linux/tc_act/tc_sample.h\n@@ -0,0 +1,25 @@\n+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */\n+#ifndef __LINUX_TC_SAMPLE_H\n+#define __LINUX_TC_SAMPLE_H\n+\n+#include <linux/types.h>\n+#include <linux/pkt_cls.h>\n+#include <linux/if_ether.h>\n+\n+struct tc_sample {\n+\ttc_gen;\n+};\n+\n+enum {\n+\tTCA_SAMPLE_UNSPEC,\n+\tTCA_SAMPLE_TM,\n+\tTCA_SAMPLE_PARMS,\n+\tTCA_SAMPLE_RATE,\n+\tTCA_SAMPLE_TRUNC_SIZE,\n+\tTCA_SAMPLE_PSAMPLE_GROUP,\n+\tTCA_SAMPLE_PAD,\n+\t__TCA_SAMPLE_MAX\n+};\n+#define TCA_SAMPLE_MAX (__TCA_SAMPLE_MAX - 1)\n+\n+#endif\n",
    "prefixes": [
        "ovs-dev",
        "v15",
        "1/7"
    ]
}