get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 101980,
    "url": "https://patches.dpdk.org/api/patches/101980/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20211018192225.12775-1-leweix.yang@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": "<20211018192225.12775-1-leweix.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20211018192225.12775-1-leweix.yang@intel.com",
    "date": "2021-10-18T19:22:25",
    "name": "[V1] smoke test support config different queues",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "9fd1f2eeb97eb2546cd210a78ac0d58e74445c40",
    "submitter": {
        "id": 2225,
        "url": "https://patches.dpdk.org/api/people/2225/?format=api",
        "name": "Lewei Yang",
        "email": "leweix.yang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20211018192225.12775-1-leweix.yang@intel.com/mbox/",
    "series": [
        {
            "id": 19735,
            "url": "https://patches.dpdk.org/api/series/19735/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=19735",
            "date": "2021-10-18T19:22:25",
            "name": "[V1] smoke test support config different queues",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/19735/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/101980/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/101980/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 8E517A0C43;\n\tMon, 18 Oct 2021 12:51:35 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7897A40141;\n\tMon, 18 Oct 2021 12:51:35 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 174D74003C\n for <dts@dpdk.org>; Mon, 18 Oct 2021 12:51:32 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Oct 2021 03:51:29 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.102])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Oct 2021 03:51:28 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10140\"; a=\"208325602\"",
            "E=Sophos;i=\"5.85,381,1624345200\"; d=\"scan'208\";a=\"208325602\"",
            "E=Sophos;i=\"5.85,381,1624345200\"; d=\"scan'208\";a=\"493537273\""
        ],
        "From": "Lewei Yang <leweix.yang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Lewei Yang <leweix.yang@intel.com>",
        "Date": "Mon, 18 Oct 2021 19:22:25 +0000",
        "Message-Id": "<20211018192225.12775-1-leweix.yang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V1] smoke test support config different queues",
        "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": "smoke test support config different queues\n\nSigned-off-by: Lewei Yang <leweix.yang@intel.com>\n---\n test_plans/pf_smoke_test_plan.rst | 19 ++++++++++--\n test_plans/vf_smoke_test_plan.rst | 17 +++++++++--\n tests/TestSuite_pf_smoke.py       |  2 +-\n tests/smoke_base.py               | 48 +++++++++++++++++++++++++++++--\n 4 files changed, 76 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/test_plans/pf_smoke_test_plan.rst b/test_plans/pf_smoke_test_plan.rst\nindex 2b6c6128..f7c75150 100644\n--- a/test_plans/pf_smoke_test_plan.rst\n+++ b/test_plans/pf_smoke_test_plan.rst\n@@ -150,14 +150,27 @@ Test Case 3: test reset RX/TX queues\n ====================================================\n 1. Run ``port stop all`` to stop all ports.\n \n-2. Run ``port config all rxq 2`` to change the number of receiving queues to two.\n+2. Run ``port config all rxq 16`` to change the number of receiving queues to 16.\n \n-3. Run ``port config all txq 2`` to change the number of transmitting queues to two.\n+3. Run ``port config all txq 16`` to change the number of transmitting queues to 16.\n \n 4. Run ``port start all`` to restart all ports.\n \n 5. Check with ``show config rxtx`` that the configuration for these parameters changed.\n \n-6. Run ``start`` again to restart the forwarding, then start packet generator to transmit\n+6. Run ``start`` again to restart the forwarding, then Send different hash types' packets\n+   with different keywords, then check rx port could receive packets by different queues.\n+\n+7. Run ``port stop all`` to stop all ports.\n+\n+8. Run ``port config 0 rx_offload rss_hash off`` to stop rss_hash\n+\n+9. Run ``port config all rxq 1`` to change the number of receiving queues to 1.\n+\n+10. Run ``port config all txq 1`` to change the number of transmitting queues to 1.\n+\n+11. Run ``start`` again to restart the forwarding, then start packet generator to transmit\n    and receive packets, and check if testpmd is able to receive and forward packets\n    successfully.\n+\n+\ndiff --git a/test_plans/vf_smoke_test_plan.rst b/test_plans/vf_smoke_test_plan.rst\nindex 650f759c..5c45a652 100644\n--- a/test_plans/vf_smoke_test_plan.rst\n+++ b/test_plans/vf_smoke_test_plan.rst\n@@ -163,14 +163,25 @@ Test Case 3: test reset RX/TX queues\n ====================================================\n 1. Run ``port stop all`` to stop all ports.\n \n-2. Run ``port config all rxq 2`` to change the number of receiving queues to two.\n+2. Run ``port config all rxq 16`` to change the number of receiving queues to 16.\n \n-3. Run ``port config all txq 2`` to change the number of transmitting queues to two.\n+3. Run ``port config all txq 16`` to change the number of transmitting queues to 16.\n \n 4. Run ``port start all`` to restart all ports.\n \n 5. Check with ``show config rxtx`` that the configuration for these parameters changed.\n \n-6. Run ``start`` again to restart the forwarding, then start packet generator to transmit\n+6. Run ``start`` again to restart the forwarding, then Send different hash types' packets\n+   with different keywords, then check rx port could receive packets by different queues.\n+\n+7. Run ``port stop all`` to stop all ports.\n+\n+8. Run ``port config 0 rx_offload rss_hash off`` to stop rss_hash\n+\n+9. Run ``port config all rxq 1`` to change the number of receiving queues to 1.\n+\n+10. Run ``port config all txq 1`` to change the number of transmitting queues to 1.\n+\n+11. Run ``start`` again to restart the forwarding, then start packet generator to transmit\n    and receive packets, and check if testpmd is able to receive and forward packets\n    successfully.\ndiff --git a/tests/TestSuite_pf_smoke.py b/tests/TestSuite_pf_smoke.py\nindex 63eb2c7e..12838e24 100644\n--- a/tests/TestSuite_pf_smoke.py\n+++ b/tests/TestSuite_pf_smoke.py\n@@ -58,7 +58,7 @@ class TestPfSmoke(TestCase):\n         self.smoke_tester_nic = self.tester.get_interface(self.smoke_tester_port)\n         self.smoke_tester_mac = self.tester.get_mac(self.smoke_dut_ports[0])\n         self.smoke_dut_mac = self.dut.get_mac_address(self.smoke_dut_ports[0])\n-\n+        self.smoke_dut_nic_name = self.nic\n         # Verify that enough core\n         self.cores = self.dut.get_core_list(\"1S/4C/1T\")\n         self.verify(self.cores is not None, \"Insufficient cores for speed testing\")\ndiff --git a/tests/smoke_base.py b/tests/smoke_base.py\nindex 0d7046b0..505b7e19 100644\n--- a/tests/smoke_base.py\n+++ b/tests/smoke_base.py\n@@ -40,7 +40,7 @@ JUMBO_FRAME_LENGTH = 9000\n IPV4_SRC = '192.168.0.11'\n IPV4_DST = '192.168.0.12'\n LAUNCH_QUEUE = 4\n-PACKAGE_COUNT = 32\n+PACKAGE_COUNT = 256\n \n \n class SmokeTest(object):\n@@ -79,8 +79,9 @@ class SmokeTest(object):\n         # wait package update\n         time.sleep(1)\n         self.test_case.pkt.send_pkt(crb=self.test_case.tester, tx_port=self.test_case.smoke_tester_nic)\n-        time.sleep(.5)\n-        out = self.test_case.pmd_out.get_output(timeout=1)\n+        time.sleep(3)\n+\n+        out = self.test_case.pmd_out.get_output(timeout=10)\n         queue_pattern = re.compile(r'Receive\\squeue=(\\w+)')\n         # collect all queues\n         queues = queue_pattern.findall(out)\n@@ -155,6 +156,47 @@ class SmokeTest(object):\n \n         self.test_case.dut.send_expect(\"stop\", \"testpmd> \")\n         self.test_case.dut.send_expect(\"port stop all\", \"testpmd> \")\n+\n+        if self.test_case.smoke_dut_nic_name in 'foxville':\n+            queues_rss = 2\n+            self.test_case.dut.send_expect(\"port config all rxq {}\".format(queues_rss), \"testpmd> \")\n+            self.test_case.dut.send_expect(\"port config all txq {}\".format(queues_rss), \"testpmd> \")\n+            out = self.test_case.dut.send_expect(\"show config rxtx\", \"testpmd> \")\n+            if 'RX queue number: 2' not in out:\n+                self.test_case.logger.info(\"RX queue number {} no display\".format(queues_rss))\n+                return False\n+            if 'Tx queue number: 2' not in out:\n+                self.test_case.logger.info(\"Tx queue number {} no display\".format(queues_rss))\n+                return False\n+        else:\n+            queues_rss = 16\n+            self.test_case.dut.send_expect(\"port config all rxq {}\".format(queues_rss), \"testpmd> \")\n+            self.test_case.dut.send_expect(\"port config all txq {}\".format(queues_rss), \"testpmd> \")\n+            out = self.test_case.dut.send_expect(\"show config rxtx\", \"testpmd> \")\n+            if 'RX queue number: 16' not in out:\n+                self.test_case.logger.info(\"RX queue number {} no display\".format(queues_rss))\n+                return False\n+            if 'Tx queue number: 16' not in out:\n+                self.test_case.logger.info(\"Tx queue number {} no display\".format(queues_rss))\n+                return False\n+\n+        self.test_case.dut.send_expect(\"port start all\", \"testpmd> \")\n+        self.test_case.dut.send_expect(\"start\", \"testpmd> \")\n+        hash_flag, queues, hash_values = self.send_pkg_return_stats(rss=True)\n+        if queues is None:\n+            self.test_case.logger.info(\"txq rxq the queues[{}] error\".format(queues))\n+            return False\n+        queues = list(set(queues))\n+        hash_values = list(set(hash_values))\n+        # verify that each queue has packets, verify hash value are not equal, and hash flag exists.\n+        if queues_rss != len(queues) or 1 == hash_values or hash_flag is False:\n+            self.test_case.logger.info(\"rss the hash flag [{}] [{}] error\".format(queues, hash_values))\n+            return False\n+\n+        # modify queues to 1 can work\n+        self.test_case.dut.send_expect(\"stop\", \"testpmd> \")\n+        self.test_case.dut.send_expect(\"port stop all\", \"testpmd> \")\n+        self.test_case.dut.send_expect(\"port config 0 rx_offload rss_hash off\", \"testpmd> \")\n         self.test_case.dut.send_expect(\"port config all rxq 1\", \"testpmd> \")\n         self.test_case.dut.send_expect(\"port config all txq 1\", \"testpmd> \")\n         out = self.test_case.dut.send_expect(\"show config rxtx\", \"testpmd> \")\n",
    "prefixes": [
        "V1"
    ]
}