Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114407/?format=api
http://patches.dpdk.org/api/patches/114407/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20220729022249.1000198-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": "<20220729022249.1000198-1-weix.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220729022249.1000198-1-weix.ling@intel.com", "date": "2022-07-29T02:22:49", "name": "[V1,2/2] tests/vhost_user_interrupt_cbdma: delete testsuite as not support", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "45e75d163e611656854ff7143fe36af4660f0185", "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/20220729022249.1000198-1-weix.ling@intel.com/mbox/", "series": [ { "id": 24122, "url": "http://patches.dpdk.org/api/series/24122/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=24122", "date": "2022-07-29T02:22:27", "name": "delete vhost_user_interrupt_cbdma", "version": 1, "mbox": "http://patches.dpdk.org/series/24122/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/114407/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/114407/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 0D77BA04FD;\n\tFri, 29 Jul 2022 04:27:48 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0152542684;\n\tFri, 29 Jul 2022 04:27:48 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 7166D4014F\n for <dts@dpdk.org>; Fri, 29 Jul 2022 04:27:46 +0200 (CEST)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Jul 2022 19:27:45 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.222])\n by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Jul 2022 19:27:43 -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=1659061666; x=1690597666;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=2sn72/c5ygRVcGyF6n8xD7Nb6YhFw4Mj5FoyZaLf7e0=;\n b=RDobaR+U8eDpuQJoOLwTLrWV7tgx/PvFqRHXrxztQ4Z1glEr+L4535YG\n 0hhE9qljsMnwZT8f0qnxpvm88kJl5kKYOpqDZF9LIoSGKCrzo5BbUwAd5\n NZYFqAt7KoAOff3N7k0LZjBo6ntVJmSo0q3UL0Qydf8HXMX2BgcTHkCtf\n S1I6uSUwbUM07bryhwRg84fLkYYW5nXeaKEEp26WBNVizfx/gyUlgryKP\n I9HIM4B0IJQFgLprLt5JLHzbTW4VQH0QQjbU44z2SM8lgUXaWkPhB1qzB\n pBlm8v6DCL5fLYxU/d/M9quBSUDOQMlBHZut5vLtkbY6kz6Y0zCQl75ZL Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10422\"; a=\"286222068\"", "E=Sophos;i=\"5.93,200,1654585200\"; d=\"scan'208\";a=\"286222068\"", "E=Sophos;i=\"5.93,200,1654585200\"; d=\"scan'208\";a=\"598114114\"" ], "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_user_interrupt_cbdma: delete\n testsuite as not support", "Date": "Thu, 28 Jul 2022 22:22:49 -0400", "Message-Id": "<20220729022249.1000198-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": "Interrupt with async datapath requires vhostpmd local patch support,\nbut it doesn't support it right now, so delete the\nvhost_user_interrupt_cbdma testsuite.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n tests/TestSuite_vhost_user_interrupt_cbdma.py | 296 ------------------\n 1 file changed, 296 deletions(-)\n delete mode 100644 tests/TestSuite_vhost_user_interrupt_cbdma.py", "diff": "diff --git a/tests/TestSuite_vhost_user_interrupt_cbdma.py b/tests/TestSuite_vhost_user_interrupt_cbdma.py\ndeleted file mode 100644\nindex ca0b6ee8..00000000\n--- a/tests/TestSuite_vhost_user_interrupt_cbdma.py\n+++ /dev/null\n@@ -1,296 +0,0 @@\n-# BSD LICENSE\n-#\n-# Copyright (c) <2022>, Intel Corporation.\n-# All rights reserved.\n-#\n-# Redistribution and use in source and binary forms, with or without\n-# modification, are permitted provided that the following conditions\n-# are met:\n-#\n-# * Redistributions of source code must retain the above copyright\n-# notice, this list of conditions and the following disclaimer.\n-# * Redistributions in binary form must reproduce the above copyright\n-# notice, this list of conditions and the following disclaimer in\n-# the documentation and/or other materials provided with the\n-# distribution.\n-# * Neither the name of Intel Corporation nor the names of its\n-# contributors may be used to endorse or promote products derived\n-# from this software without specific prior written permission.\n-#\n-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n-# \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n-\n-\"\"\"\n-DPDK Test suite.\n-Vhost enqueue interrupt need test with l3fwd-power sample\n-\"\"\"\n-\n-import re\n-import time\n-\n-import framework.utils as utils\n-from framework.test_case import TestCase\n-\n-\n-class TestVhostUserInterruptCbdma(TestCase):\n- def set_up_all(self):\n- \"\"\"\n- Run at the start of each test suite.\n-\n- \"\"\"\n- self.queues = 1\n- self.cores_num = len([n for n in self.dut.cores if int(n[\"socket\"]) == 0])\n- self.vmac = \"00:11:22:33:44:10\"\n- self.pci_info = self.dut.ports_info[0][\"pci\"]\n- self.prepare_l3fwd_power()\n- self.app_l3fwd_power_path = self.dut.apps_name[\"l3fwd-power\"]\n- self.app_testpmd_path = self.dut.apps_name[\"test-pmd\"]\n- self.testpmd_name = self.app_testpmd_path.split(\"/\")[-1]\n- self.l3fwdpower_name = self.app_l3fwd_power_path.split(\"/\")[-1]\n-\n- self.dut_ports = self.dut.get_ports()\n- self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])\n- # get cbdma device\n- self.cbdma_dev_infos = []\n- self.dmas_info = None\n- self.device_str = None\n-\n- def set_up(self):\n- \"\"\"\n- Run before each test case.\n- \"\"\"\n- # Clean the execution ENV\n- self.verify_info = []\n- self.dut.send_expect(\"killall -s INT %s\" % self.testpmd_name, \"#\")\n- self.dut.send_expect(\"killall %s\" % self.l3fwdpower_name, \"#\")\n- self.dut.send_expect(\"rm -rf ./vhost-net*\", \"#\")\n- self.vhost = self.dut.new_session(suite=\"vhost-l3fwd\")\n- self.virtio_user = self.dut.new_session(suite=\"virtio-user\")\n-\n- def prepare_l3fwd_power(self):\n- out = self.dut.build_dpdk_apps(\"examples/l3fwd-power\")\n- self.verify(\"Error\" not in out, \"compilation l3fwd-power error\")\n-\n- def get_core_list(self):\n- \"\"\"\n- get core list depend on the core number\n- \"\"\"\n- need_num = 2 * self.queues + 1\n- self.core_config = \"1S/%dC/1T\" % need_num\n- self.verify(\n- self.cores_num >= need_num, \"There has not enought cores to test this case\"\n- )\n- core_list = self.dut.get_core_list(self.core_config)\n- self.core_list_virtio = core_list[0 : self.queues + 1]\n- self.core_list_l3fwd = core_list[self.queues + 1 : need_num]\n-\n- def lanuch_virtio_user(self, packed=False):\n- \"\"\"\n- launch virtio-user with server mode\n- \"\"\"\n- vdev = (\n- \"net_virtio_user0,mac=%s,path=./vhost-net,server=1,queues=%d\"\n- % (self.vmac, self.queues)\n- if not packed\n- else \"net_virtio_user0,mac=%s,path=./vhost-net,server=1,queues=%d,packed_vq=1\"\n- % (self.vmac, self.queues)\n- )\n- eal_params = self.dut.create_eal_parameters(\n- cores=self.core_list_virtio, prefix=\"virtio\", no_pci=True, vdevs=[vdev]\n- )\n-\n- if self.check_2M_env:\n- eal_params += \" --single-file-segments\"\n- para = \" -- -i --rxq=%d --txq=%d --rss-ip\" % (self.queues, self.queues)\n- command_line_client = self.app_testpmd_path + \" \" + eal_params + para\n- self.virtio_user.send_expect(\n- command_line_client, \"waiting for client connection...\", 120\n- )\n-\n- def get_cbdma_ports_info_and_bind_to_dpdk(self, cbdma_num):\n- \"\"\"\n- get all cbdma ports\n- \"\"\"\n- out = self.dut.send_expect(\n- \"./usertools/dpdk-devbind.py --status-dev dma\", \"# \", 30\n- )\n- device_info = out.split(\"\\n\")\n- for device in device_info:\n- pci_info = re.search(\"\\s*(0000:\\S*:\\d*.\\d*)\", device)\n- if pci_info is not None:\n- dev_info = pci_info.group(1)\n- # the numa id of ioat dev, only add the device which\n- # on same socket with nic dev\n- bus = int(dev_info[5:7], base=16)\n- if bus >= 128:\n- cur_socket = 1\n- else:\n- cur_socket = 0\n- if self.ports_socket == cur_socket:\n- self.cbdma_dev_infos.append(pci_info.group(1))\n- self.verify(\n- len(self.cbdma_dev_infos) >= cbdma_num,\n- \"There no enough cbdma device to run this suite\",\n- )\n- used_cbdma = self.cbdma_dev_infos[0:cbdma_num]\n- dmas_info = \"\"\n- for dmas in used_cbdma:\n- number = used_cbdma.index(dmas)\n- dmas = \"txq{}@{};\".format(number, dmas)\n- dmas_info += dmas\n- self.dmas_info = dmas_info[:-1]\n- self.device_str = \" \".join(used_cbdma)\n- self.dut.send_expect(\n- \"./usertools/dpdk-devbind.py --force --bind=%s %s\"\n- % (self.drivername, self.device_str),\n- \"# \",\n- 60,\n- )\n-\n- def bind_cbdma_device_to_kernel(self):\n- if self.device_str is not None:\n- self.dut.send_expect(\"modprobe ioatdma\", \"# \")\n- self.dut.send_expect(\n- \"./usertools/dpdk-devbind.py -u %s\" % self.device_str, \"# \", 30\n- )\n- self.dut.send_expect(\n- \"./usertools/dpdk-devbind.py --force --bind=ioatdma %s\"\n- % self.device_str,\n- \"# \",\n- 60,\n- )\n-\n- @property\n- def check_2M_env(self):\n- out = self.dut.send_expect(\n- \"cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'\", \"# \"\n- )\n- return True if out == \"2048\" else False\n-\n- def lanuch_l3fwd_power(self):\n- \"\"\"\n- launch l3fwd-power with a virtual vhost device\n- \"\"\"\n- self.logger.info(\"Launch l3fwd_sample sample:\")\n- # config the interrupt cores\n- config_info = \"\"\n- for i in range(self.queues):\n- if config_info != \"\":\n- config_info += \",\"\n- config_info += \"(0,%d,%s)\" % (i, self.core_list_l3fwd[i])\n- info = {\"core\": self.core_list_l3fwd[i], \"port\": 0, \"queue\": i}\n- self.verify_info.append(info)\n-\n- example_cmd = self.app_l3fwd_power_path + \" \"\n- example_cmd += \" --log-level=9 \"\n- self.get_cbdma_ports_info_and_bind_to_dpdk(4)\n- vdev = \"'net_vhost0,iface=vhost-net,queues=%d,client=1,dmas=[%s]'\" % (\n- self.queues,\n- self.dmas_info,\n- )\n- eal_params = self.dut.create_eal_parameters(\n- cores=self.core_list_l3fwd,\n- ports=self.cbdma_dev_infos[0:4],\n- vdevs=[vdev],\n- )\n- para = \" -- -p 0x1 --parse-ptype 1 --config '%s' --interrupt-only\" % config_info\n- command_line_client = example_cmd + eal_params + para\n- self.vhost.get_session_before(timeout=2)\n- self.vhost.send_expect(command_line_client, \"POWER\", 40)\n- time.sleep(10)\n- out = self.vhost.get_session_before()\n- if \"Error\" in out and \"Error opening\" not in out:\n- self.logger.error(\"Launch l3fwd-power sample error\")\n- else:\n- self.logger.info(\"Launch l3fwd-power sample finished\")\n-\n- def check_vhost_core_status(self, status):\n- \"\"\"\n- check the cpu status\n- \"\"\"\n- out = self.vhost.get_session_before()\n- for i in range(len(self.verify_info)):\n- if status == \"waked up\":\n- info = \"lcore %s is waked up from rx interrupt on port %d queue %d\"\n- info = info % (\n- self.verify_info[i][\"core\"],\n- self.verify_info[i][\"port\"],\n- self.verify_info[i][\"queue\"],\n- )\n- elif status == \"sleeps\":\n- info = (\n- \"lcore %s sleeps until interrupt triggers\"\n- % self.verify_info[i][\"core\"]\n- )\n- self.verify(info in out, \"The CPU status not right for %s\" % info)\n- self.logger.info(info)\n-\n- def send_and_verify(self):\n- \"\"\"\n- start to send packets and check the cpu status\n- stop and restart to send packets and check the cpu status\n- \"\"\"\n- self.virtio_user.send_expect(\"start\", \"testpmd> \", 20)\n- self.check_vhost_core_status(\"waked up\")\n-\n- self.virtio_user.send_expect(\"stop\", \"testpmd> \", 20)\n- self.check_vhost_core_status(\"sleeps\")\n-\n- self.virtio_user.send_expect(\"start\", \"testpmd> \", 20)\n- self.check_vhost_core_status(\"waked up\")\n-\n- def close_testpmd_and_session(self):\n- self.virtio_user.send_expect(\"quit\", \"#\", 20)\n- self.dut.close_session(self.vhost)\n- self.dut.close_session(self.virtio_user)\n-\n- def test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample_when_multi_queues_enabled_and_cbdma_enabled(\n- self,\n- ):\n- \"\"\"\n- Test Case1: Wake up split ring vhost-user cores with l3fwd-power sample when multi queues and cbdma are enabled\n- \"\"\"\n- self.queues = 4\n- self.get_core_list()\n- self.lanuch_virtio_user(packed=False)\n- self.lanuch_l3fwd_power()\n- self.virtio_user.send_expect(\"set fwd txonly\", \"testpmd> \", 20)\n- self.send_and_verify()\n-\n- def test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample_when_multi_queues_enabled_and_cbdma_enabled(\n- self,\n- ):\n- \"\"\"\n- Test Case2: Wake up packed ring vhost-user cores with l3fwd-power sample when multi queues and cbdma are enabled\n- \"\"\"\n- self.queues = 4\n- self.get_core_list()\n- self.lanuch_virtio_user(packed=True)\n- self.lanuch_l3fwd_power()\n- self.virtio_user.send_expect(\"set fwd txonly\", \"testpmd> \", 20)\n- self.send_and_verify()\n-\n- def tear_down(self):\n- \"\"\"\n- Run after each test case.\n- \"\"\"\n- self.close_testpmd_and_session()\n- self.dut.send_expect(\"killall %s\" % self.l3fwdpower_name, \"#\")\n- self.dut.send_expect(\"killall -s INT %s\" % self.testpmd_name, \"#\")\n- self.dut.kill_all()\n- self.bind_cbdma_device_to_kernel()\n-\n- def tear_down_all(self):\n- \"\"\"\n- Run after each test suite.\n- \"\"\"\n- pass\n", "prefixes": [ "V1", "2/2" ] }{ "id": 114407, "url": "