get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2455,
    "url": "https://patches.dpdk.org/api/patches/2455/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421883395-27235-17-git-send-email-olivier.matz@6wind.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1421883395-27235-17-git-send-email-olivier.matz@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1421883395-27235-17-git-send-email-olivier.matz@6wind.com",
    "date": "2015-01-21T23:36:35",
    "name": "[dpdk-dev,RFC,16/16] testpmd: support ipip tunnel in csum forward engine",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6175ad5187b30fc1f253e4dfc3fbe84bd658ce50",
    "submitter": {
        "id": 8,
        "url": "https://patches.dpdk.org/api/people/8/?format=api",
        "name": "Olivier Matz",
        "email": "olivier.matz@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1421883395-27235-17-git-send-email-olivier.matz@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2455/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2455/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 352345ADF;\n\tThu, 22 Jan 2015 00:37:17 +0100 (CET)",
            "from mail-wi0-f178.google.com (mail-wi0-f178.google.com\n\t[209.85.212.178]) by dpdk.org (Postfix) with ESMTP id DE2F75AD1\n\tfor <dev@dpdk.org>; Thu, 22 Jan 2015 00:37:06 +0100 (CET)",
            "by mail-wi0-f178.google.com with SMTP id em10so26336977wid.5\n\tfor <dev@dpdk.org>; Wed, 21 Jan 2015 15:37:06 -0800 (PST)",
            "from glumotte.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\twa5sm1710761wjc.8.2015.01.21.15.37.05\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 21 Jan 2015 15:37:05 -0800 (PST)"
        ],
        "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:in-reply-to\n\t:references;\n\tbh=bgaTq1gCAfnD26WXXDiXgCEz3hIZGmOZYt/zHQQ5TtQ=;\n\tb=AyuIaKakbXtD0JIIoFQsE7/eh9qnan+MgFpL1U9/2ugaaactLo/Gf3NIrdxpnAkP3H\n\tsi1BDaZmrIBZQSnn5KYh5IXY/7SK4DLLgtUEYpZfV0ywE6mxHnnovfq8MQIXeGknWR8D\n\tgdiWqpi9RoqisZXZr3B1nvcED2r95dEdVgMdoqIEku2ZkU4d4yxuPyEw2y53iJmJW1Ig\n\tQ+HUft+FEz3DMjT+7Kgd12sUmAsRKnzcZkF3DdeiYbnrUxeNfoHFpTno3bkc5Fr6KyxG\n\t3YbdJJEYjRAtyhPcMLz0GufA6XNzBXEIcpv+qKlQ8WZW3S5dBdJpYmhJ+NWFovLiBnSr\n\t909Q==",
        "X-Gm-Message-State": "ALoCoQk1mAp19AcbGDDsrUCiA4i2OSzLFX+sxb2exqh1xtyQIfN9wgs1A0WK9fAN6LDcKOT+IxPx",
        "X-Received": "by 10.180.210.195 with SMTP id mw3mr62720970wic.79.1421883426787;\n\tWed, 21 Jan 2015 15:37:06 -0800 (PST)",
        "From": "Olivier Matz <olivier.matz@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 22 Jan 2015 00:36:35 +0100",
        "Message-Id": "<1421883395-27235-17-git-send-email-olivier.matz@6wind.com>",
        "X-Mailer": "git-send-email 2.1.3",
        "In-Reply-To": "<1421883395-27235-1-git-send-email-olivier.matz@6wind.com>",
        "References": "<1421883395-27235-1-git-send-email-olivier.matz@6wind.com>",
        "Subject": "[dpdk-dev] [RFC 16/16] testpmd: support ipip tunnel in csum forward\n\tengine",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add support for IP over IP tunnels.\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\n---\n app/test-pmd/cmdline.c  |  2 +-\n app/test-pmd/csumonly.c | 40 ++++++++++++++++++++++++++++++++++------\n 2 files changed, 35 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 9304207..b1832e3 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -323,7 +323,7 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\"    ip|udp|tcp|sctp always concern the inner layer.\\n\"\n \t\t\t\"    outer-ip concerns the outer IP layer in\"\n \t\t\t\" case the packet is recognized as a tunnel packet by\"\n-\t\t\t\" the forward engine (vxlan and gre are supported)\\n\"\n+\t\t\t\" the forward engine (vxlan, gre and ipip are supported)\\n\"\n \t\t\t\"    Please check the NIC datasheet for HW limits.\\n\\n\"\n \n \t\t\t\"csum parse-tunnel (on|off) (port_id)\\n\"\ndiff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c\nindex 02c01f6..407e3b3 100644\n--- a/app/test-pmd/csumonly.c\n+++ b/app/test-pmd/csumonly.c\n@@ -278,6 +278,35 @@ parse_gre(struct simple_gre_hdr *gre_hdr, struct testpmd_offload_info *info)\n \tinfo->l2_len += sizeof(struct simple_gre_hdr);\n }\n \n+\n+/* Parse an encapsulated ip or ipv6 header */\n+static void\n+parse_encap_ip(void *encap_ip, struct testpmd_offload_info *info)\n+{\n+\tstruct ipv4_hdr *ipv4_hdr = encap_ip;\n+\tstruct ipv6_hdr *ipv6_hdr = encap_ip;\n+\tuint8_t ip_version;\n+\n+\tip_version = (ipv4_hdr->version_ihl & 0xf0) >> 4;\n+\n+\tif (ip_version != 4 && ip_version != 6)\n+\t\treturn;\n+\n+\tinfo->is_tunnel = 1;\n+\tinfo->outer_ethertype = info->ethertype;\n+\tinfo->outer_l2_len = info->l2_len;\n+\tinfo->outer_l3_len = info->l3_len;\n+\n+\tif (ip_version == 4) {\n+\t\tparse_ipv4(ipv4_hdr, info);\n+\t\tinfo->ethertype = _htons(ETHER_TYPE_IPv4);\n+\t} else {\n+\t\tparse_ipv6(ipv6_hdr, info);\n+\t\tinfo->ethertype = _htons(ETHER_TYPE_IPv6);\n+\t}\n+\tinfo->l2_len = 0;\n+}\n+\n /* modify the IPv4 or IPv4 source address of a packet */\n static void\n change_ip_addresses(void *l3_hdr, uint16_t ethertype)\n@@ -430,6 +459,7 @@ uint16_t testpmd_ol_flags)\n  *           UDP|TCP|SCTP\n  *   Ether / (vlan) / outer IP|IP6 / GRE / Ether / IP|IP6 / UDP|TCP|SCTP\n  *   Ether / (vlan) / outer IP|IP6 / GRE / IP|IP6 / UDP|TCP|SCTP\n+ *   Ether / (vlan) / outer IP|IP6 / IP|IP6 / UDP|TCP|SCTP\n  *\n  * The testpmd command line for this forward engine sets the flags\n  * TESTPMD_TX_OFFLOAD_* in ports[tx_port].tx_ol_flags. They control\n@@ -511,14 +541,12 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)\n \t\t\t\tgre_hdr = (struct simple_gre_hdr *)\n \t\t\t\t\t((char *)l3_hdr + info.l3_len);\n \t\t\t\tparse_gre(gre_hdr, &info);\n+\t\t\t} else if (info.l4_proto == IPPROTO_IPIP) {\n+\t\t\t\tvoid *encap_ip_hdr;\n+\t\t\t\tencap_ip_hdr = (char *)l3_hdr + info.l3_len;\n+\t\t\t\tparse_encap_ip(encap_ip_hdr, &info);\n \t\t\t}\n \t\t}\n-\t\t\tinfo.l4_proto == IPPROTO_GRE) {\n-\t\t\tstruct simple_gre_hdr *gre_hdr;\n-\t\t\tgre_hdr = (struct simple_gre_hdr *)((char *)l3_hdr +\n-\t\t\t\tinfo.l3_len);\n-\t\t\tparse_gre(gre_hdr, &info);\n-\t\t}\n \n \t\t/* update l3_hdr and outer_l3_hdr if a tunnel was parsed */\n \t\tif (info.is_tunnel) {\n",
    "prefixes": [
        "dpdk-dev",
        "RFC",
        "16/16"
    ]
}