get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 121147,
    "url": "http://patches.dpdk.org/api/patches/121147/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20221221050607.21526-1-linglix.chen@intel.com/",
    "project": {
        "id": 3,
        "url": "http://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": "<20221221050607.21526-1-linglix.chen@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20221221050607.21526-1-linglix.chen@intel.com",
    "date": "2022-12-21T05:06:07",
    "name": "[V1] test_plans/tso: update testplan, map the test case command",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "68590ccb2dc0724e28b5d0c61052eece577982f8",
    "submitter": {
        "id": 1843,
        "url": "http://patches.dpdk.org/api/people/1843/?format=api",
        "name": "Lingli Chen",
        "email": "linglix.chen@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20221221050607.21526-1-linglix.chen@intel.com/mbox/",
    "series": [
        {
            "id": 26205,
            "url": "http://patches.dpdk.org/api/series/26205/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=26205",
            "date": "2022-12-21T05:06:07",
            "name": "[V1] test_plans/tso: update testplan, map the test case command",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/26205/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/121147/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/121147/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 4ED1FA0032;\n\tWed, 21 Dec 2022 07:04:01 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 49EAD4113F;\n\tWed, 21 Dec 2022 07:04:01 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 2D6D140684\n for <dts@dpdk.org>; Wed, 21 Dec 2022 07:03:59 +0100 (CET)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Dec 2022 22:03:58 -0800",
            "from unknown (HELO localhost.localdomain) ([10.239.252.99])\n by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Dec 2022 22:03:56 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1671602639; x=1703138639;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=90pIrPh6GPGXH/rcFVvwB+o7XGxVPaUcHhAK9MZb8Zg=;\n b=UelnJjW+x7X9A87g05wMzLsgGYA6EqmHY7REjRa4yh8xn9OO0ulgglrK\n jy+X3i3Vw8rX5UPMfUqTIq05fQTcw4YmbSzsj3LI+RSb/OJcGxhflpFm+\n OY06+TdIa/rOI+HDYKwITtQ1+KekDHL8ykJq1xsfVEeRrvfjQ/ev/20Cz\n tTOz/hqCOyjSGG9yNfIK4B0iSWM62HEzANcAsO0cUwQndOY2XZCfBOTFZ\n SVMNJ7ga2WBRTLEXj6X//isVfimbWMKbGcpAmZhYtGS7uZzyRYWSW4Phj\n EuKMKRqqMbbzCyno5hMK+9JWgs+ToJttVptjPex5f4GkTK4VMGaIuRUBi g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10567\"; a=\"299470292\"",
            "E=Sophos;i=\"5.96,261,1665471600\"; d=\"scan'208\";a=\"299470292\"",
            "E=McAfee;i=\"6500,9779,10567\"; a=\"653381988\"",
            "E=Sophos;i=\"5.96,261,1665471600\"; d=\"scan'208\";a=\"653381988\""
        ],
        "From": "Lingli Chen <linglix.chen@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "zhiminx.huang@intel.com,\n\tLingli Chen <linglix.chen@intel.com>",
        "Subject": "[dts][PATCH V1] test_plans/tso: update testplan,\n map the test case command",
        "Date": "Wed, 21 Dec 2022 00:06:07 -0500",
        "Message-Id": "<20221221050607.21526-1-linglix.chen@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=y",
        "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": "delete tx_checksum command, mapping the test case.\n\nSigned-off-by: Lingli Chen <linglix.chen@intel.com>\n---\n test_plans/tso_test_plan.rst | 61 ++++++++++++++++++++++++++----------\n tests/TestSuite_tso.py       | 18 ++---------\n 2 files changed, 46 insertions(+), 33 deletions(-)",
    "diff": "diff --git a/test_plans/tso_test_plan.rst b/test_plans/tso_test_plan.rst\nindex a17f8ac5..e5122bb9 100644\n--- a/test_plans/tso_test_plan.rst\n+++ b/test_plans/tso_test_plan.rst\n@@ -29,6 +29,7 @@ device that is controlled by the Scapy packet generator.\n The Ethernet interface identifier of the port that Scapy will use must be known.\n On tester, all offload feature should be disabled on tx port, and start rx port capture::\n \n+  ifconfig <tx port> mtu 9000\n   ethtool -K <tx port> rx off tx off tso off gso off gro off lro off\n   ip l set <tx port> up\n   tcpdump -n -e -i <rx port> -s 0 -w /tmp/cap\n@@ -38,10 +39,10 @@ On DUT, run pmd with parameter \"--enable-rx-cksum\". Then enable TSO on tx port\n and checksum on rx port. The test commands is below::\n \n   #enable hw checksum on rx port\n-  tx_checksum set ip hw 0\n-  tx_checksum set udp hw 0\n-  tx_checksum set tcp hw 0\n-  tx_checksum set sctp hw 0\n+  csum set ip hw 0\n+  csum set udp hw 0\n+  csum set tcp hw 0\n+  csum set sctp hw 0\n   set fwd csum\n \n   # enable TSO on tx port\n@@ -70,16 +71,21 @@ Launch the userland ``testpmd`` application on DUT as follows::\n    --burst=32 --rxfreet=64 --mbcache=128 --portmask=0x3 --txpt=36 --txht=0 --txwt=0\n    --txfreet=32 --txrst=32 --enable-rx-cksum\n      testpmd> set verbose 1\n-\n+     # should stop ports before set csum and start ports after the settings\n+     testpmd> port stop all\n    # enable hw checksum on rx port\n-   testpmd> tx_checksum set ip hw 0\n-   testpmd> tx_checksum set udp hw 0\n-   testpmd> tx_checksum set tcp hw 0\n-   testpmd> tx_checksum set sctp hw 0\n+   testpmd> csum set ip hw 0\n+   testpmd> csum set udp hw 0\n+   testpmd> csum set tcp hw 0\n+   testpmd> csum set sctp hw 0\n+   testpmd> csum set outer-ip hw 0\n+   testpmd> csum parse-tunnel on 0\n    # enable TSO on tx port\n    testpmd> tso set 800 1\n    # set fwd engine and start\n    testpmd> set fwd csum\n+   testpmd> port start all\n+   testpmd> set promisc all off\n    testpmd> start\n \n Test IPv4() in scapy::\n@@ -92,6 +98,7 @@ Test IPv6() in scapy::\n \n Test case: csum fwd engine, use TSO tunneling\n =============================================\n+not support nic: IXGBE_10G-82599_SFP, IGC-I225_LM, IGC-I226_LM.\n \n This test uses ``Scapy`` to send out one large TCP package. The dut forwards package\n with TSO enable on tx port while rx port turns checksum on. After package send out\n@@ -113,17 +120,37 @@ Launch the userland ``testpmd`` application on DUT as follows::\n    --txfreet=32 --txrst=32 --enable-rx-cksum\n      testpmd> set verbose 1\n \n+     testpmd> port stop all\n    # enable hw checksum on rx port\n-   testpmd> tx_checksum set ip hw 0\n-   testpmd> tx_checksum set udp hw 0\n-   testpmd> tx_checksum set tcp hw 0\n-   testpmd> tx_checksum set sctp hw 0\n-   testpmd> tx_checksum set vxlan hw 0\n-   testpmd> tx_checksum set nvgre hw 0\n+   testpmd> csum set ip hw 0\n+   testpmd> csum set udp hw 0\n+   testpmd> csum set tcp hw 0\n+   testpmd> csum set sctp hw 0\n+   testpmd> csum set outer-ip hw 0\n+   #Intel® Ethernet 700 Series not support outer udp\n+   testpmd> csum set outer-udp hw 0\n+   testpmd> csum parse-tunnel on 0\n+\n+   # enable hw checksum on tx port\n+   testpmd> csum set ip hw 1\n+   testpmd> csum set udp hw 1\n+   testpmd> csum set tcp hw 1\n+   testpmd> csum set sctp hw 1\n+   #csum set outer-ip must be set to hw if outer L3 is IPv4\n+   testpmd> csum set outer-ip hw 1\n+   #csum parse-tunnel must be set so that tunneled packets are recognized\n+   testpmd> csum parse-tunnel on 1\n+   #Intel® Ethernet 700 Series not support outer udp\n+   testpmd> csum set outer-udp hw 1\n+\n    # enable TSO on tx port\n-   testpmd> tso set 800 1\n+   testpmd> tunnel_tso set 800 1\n+   # enable VXLAN protocol on ports\n+   testpmd> rx_vxlan_port add 4789 0\n    # set fwd engine and start\n    testpmd> set fwd csum\n+   testpmd> port start all\n+   testpmd> set promisc all off\n    testpmd> start\n \n Test vxlan() in scapy::\n@@ -132,7 +159,7 @@ Test vxlan() in scapy::\n \n Test nvgre() in scapy::\n \n-    sendp([Ether(dst=\"%s\",src=\"52:00:00:00:00:00\")/IP(src=\"192.168.1.1\",dst=\"192.168.1.2\",proto=47)/NVGRE()/Ether(dst=%s,src=\"52:00:00:00:00:00\")/IP(src=\"192.168.1.1\",dst=\"192.168.1.2\")/TCP(sport=\"1021\",dport=\"1021\")/(\"X\"*%s)], iface=\"%s\")\n+    sendp([Ether(dst=\"%s\",src=\"52:00:00:00:00:00\")/IP(src=\"192.168.1.1\",dst=\"192.168.1.2\",proto=47)/GRE(key_present=1,proto=0x6558,key=0x00001000)/Ether(dst=\"%s\",src=\"52:00:00:00:00:00\")/IP(src=\"192.168.1.1\",dst=\"192.168.1.2\")/TCP(sport=1021,dport=1021)/(\"X\"*%s)], iface=\"%s\")\n \n Test case: TSO performance\n ==========================\ndiff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py\nindex fa0f63ad..8cbd7a70 100755\n--- a/tests/TestSuite_tso.py\n+++ b/tests/TestSuite_tso.py\n@@ -167,7 +167,7 @@ class TestTSO(TestCase):\n \n     def test_tso(self):\n         \"\"\"\n-        TSO IPv4 TCP, IPv6 TCP, VXLan testing\n+        TSO IPv4 TCP, IPv6 TCP\n         \"\"\"\n         tx_interface = self.tester.get_interface(\n             self.tester.get_local_port(self.dut_ports[0])\n@@ -214,20 +214,6 @@ class TestTSO(TestCase):\n             \"csum parse-tunnel on %d\" % self.dut_ports[0], \"testpmd> \", 120\n         )\n \n-        self.dut.send_expect(\"csum set ip hw %d\" % self.dut_ports[1], \"testpmd> \", 120)\n-        self.dut.send_expect(\"csum set udp hw %d\" % self.dut_ports[1], \"testpmd> \", 120)\n-        self.dut.send_expect(\"csum set tcp hw %d\" % self.dut_ports[1], \"testpmd> \", 120)\n-        if self.nic not in [\"cavium_a063\", \"cavium_a064\"]:\n-            self.dut.send_expect(\n-                \"csum set sctp hw %d\" % self.dut_ports[1], \"testpmd> \", 120\n-            )\n-            self.dut.send_expect(\n-                \"csum set outer-ip hw %d\" % self.dut_ports[1], \"testpmd> \", 120\n-            )\n-        self.dut.send_expect(\n-            \"csum parse-tunnel on %d\" % self.dut_ports[1], \"testpmd> \", 120\n-        )\n-\n         self.dut.send_expect(\"tso set 800 %d\" % self.dut_ports[1], \"testpmd> \", 120)\n         self.dut.send_expect(\"set fwd csum\", \"testpmd> \", 120)\n         self.dut.send_expect(\"port start all\", \"testpmd> \", 120)\n@@ -307,7 +293,7 @@ class TestTSO(TestCase):\n \n     def test_tso_tunneling(self):\n         \"\"\"\n-        TSO IPv4 TCP, IPv6 TCP, VXLan testing\n+        TSO tunneling, VXLan testing, Nvgre testing\n         \"\"\"\n         tx_interface = self.tester.get_interface(\n             self.tester.get_local_port(self.dut_ports[0])\n",
    "prefixes": [
        "V1"
    ]
}