get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 113387,
    "url": "https://patches.dpdk.org/api/patches/113387/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20220624053130.2832024-1-weix.ling@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": "<20220624053130.2832024-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220624053130.2832024-1-weix.ling@intel.com",
    "date": "2022-06-24T05:31:30",
    "name": "[V1,2/6] tests/dpdk_gro_lib: delete modify dpdk code by dpdk change",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4550fe18382b0e952c0eb339852828d77a9ce575",
    "submitter": {
        "id": 1828,
        "url": "https://patches.dpdk.org/api/people/1828/?format=api",
        "name": "Ling, WeiX",
        "email": "weix.ling@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20220624053130.2832024-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 23746,
            "url": "https://patches.dpdk.org/api/series/23746/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=23746",
            "date": "2022-06-24T05:31:09",
            "name": "delete modify dpdk code by dpdk change",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/23746/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/113387/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/113387/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 9D109A0032;\n\tFri, 24 Jun 2022 07:34:07 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9972A427EC;\n\tFri, 24 Jun 2022 07:34:07 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id F189940A82\n for <dts@dpdk.org>; Fri, 24 Jun 2022 07:34:05 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Jun 2022 22:34:04 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.222])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Jun 2022 22:34:03 -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=1656048846; x=1687584846;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=dNBlsAROj3OcFKAiDWP1GD0t8CluuwScBlGcLa4grOA=;\n b=oJ8MOuOW1llwVwd+vwvUw0aXqRqtxKk0vGkG3yNxqOQlIrvSepk3JnXU\n 7gVdorsPqsSP14ti8YOgTCn0UchrLWIOGxBnlpwZa+dmcD2Ou+9ynOYhu\n q0bnRoDjiIWlJLH25/ppQid9OV5ccobypgMTkvzQdbQTnU/plh7vmemzb\n mPTdQVrFvstp0FcG8yCsa84/fgAikP2MDqWawg0d0zjP6S5js0c1soSya\n ohUQP9lrNzQrblbMxaw5mmWh3CmINX8o0YqTnm5e31lukE8dIvlJ09fq2\n T6vL6VTJch/EyG1vTEvaNLSdgw7yQsg+3d65QlFa/Cs8aKZf0MyD+arAf g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10387\"; a=\"263964848\"",
            "E=Sophos;i=\"5.92,218,1650956400\"; d=\"scan'208\";a=\"263964848\"",
            "E=Sophos;i=\"5.92,218,1650956400\"; d=\"scan'208\";a=\"645115587\""
        ],
        "From": "Wei Ling <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Wei Ling <weix.ling@intel.com>",
        "Subject": "[dts][PATCH V1 2/6] tests/dpdk_gro_lib: delete modify dpdk code by\n dpdk change",
        "Date": "Fri, 24 Jun 2022 01:31:30 -0400",
        "Message-Id": "<20220624053130.2832024-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "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": "According to the dpdk commit 1945c64674(app/testpmd: perform SW IP\nchecksum for GRO/GSO packets) and commit 8ba1723783(net/vhost:\nperform SW checksum in Tx path), no need to modify DPDK code to test.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n tests/TestSuite_dpdk_gro_lib.py | 59 ---------------------------------\n 1 file changed, 59 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py\nindex f00dc054..87da392b 100644\n--- a/tests/TestSuite_dpdk_gro_lib.py\n+++ b/tests/TestSuite_dpdk_gro_lib.py\n@@ -75,7 +75,6 @@ class TestDPDKGROLib(TestCase):\n             self.socket_mem = \"1024\"\n         else:\n             self.socket_mem = \"1024,1024\"\n-        self.prepare_dpdk()\n         self.base_dir = self.dut.base_dir.replace(\"~\", \"/root\")\n         self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])\n \n@@ -183,63 +182,6 @@ class TestDPDKGROLib(TestCase):\n             )\n             self.dut.send_expect(\"ip netns exec ns1 ip link set up dev vxlan1\", \"#\")\n \n-    def prepare_dpdk(self):\n-        #\n-        # Changhe the testpmd checksum fwd code for mac change\n-        self.dut.send_expect(\n-            \"cp ./app/test-pmd/csumonly.c ./app/test-pmd/csumonly_backup.c\", \"#\"\n-        )\n-        self.dut.send_expect(\n-            \"cp ./drivers/net/vhost/rte_eth_vhost.c ./drivers/net/vhost/rte_eth_vhost-backup.c\",\n-            \"#\",\n-        )\n-        self.dut.send_expect(\n-            \"sed -i '/ether_addr_copy(&peer_eth/i\\#if 0' ./app/test-pmd/csumonly.c\", \"#\"\n-        )\n-        self.dut.send_expect(\n-            \"sed -i '/parse_ethernet(eth_hdr, &info/i\\#endif' ./app/test-pmd/csumonly.c\",\n-            \"#\",\n-        )\n-        # change offload of vhost\n-        tx_offload = (\n-            \"DEV_TX_OFFLOAD_VLAN_INSERT | \"\n-            + \"DEV_TX_OFFLOAD_UDP_CKSUM | \"\n-            + \"DEV_TX_OFFLOAD_TCP_CKSUM | \"\n-            + \"DEV_TX_OFFLOAD_IPV4_CKSUM | \"\n-            + \"DEV_TX_OFFLOAD_TCP_TSO;\"\n-        )\n-        rx_offload = (\n-            \"DEV_RX_OFFLOAD_VLAN_STRIP | \"\n-            + \"DEV_RX_OFFLOAD_TCP_CKSUM | \"\n-            + \"DEV_RX_OFFLOAD_UDP_CKSUM | \"\n-            + \"DEV_RX_OFFLOAD_IPV4_CKSUM | \"\n-            + \"DEV_RX_OFFLOAD_TCP_LRO;\"\n-        )\n-        self.dut.send_expect(\n-            \"sed -i 's/DEV_TX_OFFLOAD_VLAN_INSERT;/%s/' drivers/net/vhost/rte_eth_vhost.c\"\n-            % tx_offload,\n-            \"#\",\n-        )\n-        self.dut.send_expect(\n-            \"sed -i 's/DEV_RX_OFFLOAD_VLAN_STRIP;/%s/' drivers/net/vhost/rte_eth_vhost.c\"\n-            % rx_offload,\n-            \"#\",\n-        )\n-        self.dut.build_install_dpdk(self.dut.target)\n-\n-    def unprepare_dpdk(self):\n-        # Recovery the DPDK code to original\n-        self.dut.send_expect(\n-            \"cp ./app/test-pmd/csumonly_backup.c ./app/test-pmd/csumonly.c \", \"#\"\n-        )\n-        self.dut.send_expect(\n-            \"cp ./drivers/net/vhost/rte_eth_vhost-backup.c ./drivers/net/vhost/rte_eth_vhost.c \",\n-            \"#\",\n-        )\n-        self.dut.send_expect(\"rm -rf ./app/test-pmd/csumonly_backup.c\", \"#\")\n-        self.dut.send_expect(\"rm -rf ./drivers/net/vhost/rte_eth_vhost-backup.c\", \"#\")\n-        self.dut.build_install_dpdk(self.dut.target)\n-\n     def set_vm_cpu_number(self, vm_config):\n         # config the vcpu numbers = 1\n         # config the cpupin only have one core\n@@ -485,7 +427,6 @@ class TestDPDKGROLib(TestCase):\n         for i in self.dut_ports:\n             port = self.dut.ports_info[i][\"port\"]\n             port.bind_driver(self.def_driver)\n-        self.unprepare_dpdk()\n         self.dut.send_expect(\"ip netns del ns1\", \"# \", 30)\n         self.dut.send_expect(\"./usertools/dpdk-devbind.py -u %s\" % (self.pci), \"# \", 30)\n         self.dut.send_expect(\n",
    "prefixes": [
        "V1",
        "2/6"
    ]
}