get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 113955,
    "url": "http://patches.dpdk.org/api/patches/113955/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220714032354.1822505-1-weix.ling@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": "<20220714032354.1822505-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220714032354.1822505-1-weix.ling@intel.com",
    "date": "2022-07-14T03:23:54",
    "name": "[V1,2/2] tests/vhost_pmd_xstats: modify testsuite syncwith testplan have changed",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "1e333212efefe288254564477720dcfa96fbaa94",
    "submitter": {
        "id": 1828,
        "url": "http://patches.dpdk.org/api/people/1828/?format=api",
        "name": "Ling, WeiX",
        "email": "weix.ling@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20220714032354.1822505-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 23990,
            "url": "http://patches.dpdk.org/api/series/23990/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=23990",
            "date": "2022-07-14T03:23:34",
            "name": "modify vhost_pmd_xstats testplan and",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/23990/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/113955/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/113955/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 5DAB1A00C5;\n\tThu, 14 Jul 2022 05:26:49 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 559AA42905;\n\tThu, 14 Jul 2022 05:26:49 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 56E5E41101\n for <dts@dpdk.org>; Thu, 14 Jul 2022 05:26:47 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jul 2022 20:26:46 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.222])\n by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jul 2022 20:26:45 -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=1657769207; x=1689305207;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=A+ldTzcX6LskRY6/GFAetd7q3JCIC7Y7f3vKXBXpFrc=;\n b=MX03vzeehsnOkFpp98pNlskRuAFfyjrKVtN4lu+MdyO4BR45/fwLuzBG\n Dl1T1j7HU5LuGnObZ4V8zuUPXlowv+IOlJytOxdnrTu1j2nkIpM1LFJMa\n MqccPECYulEXvZn9zD9L+VtGVmXaVlEsm6G8PGIDV2L/wXcXkHoXK6g+W\n GAqqfsH2QAg4An6B9AcUlomDDwuPZ0bgFgrLyZbbaeFFIMgcshalKeqUM\n QAtQTG6O48sQ+X50kKb8bC+8Yq/laGgY+Mg46N36aYDn/phS8utzXmJnR\n QkFiIZPnB+tq7c6JKaA/Wc8LFt35FS4mESL89FzSnDFK37wrbusbda2Kf w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10407\"; a=\"349372394\"",
            "E=Sophos;i=\"5.92,269,1650956400\"; d=\"scan'208\";a=\"349372394\"",
            "E=Sophos;i=\"5.92,269,1650956400\"; d=\"scan'208\";a=\"570890189\""
        ],
        "From": "Wei Ling <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Wei Ling <weix.ling@intel.com>",
        "Subject": "[dts][PATCH V1 2/2] tests/vhost_pmd_xstats: modify testsuite syncwith\n testplan have changed",
        "Date": "Wed, 13 Jul 2022 23:23:54 -0400",
        "Message-Id": "<20220714032354.1822505-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 DPDK commit be75dc99ea(vhost: support per-virtqueue statistics),\nthe return output of `show port xstats 1` command have changed, so\nmodify the testsuite to send different IP packets to verify the different\nqueues can receive the packets.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n tests/TestSuite_vhost_pmd_xstats.py | 205 ++++++++++++++++------------\n 1 file changed, 117 insertions(+), 88 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py\nindex ec95b7f1..b664f32d 100644\n--- a/tests/TestSuite_vhost_pmd_xstats.py\n+++ b/tests/TestSuite_vhost_pmd_xstats.py\n@@ -7,17 +7,13 @@ DPDK Test suite.\n \n vhost pmd xstats test suite.\n \"\"\"\n-import copy\n import datetime\n import re\n-import time\n \n-import framework.utils as utils\n from framework.packet import Packet\n from framework.pmd_output import PmdOutput\n-from framework.qemu_kvm import QEMUKvm\n-from framework.settings import HEADER_SIZE\n from framework.test_case import TestCase\n+from framework.utils import convert_int2ip, convert_ip2int\n \n ETHER_JUMBO_FRAME_MTU = 9000\n DEFAULT_JUMBO_FRAME_MTU = 1500\n@@ -32,6 +28,7 @@ class TestVhostPmdXstats(TestCase):\n         txport = self.tester.get_local_port(self.dut_ports[0])\n         self.txItf = self.tester.get_interface(txport)\n         self.scapy_num = 0\n+        self.queues = 2\n         self.dmac = self.dut.get_mac_address(self.dut_ports[0])\n         self.virtio1_mac = \"52:54:00:00:00:01\"\n         self.core_config = \"1S/6C/1T\"\n@@ -73,31 +70,63 @@ class TestVhostPmdXstats(TestCase):\n         Send a packet to port\n         \"\"\"\n         self.scapy_num += 1\n-        pkt = Packet(pkt_type=\"TCP\", pkt_len=pktsize)\n-        pkt.config_layer(\"ether\", {\"dst\": dmac})\n-        pkt.send_pkt(self.tester, tx_port=self.txItf, count=num)\n+        options = {\n+            \"ip\": {\"src\": \"192.168.0.1\", \"dst\": \"192.168.1.1\"},\n+            \"layers_config\": [],\n+        }\n+        # give a default value to ip\n+        try:\n+            src_ip_num = convert_ip2int(options[\"ip\"][\"src\"])\n+        except:\n+            src_ip_num = 0\n+        try:\n+            dst_ip_num = convert_ip2int(options[\"ip\"][\"dst\"])\n+        except:\n+            dst_ip_num = 0\n+        if num == 1:\n+            count = 1\n+            group = num\n+        else:\n+            count = 1000\n+            group = int(num / count)\n+        for _ in range(group):\n+            srcip = convert_int2ip(src_ip_num, ip_type=4)\n+            dstip = convert_int2ip(dst_ip_num, ip_type=4)\n+            pkt = Packet(pkt_type=\"IP_RAW\", pkt_len=pktsize)\n+            pkt.config_layer(\"ether\", {\"dst\": dmac})\n+            pkt.config_layer(\"ipv4\", {\"src\": srcip, \"dst\": dstip})\n+            dst_ip_num += 1\n+            pkt.send_pkt(self.tester, tx_port=self.txItf, count=count)\n \n-    def send_verify(self, scope, mun):\n+    def send_verify(self, scope, num):\n         \"\"\"\n         according the scope to check results\n         \"\"\"\n         out = self.vhost_user_pmd.execute_cmd(\"show port xstats 1\")\n-        packet_rx = re.search(\"rx_%s_packets:\\s*(\\d*)\" % scope, out)\n-        sum_packet_rx = packet_rx.group(1)\n-        packet_tx = re.search(\"tx_%s_packets:\\s*(\\d*)\" % scope, out)\n-        sum_packet_tx = packet_tx.group(1)\n+        rx_pattern = re.compile(\"rx_q\\d+_%s_packets:\\s*(\\d+)\" % scope)\n+        packet_rx = rx_pattern.findall(out)\n+        sum_packet_rx = 0\n+        for item in packet_rx:\n+            sum_packet_rx += int(item)\n+\n+        tx_pattern = re.compile(\"tx_q\\d+_%s_packets:\\s*(\\d+)\" % scope)\n+        packet_tx = tx_pattern.findall(out)\n+        sum_packet_tx = 0\n+        for item in packet_tx:\n+            sum_packet_tx += int(item)\n+\n         self.verify(\n-            int(sum_packet_rx) >= mun, \"Insufficient the received packets from nic\"\n+            int(sum_packet_rx) == num, \"Insufficient the received packets from nic\"\n         )\n         self.verify(\n-            int(sum_packet_tx) >= mun, \"Insufficient the received packets from virtio\"\n+            int(sum_packet_tx) == num, \"Insufficient the received packets from virtio\"\n         )\n \n     def start_vhost_testpmd(self):\n         \"\"\"\n         start testpmd on vhost\n         \"\"\"\n-        vdevs = [\"net_vhost0,iface=vhost-net,queues=2,client=0\"]\n+        vdevs = [\"net_vhost0,iface=vhost-net,queues=%d,client=0\" % self.queues]\n         param = \"--nb-cores=2 --rxq=2 --txq=2\"\n         self.vhost_user_pmd.start_testpmd(\n             cores=self.core_list_host,\n@@ -106,7 +135,7 @@ class TestVhostPmdXstats(TestCase):\n             ports=[0],\n             prefix=\"vhost\",\n         )\n-        self.vhost_user_pmd.execute_cmd(\"set fwd io\")\n+        self.vhost_user_pmd.execute_cmd(\"set fwd mac\")\n         self.vhost_user_pmd.execute_cmd(\"start\")\n \n     def start_virtio_testpmd(self, args):\n@@ -117,8 +146,8 @@ class TestVhostPmdXstats(TestCase):\n         if self.check_2M_env:\n             eal_param += \" --single-file-segments\"\n         vdevs = [\n-            \"net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,%s\"\n-            % args[\"version\"]\n+            \"net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=%d,%s\"\n+            % (self.queues, args[\"version\"])\n         ]\n         param = \"%s --rss-ip --nb-cores=2 --rxq=2 --txq=2\" % args[\"path\"]\n         self.virtio_user0_pmd.start_testpmd(\n@@ -129,7 +158,7 @@ class TestVhostPmdXstats(TestCase):\n             no_pci=True,\n             prefix=\"virtio\",\n         )\n-        self.virtio_user0_pmd.execute_cmd(\"set fwd io\")\n+        self.virtio_user0_pmd.execute_cmd(\"set fwd mac\")\n         self.virtio_user0_pmd.execute_cmd(\"start\")\n \n     def xstats_number_and_type_verify(self):\n@@ -137,7 +166,7 @@ class TestVhostPmdXstats(TestCase):\n         Verify receiving and transmitting packets correctly in the Vhost PMD xstats\n         \"\"\"\n         out = self.vhost_user_pmd.execute_cmd(\"show port xstats 1\")\n-        p = re.compile(r\"rx_size_[0-9]+_[to_\\w+]*packets\")\n+        p = re.compile(r\"rx_q0_size_[0-9]+_[\\w+]*packets\")\n         categories = p.findall(out)\n         categories = categories[:-1]\n         self.verify(\n@@ -145,7 +174,7 @@ class TestVhostPmdXstats(TestCase):\n         )\n         for cat in categories:\n             scope = re.search(r\"(?<=rx_)\\w+(?=_packets)\", cat).group(0)\n-            pktsize = int(re.search(r\"(?<=rx_size_)\\d+\", cat).group(0))\n+            pktsize = int(re.search(r\"(?<=rx_q0_size_)\\d+\", cat).group(0))\n             if pktsize > 1518:\n                 self.tester.send_expect(\n                     \"ifconfig %s mtu %d\" % (self.txItf, ETHER_JUMBO_FRAME_MTU), \"# \"\n@@ -165,38 +194,25 @@ class TestVhostPmdXstats(TestCase):\n                 \"ifconfig %s mtu %d\" % (self.txItf, DEFAULT_JUMBO_FRAME_MTU), \"# \"\n             )\n \n-    def test_vhost_xstats_virtio11_mergeable(self):\n+    def test_vhost_xstats_split_ring_inorder_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP virtio1.1 Mergeable Path.\n+        Test Case 1: Vhost pmd xstats stability test with split ring inorder mergeable path\n         \"\"\"\n-        self.scapy_num = 0\n         virtio_pmd_arg = {\n-            \"version\": \"in_order=0,packed_vq=1,mrg_rxbuf=1\",\n+            \"version\": \"in_order=1,mrg_rxbuf=1\",\n             \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n         self.start_virtio_testpmd(virtio_pmd_arg)\n         self.xstats_number_and_type_verify()\n-        # stability test with basic packets number check\n-        self.scapy_num = 0\n-        date_old = datetime.datetime.now()\n-        date_new = date_old + datetime.timedelta(minutes=2)\n-        while 1:\n-            date_now = datetime.datetime.now()\n-            scope = \"multicast\"\n-            self.dmac = \"01:00:00:33:00:01\"\n-            self.scapy_send_packet(64, self.dmac, 1)\n-            if date_now >= date_new:\n-                break\n-        self.send_verify(scope, self.scapy_num)\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_virtio11_no_mergeable(self):\n+    def test_vhost_xstats_split_ring_inorder_no_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP virtio1.1 no_mergeable Path.\n+        Test Case 2: Vhost pmd xstats test with split ring inorder non-mergeable path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"in_order=0,packed_vq=1,mrg_rxbuf=0\",\n+            \"version\": \"in_order=1,mrg_rxbuf=0\",\n             \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n@@ -204,12 +220,12 @@ class TestVhostPmdXstats(TestCase):\n         self.xstats_number_and_type_verify()\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_virtio11_inorder_mergeable(self):\n+    def test_vhost_xstats_split_ring_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP virtio1.1 inorder Mergeable Path.\n+        Test Case 3: Vhost pmd xstats test with split ring mergeable path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"in_order=1,packed_vq=1,mrg_rxbuf=1\",\n+            \"version\": \"in_order=0,mrg_rxbuf=1\",\n             \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n@@ -217,51 +233,40 @@ class TestVhostPmdXstats(TestCase):\n         self.xstats_number_and_type_verify()\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_virtio11_inorder_no_mergeable(self):\n+    def test_vhost_xstats_split_ring_no_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP virtio1.1 inorder no_mergeable Path.\n+        Test Case 4: Vhost pmd xstats test with split ring non-mergeable path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1\",\n-            \"path\": \"--rx-offloads=0x10 --enable-hw-vlan-strip --rss-ip\",\n+            \"version\": \"in_order=0,mrg_rxbuf=0,vectorized=1\",\n+            \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n         self.start_virtio_testpmd(virtio_pmd_arg)\n         self.xstats_number_and_type_verify()\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_virtio11_vector(self):\n+    def test_vhost_xstats_split_ring_vector_rx_path(self):\n         \"\"\"\n-        performance for Vhost PVP virtio1.1 inorder no_mergeable Path.\n+        Test Case 5: Vhost pmd xstats test with split ring vector_rx path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1\",\n-            \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n+            \"version\": \"in_order=0,mrg_rxbuf=0,vectorized=1\",\n+            \"path\": \"--tx-offloads=0x0\",\n         }\n         self.start_vhost_testpmd()\n         self.start_virtio_testpmd(virtio_pmd_arg)\n         self.xstats_number_and_type_verify()\n-        # stability test with basic packets number check\n-        self.scapy_num = 0\n-        date_old = datetime.datetime.now()\n-        date_new = date_old + datetime.timedelta(minutes=2)\n-        while 1:\n-            date_now = datetime.datetime.now()\n-            scope = \"broadcast\"\n-            self.dmac = \"ff:ff:ff:ff:ff:ff\"\n-            self.scapy_send_packet(64, self.dmac, 1)\n-            if date_now >= date_new:\n-                break\n-        self.send_verify(scope, self.scapy_num)\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2(self):\n+    def test_vhost_xstats_packed_ring_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP virtio1.1 inorder no_mergeable Path.\n+        Test Case 8: Vhost pmd xstats test with packed ring mergeable path\n         \"\"\"\n+        self.scapy_num = 0\n         virtio_pmd_arg = {\n-            \"version\": \"in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1,queue_size=1221\",\n-            \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --rxd=1221 --txd=1221\",\n+            \"version\": \"in_order=0,mrg_rxbuf=1,packed_vq=1\",\n+            \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n         self.start_virtio_testpmd(virtio_pmd_arg)\n@@ -272,20 +277,20 @@ class TestVhostPmdXstats(TestCase):\n         date_new = date_old + datetime.timedelta(minutes=2)\n         while 1:\n             date_now = datetime.datetime.now()\n-            scope = \"broadcast\"\n-            self.dmac = \"ff:ff:ff:ff:ff:ff\"\n+            scope = \"multicast\"\n+            self.dmac = \"01:00:00:33:00:01\"\n             self.scapy_send_packet(64, self.dmac, 1)\n             if date_now >= date_new:\n                 break\n         self.send_verify(scope, self.scapy_num)\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_inorder_mergeable(self):\n+    def test_vhost_xstats_packed_ring_no_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP In_order mergeable Path.\n+        Test Case 9: Vhost pmd xstats test with packed ring non-mergeable path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"packed_vq=0,in_order=1,mrg_rxbuf=1\",\n+            \"version\": \"in_order=0,mrg_rxbuf=0,packed_vq=1\",\n             \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n@@ -293,12 +298,12 @@ class TestVhostPmdXstats(TestCase):\n         self.xstats_number_and_type_verify()\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_inorder_no_mergeable(self):\n+    def test_vhost_xstats_packed_ring_inorder_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP In_order no_mergeable Path.\n+        Test Case 6: Vhost pmd xstats test with packed ring inorder mergeable path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"packed_vq=0,in_order=1,mrg_rxbuf=0\",\n+            \"version\": \"in_order=1,mrg_rxbuf=1,packed_vq=1\",\n             \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n@@ -306,43 +311,67 @@ class TestVhostPmdXstats(TestCase):\n         self.xstats_number_and_type_verify()\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_mergeable(self):\n+    def test_vhost_xstats_packed_ring_inorder_no_mergeable_path(self):\n         \"\"\"\n-        performance for Vhost PVP Mergeable Path.\n+        Test Case 7: Vhost pmd xstats test with packed ring inorder non-mergeable path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"packed_vq=0,in_order=0,mrg_rxbuf=1\",\n-            \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n+            \"version\": \"in_order=1,mrg_rxbuf=0,vectorized=1,packed_vq=1\",\n+            \"path\": \"--rx-offloads=0x10 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n         self.start_virtio_testpmd(virtio_pmd_arg)\n         self.xstats_number_and_type_verify()\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_no_mergeable(self):\n+    def test_vhost_xstats_packed_ring_vectorized_path(self):\n         \"\"\"\n-        performance for Vhost PVP no_mergeable Path.\n+        Test Case 10: Vhost pmd xstats test with packed ring vectorized path\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1\",\n+            \"version\": \"in_order=1,mrg_rxbuf=0,vectorized=1,packed_vq=1\",\n             \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip\",\n         }\n         self.start_vhost_testpmd()\n         self.start_virtio_testpmd(virtio_pmd_arg)\n         self.xstats_number_and_type_verify()\n+        # stability test with basic packets number check\n+        self.scapy_num = 0\n+        date_old = datetime.datetime.now()\n+        date_new = date_old + datetime.timedelta(minutes=2)\n+        while 1:\n+            date_now = datetime.datetime.now()\n+            scope = \"broadcast\"\n+            self.dmac = \"ff:ff:ff:ff:ff:ff\"\n+            self.scapy_send_packet(64, self.dmac, 1)\n+            if date_now >= date_new:\n+                break\n+        self.send_verify(scope, self.scapy_num)\n         self.close_all_testpmd()\n \n-    def test_vhost_xstats_vector_rx(self):\n+    def test_vhost_xstats_packed_ring_vectorized_path_ringsize_not_powerof_2(self):\n         \"\"\"\n-        performance for Vhost PVP Vector_RX Path\n+        Test Case 11: Vhost pmd xstats test with packed ring vectorized path with ring size is not power of 2\n         \"\"\"\n         virtio_pmd_arg = {\n-            \"version\": \"packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1\",\n-            \"path\": \"--tx-offloads=0x0\",\n+            \"version\": \"in_order=1,mrg_rxbuf=0,vectorized=1,queue_size=1221,packed_vq=1\",\n+            \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --rxd=1221 --txd=1221\",\n         }\n         self.start_vhost_testpmd()\n         self.start_virtio_testpmd(virtio_pmd_arg)\n         self.xstats_number_and_type_verify()\n+        # stability test with basic packets number check\n+        self.scapy_num = 0\n+        date_old = datetime.datetime.now()\n+        date_new = date_old + datetime.timedelta(minutes=2)\n+        while 1:\n+            date_now = datetime.datetime.now()\n+            scope = \"broadcast\"\n+            self.dmac = \"ff:ff:ff:ff:ff:ff\"\n+            self.scapy_send_packet(64, self.dmac, 1)\n+            if date_now >= date_new:\n+                break\n+        self.send_verify(scope, self.scapy_num)\n         self.close_all_testpmd()\n \n     def close_all_testpmd(self):\n@@ -356,7 +385,7 @@ class TestVhostPmdXstats(TestCase):\n \n         self.vhost_user_pmd.execute_cmd(\"clear port xstats 1\")\n         out = self.vhost_user_pmd.execute_cmd(\"show port xstats 1\")\n-        packet = re.search(\"rx_%s_packets:\\s*(\\d*)\" % scope, out)\n+        packet = re.search(\"rx_q0_%s_packets:\\s*(\\d*)\" % scope, out)\n         sum_packet = packet.group(1)\n         self.verify(int(sum_packet) == 0, \"Insufficient the received package\")\n \n",
    "prefixes": [
        "V1",
        "2/2"
    ]
}