Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/87608/?format=api
http://patches.dpdk.org/api/patches/87608/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20210202135636.3877280-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": "<20210202135636.3877280-1-weix.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20210202135636.3877280-1-weix.ling@intel.com", "date": "2021-02-02T13:56:36", "name": "[V2] tests/loopback_virtio_user_server_mode:modify execute virtio-user server side testpmd command after client side started", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "3e474f6de48b11ee0ef335f146c9ec38acf26659", "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/20210202135636.3877280-1-weix.ling@intel.com/mbox/", "series": [ { "id": 15078, "url": "http://patches.dpdk.org/api/series/15078/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=15078", "date": "2021-02-02T13:56:36", "name": "[V2] tests/loopback_virtio_user_server_mode:modify execute virtio-user server side testpmd command after client side started", "version": 2, "mbox": "http://patches.dpdk.org/series/15078/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/87608/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/87608/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 510C2A052A;\n\tTue, 2 Feb 2021 07:03:27 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2B63F240250;\n\tTue, 2 Feb 2021 07:03:27 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 0D084240243\n for <dts@dpdk.org>; Tue, 2 Feb 2021 07:03:24 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Feb 2021 22:03:23 -0800", "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 01 Feb 2021 22:03:19 -0800" ], "IronPort-SDR": [ "\n xyLFlp2BUG5FtaUMkdzpw1vkaeKr34HzcSmRehBl5eItWJ0wWPt5l9fm+nqluYFT+cVWlYSNVh\n l5qNZsACIKMA==", "\n c48Bpso+F+0ZlTg1ZA9EUb4sCmhwOlk9M4jbIF4wteVU1Dunqj3rWJ1jhT1gtrm4KyhCkextUA\n TJGJTPcaG7xg==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9882\"; a=\"180879461\"", "E=Sophos;i=\"5.79,394,1602572400\"; d=\"scan'208\";a=\"180879461\"", "E=Sophos;i=\"5.79,394,1602572400\"; d=\"scan'208\";a=\"581822570\"" ], "From": "Ling Wei <weix.ling@intel.com>", "To": "dts@dpdk.org", "Cc": "Ling Wei <weix.ling@intel.com>", "Date": "Tue, 2 Feb 2021 13:56:36 +0000", "Message-Id": "<20210202135636.3877280-1-weix.ling@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dts] [PATCH V2] tests/loopback_virtio_user_server_mode:modify\n execute virtio-user server side testpmd command after client side started", "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": "v1:\nAccording to DPDK 'commit 9af79db20f4c(make server mode blocking),\nwhen launch virtio-user testpmd as server mode, virtio-user server\nside testpmd expected character will be 'wait for client side\nstarted...', after client side started, it change to 'testpmd>',\nso dts need modify execute virtio-user server side testpmd command\nafter client side started.\n\nv2:\nFix patch comments about dpdk commit description error.\n\nSigned-off-by: Ling Wei <weix.ling@intel.com>\n---\n tests/TestSuite_loopback_virtio_user_server_mode.py | 13 ++++++++-----\n 1 file changed, 8 insertions(+), 5 deletions(-)", "diff": "diff --git a/tests/TestSuite_loopback_virtio_user_server_mode.py b/tests/TestSuite_loopback_virtio_user_server_mode.py\nindex 9801175e..0178ca34 100644\n--- a/tests/TestSuite_loopback_virtio_user_server_mode.py\n+++ b/tests/TestSuite_loopback_virtio_user_server_mode.py\n@@ -92,7 +92,7 @@ class TestLoopbackVirtioUserServerMode(TestCase):\n out = self.dut.send_expect(\"cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'\", \"# \")\n return True if out == '2048' else False\n \n- def lanuch_virtio_user_testpmd(self, args):\n+ def lanuch_virtio_user_testpmd(self, args, set_fwd_mac=True, expected='testpmd> '):\n \"\"\"\n start testpmd of vhost user\n \"\"\"\n@@ -103,8 +103,9 @@ class TestLoopbackVirtioUserServerMode(TestCase):\n eal_param += \" --force-max-simd-bitwidth=512\"\n param = \"--rxq=1 --txq=1 --no-numa\"\n self.virtio_user_pmd.start_testpmd(cores=self.core_list_user, param=param, eal_param=eal_param, \\\n- no_pci=True, ports=[], prefix=\"virtio\", fixed_prefix=True)\n- self.virtio_user_pmd.execute_cmd(\"set fwd mac\", \"testpmd> \", 120)\n+ no_pci=True, ports=[], prefix=\"virtio\", fixed_prefix=True, expected=expected)\n+ if set_fwd_mac:\n+ self.virtio_user_pmd.execute_cmd(\"set fwd mac\", \"testpmd> \", 120)\n \n def lanuch_vhost_testpmd_with_multi_queue(self, extern_params=\"\"):\n \"\"\"\n@@ -251,8 +252,9 @@ class TestLoopbackVirtioUserServerMode(TestCase):\n self.nb_cores = 1\n virtio_pmd_arg = {\"version\": \"packed_vq=0,in_order=0,mrg_rxbuf=1\",\n \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip\"}\n- self.lanuch_virtio_user_testpmd(virtio_pmd_arg)\n+ self.lanuch_virtio_user_testpmd(virtio_pmd_arg, set_fwd_mac=False, expected='waiting for client connection...')\n self.lanuch_vhost_testpmd()\n+ self.virtio_user_pmd.execute_cmd(\"set fwd mac\", \"testpmd> \", 120)\n self.start_to_send_packets(self.virtio_user, self.vhost)\n self.calculate_avg_throughput(\"lanuch virtio first\", \"\")\n self.result_table_print()\n@@ -266,8 +268,9 @@ class TestLoopbackVirtioUserServerMode(TestCase):\n self.nb_cores = 1\n virtio_pmd_arg = {\"version\": \"packed_vq=1,in_order=0,mrg_rxbuf=1\",\n \"path\": \"--tx-offloads=0x0 --enable-hw-vlan-strip\"}\n- self.lanuch_virtio_user_testpmd(virtio_pmd_arg)\n+ self.lanuch_virtio_user_testpmd(virtio_pmd_arg, set_fwd_mac=False, expected='waiting for client connection...')\n self.lanuch_vhost_testpmd()\n+ self.virtio_user_pmd.execute_cmd(\"set fwd mac\", \"testpmd> \", 120)\n self.start_to_send_packets(self.virtio_user, self.vhost)\n self.calculate_avg_throughput(\"lanuch virtio first\", \"\")\n self.result_table_print()\n", "prefixes": [ "V2" ] }{ "id": 87608, "url": "