get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129508,
    "url": "http://patchwork.dpdk.org/api/patches/129508/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/20230712193126.1994361-2-ke1.xu@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230712193126.1994361-2-ke1.xu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230712193126.1994361-2-ke1.xu@intel.com",
    "date": "2023-07-12T19:31:23",
    "name": "[V1,1/4] framework/packet: Add GTPU and GENEVE support for packet module.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d7a0be3a746416ea1405d41067d9695900d30b97",
    "submitter": {
        "id": 2810,
        "url": "http://patchwork.dpdk.org/api/people/2810/?format=api",
        "name": "Ke Xu",
        "email": "ke1.xu@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/20230712193126.1994361-2-ke1.xu@intel.com/mbox/",
    "series": [
        {
            "id": 28925,
            "url": "http://patchwork.dpdk.org/api/series/28925/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=28925",
            "date": "2023-07-12T19:31:22",
            "name": "Updating packet module and introducing a new common module.",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/28925/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/129508/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/129508/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-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 578F942E58;\n\tWed, 12 Jul 2023 21:33:21 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0456741138;\n\tWed, 12 Jul 2023 21:33:21 +0200 (CEST)",
            "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 2B7F1400D5\n for <dts@dpdk.org>; Wed, 12 Jul 2023 21:33:19 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jul 2023 12:33:19 -0700",
            "from dpdk-xuke-host.sh.intel.com ([10.67.114.220])\n by fmsmga004.fm.intel.com with ESMTP; 12 Jul 2023 12:33:18 -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=1689190400; x=1720726400;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=I5p6Wo0nRu313PX/tKxlQNLQHwfepKXW8HDya3RqKJc=;\n b=mCN2jv2nWqo0MCqRxcqf/hvSNCI/Qh9H5L5fbWJz87VK87yqWDPDfNwG\n H7zKyfijws6S5Xtmy7Bst1+/Kc/K4h1/DOiNQI80+hLwiS6IYFAxKQIpA\n XdsjI3ctq7u4c3PbrPt3aTU7u9yaVoTBFGcTD2Heppnm1oK0g01GJo9sx\n pLlc5Yj9pWtvkeoWANv/iYWLFB5FE9P15AANDAQU2KobRHjVp9tk+VnMY\n 3dXGi5M9pLGLkxqlvIGRU8ETlCSnUNLL5V+j8EclPLKOqSof7IbaRGKcN\n tU7cowSgfXtMo+Ad6PJOdb8r4snL4PEWsvZhzWk7PkKLZTuKsiWAxSZ8q w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10769\"; a=\"428728886\"",
            "E=Sophos;i=\"6.01,200,1684825200\"; d=\"scan'208\";a=\"428728886\"",
            "E=McAfee;i=\"6600,9927,10769\"; a=\"791740096\"",
            "E=Sophos;i=\"6.01,200,1684825200\"; d=\"scan'208\";a=\"791740096\""
        ],
        "X-ExtLoop1": "1",
        "From": "Ke Xu <ke1.xu@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "ke1.xu@intel.com,\n\ttarcadia@qq.com",
        "Subject": "[DTS][Patch V1 1/4] framework/packet: Add GTPU and GENEVE support for\n packet module.",
        "Date": "Wed, 12 Jul 2023 19:31:23 +0000",
        "Message-Id": "<20230712193126.1994361-2-ke1.xu@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20230712193126.1994361-1-ke1.xu@intel.com>",
        "References": "<20230712193126.1994361-1-ke1.xu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "Partially implemented GTPU and GENEVE layer in packet. Allowing limited usage of GTPU and GENEVE packets.\n\nSigned-off-by: Ke Xu <ke1.xu@intel.com>\n---\n framework/packet.py | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/framework/packet.py b/framework/packet.py\nindex 2c16e7cb..c44c955f 100644\n--- a/framework/packet.py\n+++ b/framework/packet.py\n@@ -17,6 +17,8 @@ import time\n from importlib import import_module\n from socket import AF_INET6\n \n+from scapy.contrib.geneve import GENEVE\n+from scapy.contrib.gtp import GTP_U_Header, GTPPDUSessionContainer\n from scapy.contrib.lldp import LLDPDU, LLDPDUManagementAddress\n from scapy.contrib.mpls import MPLS\n from scapy.contrib.nsh import NSH\n@@ -51,6 +53,7 @@ scapy_modules_required = {\n         \"GTPEchoRequest\",\n         \"GTPEchoResponse\",\n     ],\n+    \"scapy.contrib.geneve\": [\"GENEVE\"],\n     \"scapy.contrib.lldp\": [\"LLDPDU\", \"LLDPDUManagementAddress\"],\n     \"scapy.contrib.pfcp\": [\"PFCP\"],\n     \"scapy.contrib.nsh\": [\"NSH\"],\n@@ -90,7 +93,7 @@ LayersTypes = {\n     # <'ether type'=0x0800 'version'=4, 'protocol'=17 'destination port'=4789>\n     # or\n     # <'ether type'=0x86DD 'version'=6, 'next header'=17 'destination port'=4789>\n-    \"TUNNEL\": [\"ip\", \"gre\", \"vxlan\", \"nvgre\", \"geneve\", \"grenat\"],\n+    \"TUNNEL\": [\"ip\", \"gre\", \"vxlan\", \"nvgre\", \"gtpu\", \"geneve\", \"grenat\"],\n     \"INNER L2\": [\"inner_mac\", \"inner_vlan\"],\n     # inner_ipv4_unknown, inner_ipv6_unknown\n     \"INNER L3\": [\"inner_ipv4\", \"inner_ipv4_ext\", \"inner_ipv6\", \"inner_ipv6_ext\"],\n@@ -167,7 +170,8 @@ class scapy(object):\n         \"ipv6_in_ip\": IP() / IPv6(src=\"::1\"),\n         \"ipv6_frag_in_ip\": IP() / IPv6(src=\"::1\", nh=44) / IPv6ExtHdrFragment(),\n         \"nvgre\": GRE(key_present=1, proto=0x6558, key=0x00000100),\n-        \"geneve\": \"Not Implement\",\n+        \"gtpu\": GTP_U_Header(gtp_type=255, teid=0x123456),\n+        \"geneve\": GENEVE(),\n     }\n \n     def __init__(self):\n",
    "prefixes": [
        "V1",
        "1/4"
    ]
}