get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 593098,
    "url": "http://patchwork.ozlabs.org/api/patches/593098/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1457372509-3135-3-git-send-email-sridhar.samudrala@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": "<1457372509-3135-3-git-send-email-sridhar.samudrala@intel.com>",
    "list_archive_url": null,
    "date": "2016-03-07T17:41:49",
    "name": "[v2,net-next,3/3] net: ixgbe: Fix cls_u32 offload support for L4 ports.",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "13d3f2c784cb7ef0163c658e8451eec155ae7708",
    "submitter": {
        "id": 65219,
        "url": "http://patchwork.ozlabs.org/api/people/65219/?format=api",
        "name": "Samudrala, Sridhar",
        "email": "sridhar.samudrala@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/1457372509-3135-3-git-send-email-sridhar.samudrala@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/593098/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/593098/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 8B9141402D8\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  8 Mar 2016 04:45:56 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id DC00332FD9;\n\tMon,  7 Mar 2016 17:45:55 +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 97zpzFeBdj+W; Mon,  7 Mar 2016 17:45:53 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id C558331257;\n\tMon,  7 Mar 2016 17:45:53 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id E4F251C1677\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  7 Mar 2016 17:45:52 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id DFFEBA6349\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  7 Mar 2016 17:45:52 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 6OKghQbjxq00 for <intel-wired-lan@lists.osuosl.org>;\n\tMon,  7 Mar 2016 17:45:50 +0000 (UTC)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 6AB86A6374\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon,  7 Mar 2016 17:45:50 +0000 (UTC)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga102.fm.intel.com with ESMTP; 07 Mar 2016 09:45:50 -0800",
            "from unknown (HELO sri02.jf.intel.com) ([10.166.39.21])\n\tby fmsmga004.fm.intel.com with ESMTP; 07 Mar 2016 09:45:50 -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.22,552,1449561600\"; d=\"scan'208\";a=\"61475946\"",
        "From": "Sridhar Samudrala <sridhar.samudrala@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org, john.r.fastabend@intel.com,\n\tjeffrey.t.kirsher@intel.com",
        "Date": "Mon,  7 Mar 2016 09:41:49 -0800",
        "Message-Id": "<1457372509-3135-3-git-send-email-sridhar.samudrala@intel.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1457372509-3135-1-git-send-email-sridhar.samudrala@intel.com>",
        "References": "<1457372509-3135-1-git-send-email-sridhar.samudrala@intel.com>",
        "Subject": "[Intel-wired-lan] [PATCH v2 net-next 3/3] net: ixgbe: Fix cls_u32\n\toffload support for L4 ports.",
        "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>",
        "MIME-Version": "1.0",
        "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": "Fix support for 16 bit source/dest port matches in ixgbe model.\nu32 uses a single 32-bit key value for both source and destination ports\nstarting at offset 0. So replace the 2 functions with a single function\nthat takes this key value/mask to program both source and dest ports.\n\nVerified with the following filter:\n\n #tc qdisc add dev p4p1 ingress\n #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \\\n\thandle 1: u32 divisor 1\n #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \\\n\thandle 800:0:10 u32 ht 800: link 1: \\\n\toffset at 0 mask 0f00 shift 6 plus 0 eat match ip protocol 6 ff\n #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \\\n\thandle 1:0:10 u32 ht 1: \\\n\tmatch tcp src 1024 ffff match tcp dst 80 ffff action drop\n #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \\\n\thandle 1:0:11 u32 ht 1: \\\n\tmatch tcp src 1025 ffff action drop\n #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \\\n\thandle 1:0:12 u32 ht 1: \\\n\tmatch tcp dst 81 ffff action drop\n\nSigned-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_model.h | 16 ++++------------\n 1 file changed, 4 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h\nindex 61f7290..74c53ad 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_model.h\n@@ -64,28 +64,20 @@ static struct ixgbe_mat_field ixgbe_ipv4_fields[] = {\n \t{ .val = NULL } /* terminal node */\n };\n \n-static inline int ixgbe_mat_prgm_sport(struct ixgbe_fdir_filter *input,\n+static inline int ixgbe_mat_prgm_ports(struct ixgbe_fdir_filter *input,\n \t\t\t\t       union ixgbe_atr_input *mask,\n \t\t\t\t       u32 val, u32 m)\n {\n \tinput->filter.formatted.src_port = val & 0xffff;\n \tmask->formatted.src_port = m & 0xffff;\n-\treturn 0;\n-};\n+\tinput->filter.formatted.dst_port = val >> 16;\n+\tmask->formatted.dst_port = m >> 16;\n \n-static inline int ixgbe_mat_prgm_dport(struct ixgbe_fdir_filter *input,\n-\t\t\t\t       union ixgbe_atr_input *mask,\n-\t\t\t\t       u32 val, u32 m)\n-{\n-\tinput->filter.formatted.dst_port = val & 0xffff;\n-\tmask->formatted.dst_port = m & 0xffff;\n \treturn 0;\n };\n \n static struct ixgbe_mat_field ixgbe_tcp_fields[] = {\n-\t{.off = 0, .val = ixgbe_mat_prgm_sport,\n-\t .type = IXGBE_ATR_FLOW_TYPE_TCPV4},\n-\t{.off = 2, .val = ixgbe_mat_prgm_dport,\n+\t{.off = 0, .val = ixgbe_mat_prgm_ports,\n \t .type = IXGBE_ATR_FLOW_TYPE_TCPV4},\n \t{ .val = NULL } /* terminal node */\n };\n",
    "prefixes": [
        "v2",
        "net-next",
        "3/3"
    ]
}