Show a patch.

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

{
    "id": 41914,
    "url": "http://patches.dpdk.org/api/patches/41914/?format=api",
    "web_url": "http://patches.dpdk.org/patch/41914/",
    "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"
    },
    "msgid": "<20180629092944.15576-2-johndale@cisco.com>",
    "date": "2018-06-29T09:29:30",
    "name": "[v2,01/15] net/enic: fix receive packet types",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "636ef4c0ddde4c0867245c837461c3ac04a2af73",
    "submitter": {
        "id": 359,
        "url": "http://patches.dpdk.org/api/people/359/?format=api",
        "name": "John Daley",
        "email": "johndale@cisco.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/41914/mbox/",
    "series": [
        {
            "id": 308,
            "url": "http://patches.dpdk.org/api/series/308/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=308",
            "date": "2018-06-29T09:29:29",
            "name": "enic PMD fixes and performance improvements",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/308/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41914/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41914/checks/",
    "tags": {},
    "headers": {
        "X-Mailer": "git-send-email 2.16.2",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "From": "John Daley <johndale@cisco.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n\td=cisco.com; i=@cisco.com; l=5017; q=dns/txt; s=iport;\n\tt=1530264615; x=1531474215;\n\th=from:to:cc:subject:date:message-id:in-reply-to: references;\n\tbh=O0xQ1KIW7tf89iFJN6xSXoeXUfowAmf7Lclg714LVoE=;\n\tb=Zp0CBiiC3y5sQSkUI5Hdvx4XpMERsYR+ItCuW0vmoExMZrwF2tGYlv1U\n\tRhSWobOAQWcvpZjGKsuXIAmM61u23ceFKIZ1wVm9QkNKBIWUQzlMiJEM6\n\tSktTO0KDVwb2dy29BJeCoOt6J0KYL4yTVGIDFbC7SM44zagXlWWlYK8+5 0=;",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "dev@dpdk.org, Hyong Youb Kim <hyonkim@cisco.com>",
        "To": "ferruh.yigit@intel.com",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<20180628031940.17397-1-johndale@cisco.com>\n\t<20180629092944.15576-1-johndale@cisco.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,285,1526342400\"; d=\"scan'208\";a=\"135905434\"",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 042D71B04D;\n\tFri, 29 Jun 2018 11:30:17 +0200 (CEST)",
            "from alln-iport-8.cisco.com (alln-iport-8.cisco.com\n\t[173.37.142.95]) by dpdk.org (Postfix) with ESMTP id 643F51B027\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 11:30:15 +0200 (CEST)",
            "from rcdn-core-10.cisco.com ([173.37.93.146])\n\tby alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t29 Jun 2018 09:30:14 +0000",
            "from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48])\n\tby rcdn-core-10.cisco.com (8.14.5/8.14.5) with ESMTP id\n\tw5T9UE8I005035; Fri, 29 Jun 2018 09:30:14 GMT",
            "by cisco.com (Postfix, from userid 392789)\n\tid 3B4E720F2001; Fri, 29 Jun 2018 02:30:14 -0700 (PDT)"
        ],
        "Date": "Fri, 29 Jun 2018 02:29:30 -0700",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v2 01/15] net/enic: fix receive packet types",
        "In-Reply-To": "<20180629092944.15576-1-johndale@cisco.com>",
        "Message-Id": "<20180629092944.15576-2-johndale@cisco.com>",
        "Precedence": "list",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Original-To": "patchwork@dpdk.org"
    },
    "content": "From: Hyong Youb Kim <hyonkim@cisco.com>\n\nFix missing or incorrect packet types discovered by DTS.\n- Non-IP inner packets\n  Set the tunnel flag.\n- Inner Ethernet packets\n  All supported tunnel packets have Ethernet as inner packets. So, set\n  INNER_L2_ETHER for all tunnel types.\n- IPv4 fragments carrying TCP/UDP\n  The NIC indicates TCP/UDP based on the protocol in IP header. For\n  fragments, ignore that bit and always set L4_FRAG.\n- IPv6 fragments\n  The NIC does regconize fragments (IPv6 packets with fragment extension\n  headers). Set packet types for these.\n\nFixes: 93fb21fdbe23 (\"net/enic: enable overlay offload for VXLAN and GENEVE\")\n\nSigned-off-by: Hyong Youb Kim <hyonkim@cisco.com>\nReviewed-by: John Daley <johndale@cisco.com>\n---\n drivers/net/enic/enic_rxtx.c | 42 ++++++++++++++++++++++++++++++++++++------\n 1 file changed, 36 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/net/enic/enic_rxtx.c b/drivers/net/enic/enic_rxtx.c\nindex 8853a2044..bbb0444ad 100644\n--- a/drivers/net/enic/enic_rxtx.c\n+++ b/drivers/net/enic/enic_rxtx.c\n@@ -137,51 +137,81 @@ enic_cq_rx_flags_to_pkt_type(struct cq_desc *cqd, uint8_t tnl)\n \t */\n \tstatic const uint32_t cq_type_table[128] __rte_cache_aligned = {\n \t\t[0x00] = RTE_PTYPE_UNKNOWN,\n+\t\t[0x01] = RTE_PTYPE_UNKNOWN |\n+\t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER,\n \t\t[0x20] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_NONFRAG,\n \t\t[0x21] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_NONFRAG |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |\n \t\t\t RTE_PTYPE_INNER_L4_NONFRAG,\n \t\t[0x22] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_UDP,\n \t\t[0x23] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_UDP |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |\n \t\t\t RTE_PTYPE_INNER_L4_UDP,\n \t\t[0x24] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_TCP,\n \t\t[0x25] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_TCP |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |\n \t\t\t RTE_PTYPE_INNER_L4_TCP,\n \t\t[0x60] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG,\n \t\t[0x61] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |\n \t\t\t RTE_PTYPE_INNER_L4_FRAG,\n-\t\t[0x62] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_UDP,\n-\t\t[0x63] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_UDP |\n+\t\t[0x62] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG,\n+\t\t[0x63] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |\n-\t\t\t RTE_PTYPE_INNER_L4_UDP,\n-\t\t[0x64] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_TCP,\n-\t\t[0x65] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_TCP |\n+\t\t\t RTE_PTYPE_INNER_L4_FRAG,\n+\t\t[0x64] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG,\n+\t\t[0x65] = RTE_PTYPE_L3_IPV4_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN |\n-\t\t\t RTE_PTYPE_INNER_L4_TCP,\n+\t\t\t RTE_PTYPE_INNER_L4_FRAG,\n \t\t[0x10] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_NONFRAG,\n \t\t[0x11] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_NONFRAG |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |\n \t\t\t RTE_PTYPE_INNER_L4_NONFRAG,\n \t\t[0x12] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_UDP,\n \t\t[0x13] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_UDP |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |\n \t\t\t RTE_PTYPE_INNER_L4_UDP,\n \t\t[0x14] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_TCP,\n \t\t[0x15] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_TCP |\n \t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n \t\t\t RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |\n \t\t\t RTE_PTYPE_INNER_L4_TCP,\n+\t\t[0x50] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG,\n+\t\t[0x51] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG |\n+\t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n+\t\t\t RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |\n+\t\t\t RTE_PTYPE_INNER_L4_FRAG,\n+\t\t[0x52] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG,\n+\t\t[0x53] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG |\n+\t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n+\t\t\t RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |\n+\t\t\t RTE_PTYPE_INNER_L4_FRAG,\n+\t\t[0x54] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG,\n+\t\t[0x55] = RTE_PTYPE_L3_IPV6_EXT_UNKNOWN | RTE_PTYPE_L4_FRAG |\n+\t\t\t RTE_PTYPE_TUNNEL_GRENAT |\n+\t\t\t RTE_PTYPE_INNER_L2_ETHER |\n+\t\t\t RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |\n+\t\t\t RTE_PTYPE_INNER_L4_FRAG,\n \t\t/* All others reserved */\n \t};\n \tcqrd_flags &= CQ_ENET_RQ_DESC_FLAGS_IPV4_FRAGMENT\n",
    "prefixes": [
        "v2",
        "01/15"
    ]
}