get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 103008,
    "url": "https://patches.dpdk.org/api/patches/103008/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20211027115814.29470-1-pingx.zou@intel.com/",
    "project": {
        "id": 3,
        "url": "https://patches.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": "<20211027115814.29470-1-pingx.zou@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20211027115814.29470-1-pingx.zou@intel.com",
    "date": "2021-10-27T11:58:13",
    "name": "[V2,1/2] tests/cvl_switch_filter_pppoe: change ppp port to bytes type",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "30ddbe2c6fdc34cc04e7b54794d31328c98e394e",
    "submitter": {
        "id": 2377,
        "url": "https://patches.dpdk.org/api/people/2377/?format=api",
        "name": "Zou Ping",
        "email": "pingx.zou@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20211027115814.29470-1-pingx.zou@intel.com/mbox/",
    "series": [
        {
            "id": 20030,
            "url": "https://patches.dpdk.org/api/series/20030/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=20030",
            "date": "2021-10-27T11:58:13",
            "name": "[V2,1/2] tests/cvl_switch_filter_pppoe: change ppp port to bytes type",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/20030/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/103008/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/103008/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 64C5FA0547;\n\tWed, 27 Oct 2021 05:28:32 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 38FD1410F1;\n\tWed, 27 Oct 2021 05:28:32 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id CAE2D40E0F\n for <dts@dpdk.org>; Wed, 27 Oct 2021 05:28:29 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Oct 2021 20:28:28 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.103])\n by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 Oct 2021 20:28:27 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10149\"; a=\"230013459\"",
            "E=Sophos;i=\"5.87,184,1631602800\"; d=\"scan'208\";a=\"230013459\"",
            "E=Sophos;i=\"5.87,184,1631602800\"; d=\"scan'208\";a=\"635506335\""
        ],
        "From": "Zou Ping <pingx.zou@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zou Ping <pingx.zou@intel.com>",
        "Date": "Wed, 27 Oct 2021 19:58:13 +0800",
        "Message-Id": "<20211027115814.29470-1-pingx.zou@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V2 1/2] tests/cvl_switch_filter_pppoe: change ppp port\n to bytes type",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "scapy will ignore 00,so scapy send one byte,but dpdk only recognize two bytes.\n\nSigned-off-by: Zou Ping <pingx.zou@intel.com>\n---\n tests/TestSuite_cvl_switch_filter_pppoe.py | 32 +++++++++++-----------\n 1 file changed, 16 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_cvl_switch_filter_pppoe.py b/tests/TestSuite_cvl_switch_filter_pppoe.py\nindex a8058f94..9a032b10 100644\n--- a/tests/TestSuite_cvl_switch_filter_pppoe.py\n+++ b/tests/TestSuite_cvl_switch_filter_pppoe.py\n@@ -112,9 +112,9 @@ tvs_ethertype_filter_pppoes = [\n #ipv4/ipv6 + udp/tcp pipeline mode\n mac_pppoes_ipv4_udp_l4_mask_scapy_str = {\n     \"matched\": [\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=2304,dport=23)/Raw(\"x\"*80)'],\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=2304,dport=23)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=2244,dport=23)/Raw(\"x\"*80)'\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=2244,dport=23)/Raw(\"x\"*80)'\n     ]\n }\n \n@@ -136,9 +136,9 @@ tv_mac_pppoes_ipv4_udp_l4_mask_in_queue_01 = {\n \n mac_pppoes_ipv4_tcp_l4_mask_scapy_str = {\n     \"matched\": [\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=2304,dport=23)/Raw(\"x\"*80)'],\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=2304,dport=23)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=2244,dport=23)/Raw(\"x\"*80)'\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=2244,dport=23)/Raw(\"x\"*80)'\n     ]\n }\n \n@@ -160,9 +160,9 @@ tv_mac_pppoes_ipv4_tcp_l4_mask_in_queue_02 = {\n \n mac_pppoes_ipv6_udp_l4_mask_scapy_str = {\n     \"matched\":[\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=1282)/Raw(\"x\"*80)'],\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=1282)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=1040)/Raw(\"x\"*80)'\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=25,dport=1040)/Raw(\"x\"*80)'\n     ]\n }\n \n@@ -184,9 +184,9 @@ tv_mac_pppoes_ipv6_udp_l4_mask_queue_region_03 = {\n \n mac_pppoes_ipv6_tcp_l4_mask_scapy_str = {\n     \"matched\":[\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=1282)/Raw(\"x\"*80)'],\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=1282)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=1040)/Raw(\"x\"*80)'\n+        'Ether()/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(sport=25,dport=1040)/Raw(\"x\"*80)'\n     ]\n }\n \n@@ -217,9 +217,9 @@ tvs_mac_pppoes_l4_mask = [\n \n mac_vlan_pppoes_ipv4_udp_l4_mask_scapy_str = {\n     \"matched\": [\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=50,dport=1024)/Raw(\"x\"*80)'],\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=50,dport=1024)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=50,dport=1281)/Raw(\"x\"*80)'\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/UDP(sport=50,dport=1281)/Raw(\"x\"*80)'\n     ]\n }\n \n@@ -241,9 +241,9 @@ tv_mac_vlan_pppoes_ipv4_udp_l4_mask_in_queue_01 = {\n \n mac_vlan_pppoes_ipv4_tcp_l4_mask_scapy_str = {\n     \"matched\": [\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=50,dport=1024)/Raw(\"x\"*80)'],\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=50,dport=1024)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=50,dport=1281)/Raw(\"x\"*80)'\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x21\\')/IP(src=\"192.168.1.1\", dst=\"192.168.1.2\")/TCP(sport=50,dport=1281)/Raw(\"x\"*80)'\n     ]\n }\n \n@@ -266,9 +266,9 @@ tv_mac_vlan_pppoes_ipv4_tcp_l4_mask_queue_region_02 = {\n #vlan pipeline mode\n mac_vlan_pppoes_ipv6_udp_l4_mask_scapy_str = {\n     \"matched\":[\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=16,dport=23)/Raw(\"x\"*80)'],\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=16,dport=23)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=17,dport=23)/Raw(\"x\"*80)'\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/UDP(sport=17,dport=23)/Raw(\"x\"*80)'\n     ]\n }\n \n@@ -290,9 +290,9 @@ tv_mac_vlan_pppoes_ipv6_udp_l4_mask_drop_03 = {\n \n mac_vlan_pppoes_ipv6_tcp_l4_mask_scapy_str = {\n     \"matched\": [\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(dport=16)/Raw(\"x\"*80)'],\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(dport=16)/Raw(\"x\"*80)'],\n     \"mismatched\": [\n-        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(dport=17)/Raw(\"x\"*80)'\n+        'Ether()/Dot1Q(vlan=1,type=0x8864)/PPPoE(sessionid=3)/PPP(b\\'\\\\x00\\\\x57\\')/IPv6(src=\"CDCD:910A:2222:5498:8475:1111:3900:1536\", dst=\"CDCD:910A:2222:5498:8475:1111:3900:2022\")/TCP(dport=17)/Raw(\"x\"*80)'\n     ]\n }\n \n",
    "prefixes": [
        "V2",
        "1/2"
    ]
}