get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1175406,
    "url": "http://patchwork.ozlabs.org/api/patches/1175406/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1570812820-20052-4-git-send-email-johunt@akamai.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": "<1570812820-20052-4-git-send-email-johunt@akamai.com>",
    "list_archive_url": null,
    "date": "2019-10-11T16:53:40",
    "name": "[v3,3/3] i40e: Add UDP segmentation offload support",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "01795b0bfbd34fb5290cbd696fdb717b8fbef9d6",
    "submitter": {
        "id": 4788,
        "url": "http://patchwork.ozlabs.org/api/people/4788/?format=api",
        "name": "Josh Hunt",
        "email": "johunt@akamai.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/1570812820-20052-4-git-send-email-johunt@akamai.com/mbox/",
    "series": [
        {
            "id": 135642,
            "url": "http://patchwork.ozlabs.org/api/series/135642/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=135642",
            "date": "2019-10-11T16:53:37",
            "name": "igb, ixgbe, i40e UDP segmentation offload support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/135642/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1175406/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1175406/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@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"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dmarc=fail (p=quarantine dis=none)\n\theader.from=akamai.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tsecure) header.d=akamai.com header.i=@akamai.com header.b=\"NfZ5kUpL\";\n\tdkim-atps=neutral"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 46qYtr3Sbfz9sCJ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 12 Oct 2019 03:53:40 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 9E90D87F49;\n\tFri, 11 Oct 2019 16:53:38 +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 E4BuBtpu4rIq; Fri, 11 Oct 2019 16:53:37 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id AE68C87F76;\n\tFri, 11 Oct 2019 16:53:37 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id AD8091BF2C7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 11 Oct 2019 16:53:36 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id A5D59888EC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 11 Oct 2019 16:53:36 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id wD7x3wlJ5jAw for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 11 Oct 2019 16:53:36 +0000 (UTC)",
            "from mx0a-00190b01.pphosted.com (mx0a-00190b01.pphosted.com\n\t[67.231.149.131])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id F19D9888EB\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 11 Oct 2019 16:53:35 +0000 (UTC)",
            "from pps.filterd (m0122332.ppops.net [127.0.0.1])\n\tby mx0a-00190b01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n\tx9BGqDAm015101; Fri, 11 Oct 2019 17:53:31 +0100",
            "from prod-mail-ppoint4 (prod-mail-ppoint4.akamai.com [96.6.114.87]\n\t(may be forged))\n\tby mx0a-00190b01.pphosted.com with ESMTP id 2vjt7us39k-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=NOT); Fri, 11 Oct 2019 17:53:30 +0100",
            "from pps.filterd (prod-mail-ppoint4.akamai.com [127.0.0.1])\n\tby prod-mail-ppoint4.akamai.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx9BGloDB030555; Fri, 11 Oct 2019 12:53:29 -0400",
            "from prod-mail-relay14.akamai.com ([172.27.17.39])\n\tby prod-mail-ppoint4.akamai.com with ESMTP id 2veph4gxku-1;\n\tFri, 11 Oct 2019 12:53:28 -0400",
            "from bos-lpwg1 (bos-lpwg1.kendall.corp.akamai.com [172.29.171.203])\n\tby prod-mail-relay14.akamai.com (Postfix) with ESMTP id 44F6A81460; \n\tFri, 11 Oct 2019 16:53:13 +0000 (GMT)",
            "from johunt by bos-lpwg1 with local (Exim 4.86_2)\n\t(envelope-from <johunt@akamai.com>)\n\tid 1iIyAg-0005Ea-LK; Fri, 11 Oct 2019 12:53:42 -0400"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references; s=jan2016.eng;\n\tbh=WrgzxCfSQCMoLA5JPc/oZqd8xph9TXAp92CBIBcGQLw=;\n\tb=NfZ5kUpLqgkEwOS90E2mmvjfcvO/I6V5IzRG+JJt2Zz1LvA0+vJj4zkPfC2qx+Rs9Muk\n\tPEy2UrsBR/yOqlfHCLgldycT5vx4R7FBAbb8VI+3myVTh+n0gSBFbCPn3zhCftNs1eV7\n\tmYlXa9Qz8sX0CDWP5/8fxvOm/LOxVXybrgPSlzGbmKEDv9xkKBof+Y5/VtZtx7JfSWxr\n\t1hftk/ewSrtPawRbUropqILwD8F78sp9bacVPAZZXmuqsTDu4kNo6eL9JevETMI4AEHv\n\tIw62cTYAiqeiWGMiPgTowRTr4kjaSuSm4B1T+xWzGVHYy0Jy/ZQEadZ7nCzz3Wm1YfqC\n\tmA== ",
        "From": "Josh Hunt <johunt@akamai.com>",
        "To": "netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org,\n\tjeffrey.t.kirsher@intel.com",
        "Date": "Fri, 11 Oct 2019 12:53:40 -0400",
        "Message-Id": "<1570812820-20052-4-git-send-email-johunt@akamai.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1570812820-20052-1-git-send-email-johunt@akamai.com>",
        "References": "<1570812820-20052-1-git-send-email-johunt@akamai.com>",
        "X-Proofpoint-Virus-Version": [
            "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-10-11_10:, , signatures=0",
            "vendor=fsecure engine=2.50.10434:6.0.95,1.0.8\n\tdefinitions=2019-10-11_10:2019-10-10,2019-10-11 signatures=0"
        ],
        "X-Proofpoint-Spam-Details": [
            "rule=notspam policy=default score=0 suspectscore=0\n\tmalwarescore=0\n\tphishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=947\n\tadultscore=0 classifier=spam adjust=0 reason=mlx scancount=1\n\tengine=8.0.1-1908290000 definitions=main-1910110148",
            "rule=notspam policy=default score=0 spamscore=0\n\tadultscore=0 mlxscore=0\n\tpriorityscore=1501 impostorscore=0 bulkscore=0 clxscore=1015\n\tphishscore=0\n\tsuspectscore=0 mlxlogscore=971 malwarescore=0 lowpriorityscore=0\n\tclassifier=spam adjust=0 reason=mlx scancount=1\n\tengine=8.12.0-1908290000\n\tdefinitions=main-1910110149"
        ],
        "Subject": "[Intel-wired-lan] [PATCH v3 3/3] i40e: Add UDP segmentation offload\n\tsupport",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "Alexander Duyck <alexander.h.duyck@intel.com>, willemb@google.com,\n\tJosh Hunt <johunt@akamai.com>, alexander.h.duyck@linux.intel.com",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Based on a series from Alexander Duyck this change adds UDP segmentation\noffload support to the i40e driver.\n\nCC: Alexander Duyck <alexander.h.duyck@intel.com>\nCC: Willem de Bruijn <willemb@google.com>\nSigned-off-by: Josh Hunt <johunt@akamai.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_main.c |  1 +\n drivers/net/ethernet/intel/i40e/i40e_txrx.c | 12 +++++++++---\n 2 files changed, 10 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 6031223eafab..56f8c52cbba1 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -12911,6 +12911,7 @@ static int i40e_config_netdev(struct i40e_vsi *vsi)\n \t\t\t  NETIF_F_GSO_IPXIP6\t\t|\n \t\t\t  NETIF_F_GSO_UDP_TUNNEL\t|\n \t\t\t  NETIF_F_GSO_UDP_TUNNEL_CSUM\t|\n+\t\t\t  NETIF_F_GSO_UDP_L4\t\t|\n \t\t\t  NETIF_F_SCTP_CRC\t\t|\n \t\t\t  NETIF_F_RXHASH\t\t|\n \t\t\t  NETIF_F_RXCSUM\t\t|\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\nindex e3f29dc8b290..b8496037ef7f 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_txrx.c\n@@ -2960,10 +2960,16 @@ static int i40e_tso(struct i40e_tx_buffer *first, u8 *hdr_len,\n \n \t/* remove payload length from inner checksum */\n \tpaylen = skb->len - l4_offset;\n-\tcsum_replace_by_diff(&l4.tcp->check, (__force __wsum)htonl(paylen));\n \n-\t/* compute length of segmentation header */\n-\t*hdr_len = (l4.tcp->doff * 4) + l4_offset;\n+\tif (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) {\n+\t\tcsum_replace_by_diff(&l4.udp->check, (__force __wsum)htonl(paylen));\n+\t\t/* compute length of segmentation header */\n+\t\t*hdr_len = sizeof(*l4.udp) + l4_offset;\n+\t} else {\n+\t\tcsum_replace_by_diff(&l4.tcp->check, (__force __wsum)htonl(paylen));\n+\t\t/* compute length of segmentation header */\n+\t\t*hdr_len = (l4.tcp->doff * 4) + l4_offset;\n+\t}\n \n \t/* pull values out of skb_shinfo */\n \tgso_size = skb_shinfo(skb)->gso_size;\n",
    "prefixes": [
        "v3",
        "3/3"
    ]
}