get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 595560,
    "url": "http://patchwork.ozlabs.org/api/patches/595560/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160309233215.32377.54007.stgit@sdncamp.jf.intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20160309233215.32377.54007.stgit@sdncamp.jf.intel.com>",
    "list_archive_url": null,
    "date": "2016-03-09T23:32:16",
    "name": "[net-next] net: ixgbe: Extend cls_u32 offload to support UDP headers.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e0e850437fb291aa5258b4dbfe53e67d31b6f5ed",
    "submitter": {
        "id": 68504,
        "url": "http://patchwork.ozlabs.org/api/people/68504/?format=api",
        "name": "Nambiar, Amritha",
        "email": "amritha.nambiar@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160309233215.32377.54007.stgit@sdncamp.jf.intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/595560/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/595560/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 9D6AA140779\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 10 Mar 2016 10:29:06 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 7858D33A40;\n\tWed,  9 Mar 2016 23:29:05 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id j2ZY+B3OKVIn; Wed,  9 Mar 2016 23:29:04 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 2A857339B7;\n\tWed,  9 Mar 2016 23:29:04 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 212C71C1005\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed,  9 Mar 2016 23:29:03 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 199FC82CF8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed,  9 Mar 2016 23:29:03 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 7tWLJiVSeDq5 for <intel-wired-lan@lists.osuosl.org>;\n\tWed,  9 Mar 2016 23:29:02 +0000 (UTC)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 4588A82CE2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed,  9 Mar 2016 23:29:02 +0000 (UTC)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga104.fm.intel.com with ESMTP; 09 Mar 2016 15:29:02 -0800",
            "from sdncamp.jf.intel.com ([10.166.46.129])\n\tby fmsmga004.fm.intel.com with ESMTP; 09 Mar 2016 15:29:01 -0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.24,313,1455004800\"; d=\"scan'208\";a=\"63162348\"",
        "From": "Amritha Nambiar <amritha.nambiar@intel.com>",
        "To": "john.r.fastabend@intel.com, sridhar.samudrala@intel.com,\n\tintel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com,\n\tamritha.nambiar@intel.com",
        "Date": "Wed, 09 Mar 2016 18:32:16 -0500",
        "Message-ID": "<20160309233215.32377.54007.stgit@sdncamp.jf.intel.com>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH] [net-next] net: ixgbe: Extend cls_u32\n\toffload to support UDP headers.",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "Added support to match on UDP fields in the transport layer.\nExtended core logic to support multiple headers.\n\nVerified with the following filters :\n\n# tc qdisc add dev enp2s0f0 ingress\n# tc filter add dev enp2s0f0 parent ffff: protocol ip prio 99 \\\n\thandle 1: u32 divisor 1\n# tc filter add dev enp2s0f0 protocol ip parent ffff: prio 99 \\\n\tu32 ht 800: order 1 link 1: \\\n\toffset at 0 mask 0f00 shift 6 plus 0 eat match ip protocol 6 ff\n# tc filter add dev enp2s0f0 parent ffff: protocol ip \\\n\tu32 ht 1: order 2 \\\n\tmatch tcp src 1024 ffff match tcp dst 23 ffff action drop\n# tc filter add dev enp2s0f0 parent ffff: protocol ip prio 99 \\\n\thandle 2: u32 divisor 1\n# tc filter add dev enp2s0f0 protocol ip parent ffff: prio 99 \\\n\tu32 ht 800: order 3 link 2: \\\n\toffset at 0 mask 0f00 shift 6 plus 0 eat match ip protocol 17 ff\n# tc filter add dev enp2s0f0 parent ffff: protocol ip \\\n\tu32 ht 2: order 4 \\\n\tmatch udp src 1025 ffff match udp dst 24 ffff action drop\n\nSigned-off-by: Amritha Nambiar <amritha.nambiar@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_main.c  |   19 ++++++++++---------\n drivers/net/ethernet/intel/ixgbe/ixgbe_model.h |    8 ++++++++\n 2 files changed, 18 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\nindex 7a60142..25b81a4 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n@@ -8295,19 +8295,20 @@ static int ixgbe_configure_clsu32(struct ixgbe_adapter *adapter,\n \t\t\treturn -EINVAL;\n \n \t\tfor (i = 0; nexthdr[i].jump; i++) {\n-\t\t\tif (nexthdr->o != cls->knode.sel->offoff ||\n-\t\t\t    nexthdr->s != cls->knode.sel->offshift ||\n-\t\t\t    nexthdr->m != cls->knode.sel->offmask ||\n+\t\t\tif (nexthdr[i].o != cls->knode.sel->offoff ||\n+\t\t\t    nexthdr[i].s != cls->knode.sel->offshift ||\n+\t\t\t    nexthdr[i].m != cls->knode.sel->offmask ||\n \t\t\t    /* do not support multiple key jumps its just mad */\n \t\t\t    cls->knode.sel->nkeys > 1)\n \t\t\t\treturn -EINVAL;\n \n-\t\t\tif (nexthdr->off != cls->knode.sel->keys[0].off ||\n-\t\t\t    nexthdr->val != cls->knode.sel->keys[0].val ||\n-\t\t\t    nexthdr->mask != cls->knode.sel->keys[0].mask)\n-\t\t\t\treturn -EINVAL;\n-\n-\t\t\tadapter->jump_tables[link_uhtid] = nexthdr->jump;\n+\t\t\tif (nexthdr[i].off == cls->knode.sel->keys[0].off &&\n+\t\t\t    nexthdr[i].val == cls->knode.sel->keys[0].val &&\n+\t\t\t    nexthdr[i].mask == cls->knode.sel->keys[0].mask) {\n+\t\t\t\tadapter->jump_tables[link_uhtid] =\n+\t\t\t\t\t\t\t\tnexthdr[i].jump;\n+\t\t\t\tbreak;\n+\t\t\t}\n \t\t}\n \t\treturn 0;\n \t}\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h\nindex 74c53ad..60adde5 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h\n@@ -82,6 +82,12 @@ static struct ixgbe_mat_field ixgbe_tcp_fields[] = {\n \t{ .val = NULL } /* terminal node */\n };\n \n+static struct ixgbe_mat_field ixgbe_udp_fields[] = {\n+\t{.off = 0, .val = ixgbe_mat_prgm_ports,\n+\t .type = IXGBE_ATR_FLOW_TYPE_UDPV4},\n+\t{ .val = NULL } /* terminal node */\n+};\n+\n struct ixgbe_nexthdr {\n \t/* offset, shift, and mask of position to next header */\n \tunsigned int o;\n@@ -98,6 +104,8 @@ struct ixgbe_nexthdr {\n static struct ixgbe_nexthdr ixgbe_ipv4_jumps[] = {\n \t{ .o = 0, .s = 6, .m = 0xf,\n \t  .off = 8, .val = 0x600, .mask = 0xff00, .jump = ixgbe_tcp_fields},\n+\t{ .o = 0, .s = 6, .m = 0xf,\n+\t  .off = 8, .val = 0x1100, .mask = 0xff00, .jump = ixgbe_udp_fields},\n \t{ .jump = NULL } /* terminal node */\n };\n #endif /* _IXGBE_MODEL_H_ */\n",
    "prefixes": [
        "net-next"
    ]
}