Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/89094/?format=api
http://patches.dpdk.org/api/patches/89094/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20210315055026.20201-3-yufengx.mo@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": "<20210315055026.20201-3-yufengx.mo@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20210315055026.20201-3-yufengx.mo@intel.com", "date": "2021-03-15T05:50:16", "name": "[V1,02/12] tests/perf_test_base: extend vf l3fwd content", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "d12c2d6a09c2d9525641b4313094c486b8598013", "submitter": { "id": 1342, "url": "http://patches.dpdk.org/api/people/1342/?format=api", "name": "Yufen.Mo", "email": "yufengx.mo@intel.com" }, "delegate": { "id": 23642, "url": "http://patches.dpdk.org/api/users/23642/?format=api", "username": "lijuantu", "first_name": "LIjuan", "last_name": "Tu", "email": "lijuan.tu@intel.com" }, "mbox": "http://patches.dpdk.org/project/dts/patch/20210315055026.20201-3-yufengx.mo@intel.com/mbox/", "series": [ { "id": 15649, "url": "http://patches.dpdk.org/api/series/15649/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=15649", "date": "2021-03-15T05:50:14", "name": "vf_l3fwd_kernelpf: add more test scenario", "version": 1, "mbox": "http://patches.dpdk.org/series/15649/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/89094/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/89094/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 D9319A0561;\n\tMon, 15 Mar 2021 06:57:37 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C479416082D;\n\tMon, 15 Mar 2021 06:57:37 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id ED9FC160840\n for <dts@dpdk.org>; Mon, 15 Mar 2021 06:57:36 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Mar 2021 22:57:36 -0700", "from dpdk-moyufen06.sh.intel.com ([10.67.116.208])\n by fmsmga005.fm.intel.com with ESMTP; 14 Mar 2021 22:57:35 -0700" ], "IronPort-SDR": [ "\n E26oANJKsPomhFu4dRQ4rnJdDhOHGdCKDxqR42dqIU+dquGFQoxzOFHV1dxTY10qqnnG1KmDLT\n m1oTYDb0GZKg==", "\n 2H29Kb7QdM9dKg+Qk3cTXL6Mv0faug9U48Pbq5ghltMW+/4J4Qxx1qHN3AMPZ1KNKKJH1MY1qg\n 5UwJ04jVhS+w==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9923\"; a=\"186661282\"", "E=Sophos;i=\"5.81,249,1610438400\"; d=\"scan'208\";a=\"186661282\"", "E=Sophos;i=\"5.81,249,1610438400\"; d=\"scan'208\";a=\"604732169\"" ], "X-ExtLoop1": "1", "From": "yufengmx <yufengx.mo@intel.com>", "To": "dts@dpdk.org,\n\tlijuan.tu@intel.com", "Cc": "yufengmx <yufengx.mo@intel.com>", "Date": "Mon, 15 Mar 2021 13:50:16 +0800", "Message-Id": "<20210315055026.20201-3-yufengx.mo@intel.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20210315055026.20201-1-yufengx.mo@intel.com>", "References": "<20210315055026.20201-1-yufengx.mo@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dts] [PATCH V1 02/12] tests/perf_test_base: extend vf l3fwd content", "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": "#. unify vf l3fwd nic support list.\n#. add suite series name method.\n#. remove comiple restore limitation.\n#. rename host testpmd whitelist method.\n\nSigned-off-by: yufengmx <yufengx.mo@intel.com>\n---\n tests/perf_test_base.py | 38 ++++++++++++++++++++++++++++----------\n 1 file changed, 28 insertions(+), 10 deletions(-)", "diff": "diff --git a/tests/perf_test_base.py b/tests/perf_test_base.py\nindex 20f3e152..4b76e6b1 100644\n--- a/tests/perf_test_base.py\n+++ b/tests/perf_test_base.py\n@@ -51,6 +51,17 @@ from exception import VerifyFailure\n import utils\n \n \n+VF_L3FWD_NIC_SUPPORT = frozenset((\n+ \"niantic\",\n+ \"fortville_spirit\",\n+ \"fortville_25g\",\n+ \"fortville_eagle\",\n+ \"columbiaville_100g\",\n+ \"columbiaville_25g\",\n+ \"columbiaville_25gx2\",\n+))\n+\n+\n @unique\n class BIN_TYPE(Enum):\n L3FWD = 'l3fwd'\n@@ -625,14 +636,11 @@ class PerfTestBase(object):\n \"define RTE_TEST_TX_DESC_DEFAULT 2048/' \"\n \"./examples/l3fwd/l3fwd.h\"))\n if self.__mode is SUITE_TYPE.VF:\n- self.__l3fwd_lpm = self.__l3fwd_em = \\\n- self.__l3fwd_init(MATCH_MODE.EM, rename=False)\n # init testpmd\n if self.__pf_driver is not NIC_DRV.PCI_STUB:\n self.__init_host_testpmd()\n- else:\n- self.__l3fwd_em = self.__l3fwd_init(MATCH_MODE.EM)\n- self.__l3fwd_lpm = self.__l3fwd_init(MATCH_MODE.LPM)\n+ self.__l3fwd_em = self.__l3fwd_init(MATCH_MODE.EM)\n+ self.__l3fwd_lpm = self.__l3fwd_init(MATCH_MODE.LPM)\n \n def __preset_compilation(self):\n # Update compile config file and rebuild to get best perf on different nics\n@@ -673,7 +681,7 @@ class PerfTestBase(object):\n 'core_mask': core_mask,\n 'mem_channel': self.dut.get_memory_channels(),\n 'memsize': mem_size,\n- 'whitelist': self.__get_testpmd_whitelist(),\n+ 'whitelist': self.__get_host_testpmd_whitelist(),\n 'prefix': 'pf', })\n self.__host_pmd_con([cmd, \"testpmd> \", 120])\n self.__is_pmd_on = True\n@@ -1238,8 +1246,19 @@ class PerfTestBase(object):\n vf_driver = test_content.get('vf_driver')\n return pf_driver, vf_driver\n \n+ def __set_suite_series_name(self):\n+ pat = \"vf_l3fwd.*_kernelpf\"\n+ if re.match(pat, self.suite_name):\n+ self.__suite = SUITE_NAME.VF_KERNELPF\n+ return\n+ pat = \"testpmd*_perf\"\n+ if re.match(pat, self.suite_name):\n+ self.__suite = SUITE_NAME.TESTPMD_PERF\n+ return\n+ self.__suite = None\n+\n def __get_vf_test_content_from_cfg(self, test_content):\n- self.__suite = get_enum_name(self.suite_name, SUITE_NAME)\n+ self.__set_suite_series_name()\n # pf driver\n pf_driver, vf_driver = self.__get_suite_vf_pf_driver(test_content)\n if pf_driver and isinstance(pf_driver, str):\n@@ -1356,7 +1375,7 @@ class PerfTestBase(object):\n \n return whitelist\n \n- def __get_testpmd_whitelist(self):\n+ def __get_host_testpmd_whitelist(self):\n whitelist = ''.join(['-w {} '.format(info.get('pf_pci'))\n for _, info in self.__vf_ports_info.items()])\n return whitelist\n@@ -1404,8 +1423,7 @@ class PerfTestBase(object):\n self.dut.close_session(self.__pmd_session)\n self.__pmd_session = None\n self.__vf_destroy()\n- if self.__mode is SUITE_TYPE.PF:\n- self.__restore_compilation()\n+ self.__restore_compilation()\n \n def perf_set_cur_case(self, name):\n self.__cur_case = name\n", "prefixes": [ "V1", "02/12" ] }{ "id": 89094, "url": "