get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 461323,
    "url": "http://patchwork.ozlabs.org/api/patches/461323/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1429056554-120070-1-git-send-email-jesse@nicira.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": "<1429056554-120070-1-git-send-email-jesse@nicira.com>",
    "list_archive_url": null,
    "date": "2015-04-15T00:09:14",
    "name": "[net,v2] i40e: Implement ndo_features_check()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a6befeb369f31bc799018f03e27f8479adffb9e5",
    "submitter": {
        "id": 4975,
        "url": "http://patchwork.ozlabs.org/api/people/4975/?format=api",
        "name": "Jesse Gross",
        "email": "jesse@nicira.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/1429056554-120070-1-git-send-email-jesse@nicira.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/461323/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/461323/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 fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id 777DD14021A\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 15 Apr 2015 10:09:29 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id C09B7A2F5B;\n\tWed, 15 Apr 2015 00:09:28 +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 ldiLP0thcJVI; Wed, 15 Apr 2015 00:09:27 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 495C0A2EA7;\n\tWed, 15 Apr 2015 00:09:27 +0000 (UTC)",
            "from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 075891C21C7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Apr 2015 00:09:26 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id F3484A3098\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Apr 2015 00:09:25 +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 d7Gs9enb-0_H for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Apr 2015 00:09:23 +0000 (UTC)",
            "from na3sys009aog130.obsmtp.com (na3sys009aog130.obsmtp.com\n\t[74.125.149.143])\n\tby fraxinus.osuosl.org (Postfix) with SMTP id 050B9A2EA7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Apr 2015 00:09:22 +0000 (UTC)",
            "from mail-pd0-f182.google.com ([209.85.192.182]) (using TLSv1) by\n\tna3sys009aob130.postini.com ([74.125.148.12]) with SMTP\n\tID DSNKVS2sMndbc3iPhejrQ542BhJ0uv8FoZmU@postini.com;\n\tTue, 14 Apr 2015 17:09:23 PDT",
            "by mail-pd0-f182.google.com with SMTP id qd1so30273258pdb.2\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 14 Apr 2015 17:09:22 -0700 (PDT)",
            "from localhost.localdomain (c-71-202-123-143.hsd1.ca.comcast.net.\n\t[71.202.123.143]) by mx.google.com with ESMTPSA id\n\tnd3sm2227509pbc.9.2015.04.14.17.09.20\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 14 Apr 2015 17:09:21 -0700 (PDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=Kr0LmqBhbFTDtSzuteyizXrG16hCx6EDGlQTn3ZY7MA=;\n\tb=I+I18++gNwxvaJP+TWoRMpLkm+LFeai83tW188oKsKNH/cdXCF1rMsiTxYYVsMRhuD\n\tlpU9xHTrMWYjIOkFH60WSYahhbeFcq/aDLSIQW+TGo9Ch2IGxw2kLixKDdA31OnnPEM0\n\t8t6YbJ96R+ulioT61J6xqbI0RYr3YQaFMu+kFzsUgAnwGb1pVdKg4MgwCXbz8Z9WzFdO\n\tV9S4Jh+Ss1GHeXAAaIxZk6qMHwL23uBFos4b9+OjH7VnTGDsJuZXvIyv6I+lx7xixTgp\n\t3nniqlvmzPPbv8aXz/yHMHG8G5e2+tR9UGZ+QGvYL9O3vzLQY+ONa38REFnOxExNziDk\n\tfG2w==",
        "X-Gm-Message-State": "ALoCoQllJJqOuXY+yh5QCc9Lmmj5AudfLH/yhKl8fcQB3fLbo2UtpejQkG/3J/WWu1Dmhnk0gFvxQSgskJqdl9sYZItTdUYTPmkFZRFecB8cBa9YgBoSrOoHTMknzGntn0qYR+a7tsoXoaoSheEjViw2t56T9hvkDNHQimnj5wvsMHz1qM0w7wA=",
        "X-Received": [
            "by 10.70.5.225 with SMTP id v1mr40859579pdv.103.1429056562364;\n\tTue, 14 Apr 2015 17:09:22 -0700 (PDT)",
            "by 10.70.5.225 with SMTP id v1mr40859567pdv.103.1429056562297;\n\tTue, 14 Apr 2015 17:09:22 -0700 (PDT)"
        ],
        "From": "Jesse Gross <jesse@nicira.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue, 14 Apr 2015 17:09:14 -0700",
        "Message-Id": "<1429056554-120070-1-git-send-email-jesse@nicira.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "Cc": "Joe Stringer <joestringer@nicira.com>",
        "Subject": "[Intel-wired-lan] [PATCH net v2] i40e: Implement\n\tndo_features_check()",
        "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": "From: Joe Stringer <joestringer@nicira.com>\n\ni40e supports UDP tunnel headers up to 80 bytes in length, so\nthis adds a check to ensure that it doesn't try to offload\npackets that exceed that.\n\nSigned-off-by: Joe Stringer <joestringer@nicira.com>\nSigned-off-by: Jesse Gross <jesse@nicira.com>\n---\nv2: Move #define above function comment.\n---\n drivers/net/ethernet/intel/i40e/i40e_main.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex dadda3c..eeff157 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -7653,6 +7653,25 @@ static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],\n \treturn err;\n }\n \n+#define I40E_MAX_TUNNEL_HDR_LEN 80\n+/**\n+ * i40e_features_check - Validate encapsulated packet conforms to limits\n+ * @skb: skb buff\n+ * @netdev: This physical port's netdev\n+ * @features: Offload features that the stack believes apply\n+ **/\n+static netdev_features_t i40e_features_check(struct sk_buff *skb,\n+\t\t\t\t\t     struct net_device *dev,\n+\t\t\t\t\t     netdev_features_t features)\n+{\n+\tif (skb->encapsulation &&\n+\t    (skb_inner_mac_header(skb) - skb_transport_header(skb) >\n+\t     I40E_MAX_TUNNEL_HDR_LEN))\n+\t\treturn features & ~(NETIF_F_ALL_CSUM | NETIF_F_GSO_MASK);\n+\n+\treturn features;\n+}\n+\n static const struct net_device_ops i40e_netdev_ops = {\n \t.ndo_open\t\t= i40e_open,\n \t.ndo_stop\t\t= i40e_close,\n@@ -7687,6 +7706,7 @@ static const struct net_device_ops i40e_netdev_ops = {\n #endif\n \t.ndo_get_phys_port_id\t= i40e_get_phys_port_id,\n \t.ndo_fdb_add\t\t= i40e_ndo_fdb_add,\n+\t.ndo_features_check\t= i40e_features_check,\n };\n \n /**\n",
    "prefixes": [
        "net",
        "v2"
    ]
}