Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/89535/?format=api
https://patches.dpdk.org/api/patches/89535/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20210319064658.4774-1-weix.ling@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": "<20210319064658.4774-1-weix.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20210319064658.4774-1-weix.ling@intel.com", "date": "2021-03-19T06:46:58", "name": "[V1,7/9] tests/virtio_event_idx_interrupt:modify hard code bind cbdma device to igb_uio by drivername in execution.cfg", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "4005f0f436e02872e085a9efde65b732c2f3a43e", "submitter": { "id": 1828, "url": "https://patches.dpdk.org/api/people/1828/?format=api", "name": "Ling, WeiX", "email": "weix.ling@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20210319064658.4774-1-weix.ling@intel.com/mbox/", "series": [ { "id": 15786, "url": "https://patches.dpdk.org/api/series/15786/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=15786", "date": "2021-03-19T06:45:58", "name": "modify hard code bind cbdma device to igb_uio by drivername in execution.cfg", "version": 1, "mbox": "https://patches.dpdk.org/series/15786/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/89535/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/89535/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 62E10A0562;\n\tFri, 19 Mar 2021 07:48:02 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5D6E74067C;\n\tFri, 19 Mar 2021 07:48:02 +0100 (CET)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 52E754003F\n for <dts@dpdk.org>; Fri, 19 Mar 2021 07:48:01 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Mar 2021 23:48:00 -0700", "from unknown (HELO localhost.localdomain) ([10.240.183.222])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Mar 2021 23:47:58 -0700" ], "IronPort-SDR": [ "\n 7a5tBsrykk7SuwiUXCOV4X4JypJyNMB2GdJ7HnEZrA8K+Nc9z+G2O896O1WvQx1VwL74PRMS+Q\n I91icFPAMYXA==", "\n CD+jFa/4DuSIhHBCnHk/IRadKTUhm9/1cUuSlV9SeLXuN2VXAjmcC69s3qgZgkUT0uOaA4spK4\n mwWpO2Ap21CA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9927\"; a=\"251191917\"", "E=Sophos;i=\"5.81,261,1610438400\"; d=\"scan'208\";a=\"251191917\"", "E=Sophos;i=\"5.81,261,1610438400\"; d=\"scan'208\";a=\"606504805\"" ], "From": "Ling Wei <weix.ling@intel.com>", "To": "dts@dpdk.org", "Cc": "Ling Wei <weix.ling@intel.com>", "Date": "Fri, 19 Mar 2021 14:46:58 +0800", "Message-Id": "<20210319064658.4774-1-weix.ling@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dts] [PATCH V1 7/9] tests/virtio_event_idx_interrupt:modify hard\n code bind cbdma device to igb_uio by drivername in execution.cfg", "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": "1.Modify hard code bind cbdma device to igb_uio by drivername\n in execution.cfg.\n2.Adjust code format.\n\nSigned-off-by: Ling Wei <weix.ling@intel.com>\n---\n tests/TestSuite_virtio_event_idx_interrupt.py | 32 ++++++-------------\n 1 file changed, 10 insertions(+), 22 deletions(-)", "diff": "diff --git a/tests/TestSuite_virtio_event_idx_interrupt.py b/tests/TestSuite_virtio_event_idx_interrupt.py\nindex f92298e2..b4c9de15 100644\n--- a/tests/TestSuite_virtio_event_idx_interrupt.py\n+++ b/tests/TestSuite_virtio_event_idx_interrupt.py\n@@ -55,12 +55,10 @@ class TestVirtioIdxInterrupt(TestCase):\n self.dut_ports = self.dut.get_ports()\n self.verify(len(self.dut_ports) >= 1, \"Insufficient ports for testing\")\n self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])\n- self.cores_num = len([n for n in self.dut.cores if int(n['socket'])\n- == self.ports_socket])\n+ self.cores_num = len([n for n in self.dut.cores if int(n['socket'])== self.ports_socket])\n self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])\n self.base_dir = self.dut.base_dir.replace('~', '/root')\n self.pf_pci = self.dut.ports_info[0]['pci']\n-\n self.out_path = '/tmp'\n out = self.tester.send_expect('ls -d %s' % self.out_path, '# ')\n if 'No such file or directory' in out:\n@@ -84,20 +82,19 @@ class TestVirtioIdxInterrupt(TestCase):\n \n def get_core_mask(self):\n self.core_config = \"1S/%dC/1T\" % (self.nb_cores + 1)\n- self.verify(self.cores_num >= (self.nb_cores + 1),\n- \"There has not enough cores to test this case %s\" %\n- self.running_case)\n+ self.verify(self.cores_num >= (self.nb_cores + 1),\"There has not enough cores to test this case %s\" %self.running_case)\n self.core_list = self.dut.get_core_list(self.core_config)\n \n def get_cbdma_ports_info_and_bind_to_dpdk(self, cbdma_num):\n \"\"\"\n get all cbdma ports\n \"\"\"\n- self.dut.setup_modules(self.target, \"igb_uio\",\"None\")\n+ # check driver name in execution.cfg\n+ self.verify(self.drivername == 'igb_uio',\n+ \"CBDMA test case only use igb_uio driver, need config drivername=igb_uio in execution.cfg\")\n out = self.dut.send_expect('./usertools/dpdk-devbind.py --status-dev misc', '# ', 30)\n cbdma_dev_infos = re.findall('\\s*(0000:\\d+:\\d+.\\d+)', out)\n self.verify(len(cbdma_dev_infos) >= cbdma_num, 'There no enough cbdma device to run this suite')\n-\n used_cbdma = cbdma_dev_infos[0:cbdma_num]\n dmas_info = ''\n for dmas in used_cbdma:\n@@ -106,8 +103,7 @@ class TestVirtioIdxInterrupt(TestCase):\n dmas_info += dmas\n self.dmas_info = dmas_info[:-1]\n self.device_str = ' '.join(used_cbdma)\n- self.dut.send_expect('./usertools/dpdk-devbind.py --force --bind=%s %s %s' %\n- (\"igb_uio\", self.device_str, self.pf_pci), '# ', 60)\n+ self.dut.send_expect('./usertools/dpdk-devbind.py --force --bind=%s %s' % (self.drivername, self.device_str), '# ', 60)\n \n def bind_cbdma_device_to_kernel(self):\n if self.device_str is not None:\n@@ -177,8 +173,7 @@ class TestVirtioIdxInterrupt(TestCase):\n self.verify(self.vm_intf not in out, \"the virtio-pci down failed\")\n self.vm_dut.send_expect(\"ifconfig %s up\" % self.vm_intf, \"#\")\n if self.queues > 1:\n- self.vm_dut.send_expect(\"ethtool -L %s combined %d\" %\n- (self.vm_intf, self.queues), \"#\", 20)\n+ self.vm_dut.send_expect(\"ethtool -L %s combined %d\" %(self.vm_intf, self.queues), \"#\", 20)\n \n def start_to_send_packets(self, delay):\n \"\"\"\n@@ -189,7 +184,6 @@ class TestVirtioIdxInterrupt(TestCase):\n self.tester.scapy_append('a=[Ether(dst=\"%s\")/IP(src=\"0.240.74.101\",proto=255)/UDP()/(\"X\"*18)]' % (self.dst_mac))\n self.tester.scapy_append('wrpcap(\"%s/interrupt.pcap\", a)' % self.out_path)\n self.tester.scapy_execute()\n-\n tgen_input.append((port, port, \"%s/interrupt.pcap\" % self.out_path))\n self.tester.pktgen.clear_streams()\n fields_config = {'ip': {'dst': {'action': 'random'}, }, }\n@@ -210,26 +204,21 @@ class TestVirtioIdxInterrupt(TestCase):\n # reload virtio device to check the virtio-net can receive packets\n for i in range(reload_times+1):\n if time.time() - start_time > reload_times*30:\n- self.logger.error(\"The ixia has stop to send packets, \"\n- \"please change the delay time of ixia\")\n+ self.logger.error(\"The ixia has stop to send packets, please change the delay time of ixia\")\n self.logger.info(\"The virtio device has reload %d times\" % i)\n return False\n self.logger.info(\"The virtio net device reload %d times\" % i)\n- self.vm_dut.send_expect(\"tcpdump -n -vv -i %s\" % self.vm_intf,\n- \"tcpdump\", 30)\n+ self.vm_dut.send_expect(\"tcpdump -n -vv -i %s\" % self.vm_intf, \"tcpdump\", 30)\n time.sleep(5)\n out = self.vm_dut.get_session_output(timeout=3)\n self.vm_dut.send_expect(\"^c\", \"#\", 30)\n- self.verify(\"ip-proto-255\" in out,\n- \"The virtio device can not receive packets\"\n- \"after reload %d times\" % i)\n+ self.verify(\"ip-proto-255\" in out, \"The virtio device can not receive packets after reload %d times\" % i)\n time.sleep(2)\n # reload virtio device\n self.vm_dut.restore_interfaces()\n time.sleep(3)\n self.vm_dut.send_expect(\"ifconfig %s down\" % self.vm_intf, \"#\")\n self.vm_dut.send_expect(\"ifconfig %s up\" % self.vm_intf, \"#\")\n-\n # wait ixia thread exit\n self.logger.info(\"wait the thread of ixia to exit\")\n while(1):\n@@ -257,7 +246,6 @@ class TestVirtioIdxInterrupt(TestCase):\n queue_index + \\\n \"rx-packets:%d, tx-packets:%d\" %\n (rx_packets, tx_packets))\n-\n self.vhost.send_expect(\"clear port stats all\", \"testpmd> \", 60)\n \n def stop_all_apps(self):\n", "prefixes": [ "V1", "7/9" ] }{ "id": 89535, "url": "