get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109371,
    "url": "http://patches.dpdk.org/api/patches/109371/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220407105706.18889-20-kevinx.liu@intel.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": "<20220407105706.18889-20-kevinx.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220407105706.18889-20-kevinx.liu@intel.com",
    "date": "2022-04-07T10:56:46",
    "name": "[19/39] net/ice/base: support IPv6 GRE UDP pattern",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0abfaee22ba0d15c3fb67ce1df375ab0ecf09fb8",
    "submitter": {
        "id": 2440,
        "url": "http://patches.dpdk.org/api/people/2440/?format=api",
        "name": "Kevin Liu",
        "email": "kevinx.liu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220407105706.18889-20-kevinx.liu@intel.com/mbox/",
    "series": [
        {
            "id": 22387,
            "url": "http://patches.dpdk.org/api/series/22387/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22387",
            "date": "2022-04-07T10:56:27",
            "name": "support full function of DCF",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22387/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/109371/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/109371/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 93F2CA0508;\n\tThu,  7 Apr 2022 04:59:59 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0663D4289F;\n\tThu,  7 Apr 2022 04:59:12 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 19EA54289F\n for <dev@dpdk.org>; Thu,  7 Apr 2022 04:59:09 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Apr 2022 19:59:09 -0700",
            "from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Apr 2022 19:59:06 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1649300350; x=1680836350;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=DHWQFnnUiYAdYjxquHNla1sbWJGZHOrbQrtmZBWJcr4=;\n b=VaepG7y2qpPKmKWl1sBhRoaEagIZj4FW3nrgQlSO8GZ5JNQkPpQvLxCd\n 5lLXP2IsJLWRLeFD1GJBqhio0SHNdzZDnF13Rj9MAQnACBvfgjkGp1O2H\n civZYsUjIhpIwycYKrF+nwo9vK3mm15ItuDdd3eS8UcmHtNM5gYp0V6me\n otHHLx9EsTN5JDwDwTZsrQtEx/dsqfD45jxadHaEwFVxbS+jwOK/M6jLI\n KADzNe51aa2h9uciPqwxuuVh3UA0LwulwYKXz6n3d+Wgkmv+aUFtovkE3\n F/BfPkKegTZPJz2j1LD7fcEWPdEvhuNkDkmMqr+i5PD9wHNxsKTLYQpcG Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10309\"; a=\"248738398\"",
            "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"248738398\"",
            "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"570850650\""
        ],
        "From": "Kevin Liu <kevinx.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com,\n Alvin Zhang <alvinx.zhang@intel.com>, Junfeng Guo <junfeng.guo@intel.com>,\n Kevin Liu <kevinx.liu@intel.com>",
        "Subject": "[PATCH 19/39] net/ice/base: support IPv6 GRE UDP pattern",
        "Date": "Thu,  7 Apr 2022 10:56:46 +0000",
        "Message-Id": "<20220407105706.18889-20-kevinx.liu@intel.com>",
        "X-Mailer": "git-send-email 2.33.1",
        "In-Reply-To": "<20220407105706.18889-1-kevinx.liu@intel.com>",
        "References": "<20220407105706.18889-1-kevinx.liu@intel.com>",
        "MIME-Version": "1.0",
        "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": "From: Alvin Zhang <alvinx.zhang@intel.com>\n\nAdd supports(trainer packet and it's offsets, definitions,\npattern matching) for IPv6 GRE UDP pattern.\n\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\nSigned-off-by: Alvin Zhang <alvinx.zhang@intel.com>\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n drivers/net/ice/base/ice_protocol_type.h |  1 +\n drivers/net/ice/base/ice_switch.c        | 43 +++++++++++++++++++++++-\n 2 files changed, 43 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_protocol_type.h b/drivers/net/ice/base/ice_protocol_type.h\nindex d6332c5690..eec9f27823 100644\n--- a/drivers/net/ice/base/ice_protocol_type.h\n+++ b/drivers/net/ice/base/ice_protocol_type.h\n@@ -44,6 +44,7 @@ enum ice_protocol_type {\n \tICE_GENEVE,\n \tICE_VXLAN_GPE,\n \tICE_NVGRE,\n+\tICE_GRE,\n \tICE_GTP,\n \tICE_PPPOE,\n \tICE_PFCP,\ndiff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex d9bb1e7c31..e3658117fc 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -12,6 +12,7 @@\n #define ICE_MAX_VLAN_ID\t\t\t0xFFF\n #define ICE_IPV6_ETHER_ID\t\t0x86DD\n #define ICE_IPV4_NVGRE_PROTO_ID\t\t0x002F\n+#define ICE_IPV6_GRE_PROTO_ID\t\t0x002F\n #define ICE_PPP_IPV6_PROTO_ID\t\t0x0057\n #define ICE_TCP_PROTO_ID\t\t0x06\n #define ICE_GTPU_PROFILE\t\t24\n@@ -129,6 +130,34 @@ static const u8 dummy_gre_udp_packet[] = {\n \t0x00, 0x08, 0x00, 0x00,\n };\n \n+static const struct ice_dummy_pkt_offsets\n+dummy_ipv6_gre_udp_packet_offsets[] = {\n+\t{ ICE_MAC_OFOS,         0 },\n+\t{ ICE_ETYPE_OL,         12 },\n+\t{ ICE_IPV6_OFOS,        14 },\n+\t{ ICE_GRE,              54 },\n+\t{ ICE_IPV6_IL,          58 },\n+\t{ ICE_UDP_ILOS,         98 },\n+\t{ ICE_PROTOCOL_LAST,    0 },\n+};\n+\n+static const u8 dummy_ipv6_gre_udp_packet[] = {\n+\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00, 0x86, 0xdd, 0x60, 0x00,\n+\t0x00, 0x00, 0x00, 0x36, 0x2f, 0x40, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,\n+\t0x86, 0xdd, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0a,\n+\t0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a,\n+\t0xff, 0xd8, 0x00, 0x00,\n+};\n+\n static const struct ice_dummy_pkt_offsets dummy_udp_tun_tcp_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL,\t\t12 },\n@@ -8255,8 +8284,13 @@ ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt,\n \t\t\tudp = true;\n \t\telse if (lkups[i].type == ICE_TCP_IL)\n \t\t\ttcp = true;\n-\t\telse if (lkups[i].type == ICE_IPV6_OFOS)\n+\t\telse if (lkups[i].type == ICE_IPV6_OFOS) {\n \t\t\tipv6 = true;\n+\t\t\tif (lkups[i].h_u.ipv6_hdr.next_hdr ==\n+\t\t\t    ICE_IPV6_GRE_PROTO_ID &&\n+\t\t\t    lkups[i].m_u.ipv6_hdr.next_hdr == 0xFF)\n+\t\t\t\tgre = true;\n+\t\t}\n \t\telse if (lkups[i].type == ICE_VLAN_OFOS)\n \t\t\tvlan = true;\n \t\telse if (lkups[i].type == ICE_ETYPE_OL &&\n@@ -8616,6 +8650,13 @@ ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt,\n \t\treturn;\n \t}\n \n+\tif (ipv6 && gre) {\n+\t\t*pkt = dummy_ipv6_gre_udp_packet;\n+\t\t*pkt_len = sizeof(dummy_ipv6_gre_udp_packet);\n+\t\t*offsets = dummy_ipv6_gre_udp_packet_offsets;\n+\t\treturn;\n+\t}\n+\n \tif (tun_type == ICE_SW_TUN_NVGRE || gre) {\n \t\tif (tcp) {\n \t\t\t*pkt = dummy_gre_tcp_packet;\n",
    "prefixes": [
        "19/39"
    ]
}