get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 139123,
    "url": "http://patches.dpdk.org/api/patches/139123/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240405125039.897933-7-david.marchand@redhat.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20240405125039.897933-7-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240405125039.897933-7-david.marchand@redhat.com",
    "date": "2024-04-05T12:49:45",
    "name": "[6/8] net/i40e: fix outer UDP checksum offload for X710",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "b2dbca93f6e618c8e15196c391a7d2e925522c55",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240405125039.897933-7-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 31687,
            "url": "http://patches.dpdk.org/api/series/31687/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31687",
            "date": "2024-04-05T12:49:39",
            "name": "Fix outer UDP checksum for Intel nics",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/31687/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/139123/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/139123/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D05F643E01;\n\tFri,  5 Apr 2024 14:52:49 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BE3F840693;\n\tFri,  5 Apr 2024 14:52:49 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id F2D4C406BC\n for <dev@dpdk.org>; Fri,  5 Apr 2024 14:52:48 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-425-3lwf0DBENm-Ov0yYgh0Y5w-1; Fri, 05 Apr 2024 08:52:43 -0400",
            "from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com\n [10.11.54.7])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E299F845DC0;\n Fri,  5 Apr 2024 12:52:42 +0000 (UTC)",
            "from dmarchan.redhat.com (unknown [10.45.225.49])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 00D061C060CE;\n Fri,  5 Apr 2024 12:52:40 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1712321568;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=CJD4x8VcBLPEWhuIzkPaW7WlACfAbgs0vpUr9QWshSA=;\n b=iEvCQVHlF39rVg/cz2e3AexzY8R6X3qimviL+Uqdbiz+KS8MgE3YvSfD19sb5rxqkAxTGX\n XjWixhTJSpO6Fkeu+gslcmjEXCHebhHy5nkgSY+7eNdL/Sr/NiHe0b+SYyIhNNcS8O4WKo\n RgnY1pGjoE4VpV4JBgtjR/h8bDPVLE4=",
        "X-MC-Unique": "3lwf0DBENm-Ov0yYgh0Y5w-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, ferruh.yigit@amd.com, stable@dpdk.org,\n Jun Wang <junwang01@cestc.cn>, Yuying Zhang <Yuying.Zhang@intel.com>,\n Beilei Xing <beilei.xing@intel.com>, Jie Wang <jie1x.wang@intel.com>",
        "Subject": "[PATCH 6/8] net/i40e: fix outer UDP checksum offload for X710",
        "Date": "Fri,  5 Apr 2024 14:49:45 +0200",
        "Message-ID": "<20240405125039.897933-7-david.marchand@redhat.com>",
        "In-Reply-To": "<20240405125039.897933-1-david.marchand@redhat.com>",
        "References": "<20240405125039.897933-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.11.54.7",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "According to the X710 datasheet (and confirmed on the field..), X710\ndevices do not support outer checksum offload.\n\n\"\"\"\n8.4.4.2 Transmit L3 and L4 Integrity Offload\n\nTunneling UDP headers and GRE header are not offloaded while the\nX710/XXV710/XL710 leaves their checksum field as is.\nIf a checksum is required, software should provide it as well as the inner\nchecksum value(s) that are required for the outer checksum.\n\"\"\"\n\nFix Tx offload capabilities according to the hardware.\n\nX722 may support such offload by setting I40E_TXD_CTX_QW0_L4T_CS_MASK.\n\nBugzilla ID: 1406\nFixes: 8cc79a1636cd (\"net/i40e: fix forward outer IPv6 VXLAN\")\nCc: stable@dpdk.org\n\nReported-by: Jun Wang <junwang01@cestc.cn>\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\nNote: I do not have X722 nic. Please Intel devs, check for both X710 and\nX722 series.\n\n---\n .mailmap                       | 1 +\n drivers/net/i40e/i40e_ethdev.c | 6 +++++-\n drivers/net/i40e/i40e_rxtx.c   | 9 +++++++++\n 3 files changed, 15 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/.mailmap b/.mailmap\nindex 3843868716..091766eca7 100644\n--- a/.mailmap\n+++ b/.mailmap\n@@ -719,6 +719,7 @@ Junjie Wan <wanjunjie@bytedance.com>\n Jun Qiu <jun.qiu@jaguarmicro.com>\n Jun W Zhou <junx.w.zhou@intel.com>\n Junxiao Shi <git@mail1.yoursunny.com>\n+Jun Wang <junwang01@cestc.cn>\n Jun Yang <jun.yang@nxp.com>\n Junyu Jiang <junyux.jiang@intel.com>\n Juraj Linkeš <juraj.linkes@pantheon.tech>\ndiff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 380ce1a720..6535c7c178 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -3862,8 +3862,12 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \t\tRTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO |\n \t\tRTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO |\n \t\tRTE_ETH_TX_OFFLOAD_MULTI_SEGS |\n-\t\tRTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM |\n \t\tdev_info->tx_queue_offload_capa;\n+\tif (hw->mac.type == I40E_MAC_X722) {\n+\t\tdev_info->tx_offload_capa |=\n+\t\t\tRTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;\n+\t}\n+\n \tdev_info->dev_capa =\n \t\tRTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |\n \t\tRTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;\ndiff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex 5d25ab4d3a..a649911494 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -295,6 +295,15 @@ i40e_parse_tunneling_params(uint64_t ol_flags,\n \t */\n \t*cd_tunneling |= (tx_offload.l2_len >> 1) <<\n \t\tI40E_TXD_CTX_QW0_NATLEN_SHIFT;\n+\n+\t/**\n+\t * Calculate the tunneling UDP checksum (only supported with X722).\n+\t * Shall be set only if L4TUNT = 01b and EIPT is not zero\n+\t */\n+\tif (!(*cd_tunneling & I40E_TXD_CTX_QW0_EXT_IP_MASK) &&\n+\t\t(*cd_tunneling & I40E_TXD_CTX_UDP_TUNNELING) &&\n+\t\t(ol_flags & RTE_MBUF_F_TX_OUTER_UDP_CKSUM))\n+\t\t*cd_tunneling |= I40E_TXD_CTX_QW0_L4T_CS_MASK;\n }\n \n static inline void\n",
    "prefixes": [
        "6/8"
    ]
}