get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 40689,
    "url": "http://patchwork.dpdk.org/api/patches/40689/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1528286641-27668-1-git-send-email-konstantin.ananyev@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1528286641-27668-1-git-send-email-konstantin.ananyev@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1528286641-27668-1-git-send-email-konstantin.ananyev@intel.com",
    "date": "2018-06-06T12:04:01",
    "name": "[dpdk-dev] examples/ipsec-secgw: fix incorrect IPv4 checksum at TX",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "166190bdff2e0db238406cc34414b6599d750e1c",
    "submitter": {
        "id": 33,
        "url": "http://patchwork.dpdk.org/api/people/33/?format=api",
        "name": "Ananyev, Konstantin",
        "email": "konstantin.ananyev@intel.com"
    },
    "delegate": {
        "id": 22,
        "url": "http://patchwork.dpdk.org/api/users/22/?format=api",
        "username": "pdelarag",
        "first_name": "Pablo",
        "last_name": "de Lara Guarch",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1528286641-27668-1-git-send-email-konstantin.ananyev@intel.com/mbox/",
    "series": [
        {
            "id": 18,
            "url": "http://patchwork.dpdk.org/api/series/18/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=18",
            "date": "2018-06-06T12:04:01",
            "name": "[dpdk-dev] examples/ipsec-secgw: fix incorrect IPv4 checksum at TX",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/18/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/40689/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/40689/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<konstantin.ananyev@intel.com>",
        "Received": [
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id E4C651CE53\n\tfor <dev@dpdk.org>; Wed,  6 Jun 2018 14:04:16 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t06 Jun 2018 05:04:15 -0700",
            "from sivswdev02.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.46])\n\tby FMSMGA003.fm.intel.com with ESMTP; 06 Jun 2018 05:04:14 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.49,483,1520924400\"; d=\"scan'208\";a=\"55195387\"",
        "From": "Konstantin Ananyev <konstantin.ananyev@intel.com>",
        "To": [
            "dev@dpdk.org",
            "dev@dpdk.org"
        ],
        "Cc": "Konstantin Ananyev <konstantin.ananyev@intel.com>, radu.nicolau@intel.com",
        "Date": "Wed,  6 Jun 2018 13:04:01 +0100",
        "Message-Id": "<1528286641-27668-1-git-send-email-konstantin.ananyev@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Subject": "[dpdk-dev] [PATCH] examples/ipsec-secgw: fix incorrect IPv4\n\tchecksum at TX",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-List-Received-Date": "Wed, 06 Jun 2018 12:04:18 -0000"
    },
    "content": "For ESP transport and BYPASS mode the app might generate output\npackets with invalid IPv4 header checksum.\nAt least such behavior was observed on few Intel NICs.\nThe reason is that the app didn't set ipv4 header checksum to zero\nbefore passing it to the HW.\n\nFixes: 906257e965b7 (\"examples/ipsec-secgw: support IPv6\")\n\nSigned-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>\n---\n examples/ipsec-secgw/ipsec-secgw.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c\nindex 5d7071657..38933341b 100644\n--- a/examples/ipsec-secgw/ipsec-secgw.c\n+++ b/examples/ipsec-secgw/ipsec-secgw.c\n@@ -331,6 +331,7 @@ prepare_tx_pkt(struct rte_mbuf *pkt, uint16_t port)\n \t\tpkt->l3_len = sizeof(struct ip);\n \t\tpkt->l2_len = ETHER_HDR_LEN;\n \n+\t\tip->ip_sum = 0;\n \t\tethhdr->ether_type = rte_cpu_to_be_16(ETHER_TYPE_IPv4);\n \t} else {\n \t\tpkt->ol_flags |= PKT_TX_IPV6;\n",
    "prefixes": [
        "dpdk-dev"
    ]
}