get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 117895,
    "url": "https://patches.dpdk.org/api/patches/117895/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20221011093104.22124-2-linglix.chen@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": "<20221011093104.22124-2-linglix.chen@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20221011093104.22124-2-linglix.chen@intel.com",
    "date": "2022-10-11T09:31:04",
    "name": "[V3,2/2] tests/queue_start_stop: modify script according to dpdk code change",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c319dac7e5e04b35ab80f00f6f0024dfd43a9fee",
    "submitter": {
        "id": 1843,
        "url": "https://patches.dpdk.org/api/people/1843/?format=api",
        "name": "Lingli Chen",
        "email": "linglix.chen@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20221011093104.22124-2-linglix.chen@intel.com/mbox/",
    "series": [
        {
            "id": 25140,
            "url": "https://patches.dpdk.org/api/series/25140/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=25140",
            "date": "2022-10-11T09:31:03",
            "name": "[V3,1/2] tests/dynamic_queue: modify script according to dpdk code change",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/25140/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/117895/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/117895/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 9470DA0545;\n\tTue, 11 Oct 2022 12:20:52 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8B46542D4C;\n\tTue, 11 Oct 2022 12:20:52 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id F2FB442D0C\n for <dts@dpdk.org>; Tue, 11 Oct 2022 12:20:50 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Oct 2022 03:20:50 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.99])\n by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Oct 2022 03:20:49 -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=1665483651; x=1697019651;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=IoT1WGHQk66lNG+e2IrSN0D/AHWEjWOhd0LYG/s1a4Y=;\n b=TrkeEPbKnj+G7VbMw/5vihxfx7ykODLvEDXgrqqVet4St8CDgBFDwOPA\n mvWEyjCi+OA53ETaWe5elknJgFKCKQPo7m6hLbLo5Rc8hjM18LnjutV96\n TyUfqVX6fUAw2+64NTAM+ijOXpPylRaC5/SL6v4zrO1ayU2ymUay62Cco\n r2x2twsuZhUku5oUv2o4QeoLQUYWCFSvpLl8Rkig/cu9ygYNBG/tQBMYD\n 6vR1uwgQdcYRgaI5fh2pL1t7imnQ2rdEyl7nLr+3Sa2F7lCohUs7kPU5B\n 7yUVZeRgMS+GB/hGVnY1F0mqh7FIPoklgqlQM6C19K4JJKOvTZjJnEhAB A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10496\"; a=\"304455131\"",
            "E=Sophos;i=\"5.95,176,1661842800\"; d=\"scan'208\";a=\"304455131\"",
            "E=McAfee;i=\"6500,9779,10496\"; a=\"715463701\"",
            "E=Sophos;i=\"5.95,176,1661842800\"; d=\"scan'208\";a=\"715463701\""
        ],
        "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 V3 2/2] tests/queue_start_stop: modify script according\n to dpdk code change",
        "Date": "Tue, 11 Oct 2022 05:31:04 -0400",
        "Message-Id": "<20221011093104.22124-2-linglix.chen@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20221011093104.22124-1-linglix.chen@intel.com>",
        "References": "<20221011093104.22124-1-linglix.chen@intel.com>",
        "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": "According to dpdk commit 3c4426db54fc(app/testpmd: do not poll stopped queues).\nmodify queue_start_stop: after set “port 0 txq 0 stop”, no print in testpmd.\n\nSigned-off-by: Lingli Chen <linglix.chen@intel.com>\n---\nTested-by: Weiyuan Li <weiyuanx.li@intel.com>\n\nV3: modify test_plan add check tester port receive packets steps.\nV2: modify script add verify no print \"ports 0 queue 0 receive \" in testpmd \n\n test_plans/queue_start_stop_test_plan.rst | 28 +++++++++++++++++------\n tests/TestSuite_queue_start_stop.py       | 20 ++++++++--------\n 2 files changed, 30 insertions(+), 18 deletions(-)",
    "diff": "diff --git a/test_plans/queue_start_stop_test_plan.rst b/test_plans/queue_start_stop_test_plan.rst\nindex de7c46d2..aecdb095 100644\n--- a/test_plans/queue_start_stop_test_plan.rst\n+++ b/test_plans/queue_start_stop_test_plan.rst\n@@ -35,15 +35,29 @@ This case support PF (Intel® Ethernet 700 Series/Intel® Ethernet 800 Series/82\n \n       printf(\"ports %u queue %u received %u packages\\n\", fs->rx_port, fs->rx_queue, nb_rx);\n \n-#. Compile testpmd again, then run testpmd.\n+#. Compile testpmd again, then run testpmd::\n+    x86_64-native-linuxapp-gcc/app/dpdk-testpmd  -l 1-2 -n 4 -a 0000:af:00.0 -- -i --portmask=0x1 --port-topology=loop\n+\n #. Run \"set fwd mac\" to set fwd type\n #. Run \"start\" to start fwd package\n-#. Start packet generator to transmit and receive packets\n+\n+#. Start a packet capture on the tester in the background::\n+    tcpdump -i ens7  'ether[12:2] != 0x88cc'  -Q in -w /tmp/tester/sniff_ens7.pcap\n+\n+#. Start packet generator to transmit packets::\n+    sendp([Ether(dst='3c:fd:fe:c1:0f:4c', src='00:00:20:00:00:00')/IP()/UDP()/Raw(load=b'XXXXXXXXXXXXXXXXXX')],iface=\"ens7\",count=4,inter=0,verbose=False)\n+\n+#. Quit tcpdump and check tester port receive packets\n+\n #. Run \"port 0 rxq 0 stop\" to stop rxq 0 in port 0\n-#. Start packet generator to transmit and not receive packets\n+#. Start packet generator to transmit and check tester port not receive packets\n+\n #. Run \"port 0 rxq 0 start\" to start rxq 0 in port 0\n-#. Run \"port 1 txq 1 stop\" to start txq 0 in port 1\n-#. Start packet generator to transmit and not receive packets but in testpmd it is a \"ports 0 queue 0 received 1 packages\" print\n-#. Run \"port 1 txq 1 start\" to start txq 0 in port 1\n-#. Start packet generator to transmit and receive packets\n+#. Run \"port 0 txq 0 stop\" to stop txq 0 in port 0\n+#. Start packet generator to transmit and check tester port not receive packets\n+   and in testpmd it not has \"ports 0 queue 0 received 1 packages\" print\n+\n+#. Run \"port 0 txq 0 start\" to start txq 0 in port 0\n+#. Start packet generator to transmit and check tester port receive packets\n+   and in testpmd it has \"ports 0 queue 0 received 1 packages\" print\n #. Test it again with VF\ndiff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py\nindex 1df59a1b..b6f4ba96 100644\n--- a/tests/TestSuite_queue_start_stop.py\n+++ b/tests/TestSuite_queue_start_stop.py\n@@ -137,17 +137,10 @@ class TestQueueStartStop(TestCase):\n             out = self.dut.get_session_output()\n         except Exception as e:\n             raise IOError(\"queue start/stop forward failure: %s\" % e)\n-\n-        if self.nic == \"cavium_a063\":\n-            self.verify(\n-                \"ports 0 queue 0 receive 4 packages\" in out,\n-                \"start queue revice package failed, out = %s\" % out,\n-            )\n-        else:\n-            self.verify(\n-                \"ports 0 queue 0 receive 1 packages\\r\\n\" * 4 in out,\n-                \"start queue revice package failed, out = %s\" % out,\n-            )\n+        self.verify(\n+            \"ports 0 queue 0 receive \" not in out,\n+            \"start queue revice package failed, out = %s\" % out,\n+        )\n \n         try:\n             # start tx queue test\n@@ -156,8 +149,13 @@ class TestQueueStartStop(TestCase):\n             self.dut.send_expect(\"port 0 txq 0 start\", \"testpmd>\")\n             self.dut.send_expect(\"start\", \"testpmd>\")\n             self.check_forwarding([0, 0], self.nic)\n+            out = self.dut.get_session_output()\n         except Exception as e:\n             raise IOError(\"queue start/stop forward failure: %s\" % e)\n+        self.verify(\n+            \"ports 0 queue 0 receive \" in out,\n+            \"start queue revice package failed, out = %s\" % out,\n+        )\n \n     def tear_down(self):\n         \"\"\"\n",
    "prefixes": [
        "V3",
        "2/2"
    ]
}