From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Huang, ZhiminX" <zhiminx.huang@intel.com>,
"dts@dpdk.org" <dts@dpdk.org>
Cc: "Huang, ZhiminX" <zhiminx.huang@intel.com>
Subject: Re: [dts] [PATCH V1 1/2] remove reload ice code
Date: Tue, 30 Mar 2021 01:39:06 +0000 [thread overview]
Message-ID: <b9f6439c064142d2ad4609b24398c87b@intel.com> (raw)
In-Reply-To: <1616735292-74549-2-git-send-email-zhiminx.huang@intel.com>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Zhimin Huang
> Sent: 2021年3月26日 13:08
> To: dts@dpdk.org
> Cc: Huang, ZhiminX <zhiminx.huang@intel.com>
> Subject: [dts] [PATCH V1 1/2] remove reload ice code
>
> *.cvl_dcf_acl_filter and cvl_limit_value_test remove reload ice code
>
> Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
> ---
> tests/TestSuite_cvl_dcf_acl_filter.py | 16 ----------------
> tests/TestSuite_cvl_limit_value_test.py | 15 ---------------
> 2 files changed, 31 deletions(-)
>
> diff --git a/tests/TestSuite_cvl_dcf_acl_filter.py
> b/tests/TestSuite_cvl_dcf_acl_filter.py
> index 826da9c..1d516fc 100644
> --- a/tests/TestSuite_cvl_dcf_acl_filter.py
> +++ b/tests/TestSuite_cvl_dcf_acl_filter.py
> @@ -749,12 +749,6 @@ class CVLDCFACLFilterTest(TestCase):
> self.testpmd_status = "close"
> #bind pf to kernel
> self.bind_nics_driver(self.dut_ports, driver="ice")
> - #move comms package to package folder
> - self.suite_config = rfc.get_suite_config(self)
> - comms_package_location =
> self.suite_config["comms_package_file_location"]
> - package_location = self.suite_config["package_file_location"]
> - self.dut.send_expect("cp %s %s" % (comms_package_location,
> package_location), "# ")
> - self.re_load_ice_driver()
this is part of set_up_all, so I thought the suite is designed for comms package, but I saw you remove the replace, is that mean, the suite is also qualified to test other ddp packages, e.g. OS package.
Could you please explain, why do the changes. Thanks.
> #set vf driver
> self.vf_driver = 'vfio-pci'
> self.dut.send_expect("modprobe uio", "# ") @@ -784,16 +778,6 @@ class
> CVLDCFACLFilterTest(TestCase):
> port.bind_driver(self.vf_driver)
> time.sleep(15)
>
> - def re_load_ice_driver(self):
> - """
> - remove and reload the ice driver
> - """
> - ice_driver_file_location = self.suite_config["ice_driver_file_location"]
> - self.dut.send_expect("rmmod ice", "# ", 60)
> - self.dut.send_expect("insmod %s" % ice_driver_file_location, "# ", 60)
> - self.dut.send_expect("ifconfig %s up" % self.pf0_intf, "# ", 15)
> - self.dut.send_expect("ifconfig %s up" % self.tester_iface0, "# ", 15)
> -
> def set_up(self):
> """
> Run before each test case.
> diff --git a/tests/TestSuite_cvl_limit_value_test.py
> b/tests/TestSuite_cvl_limit_value_test.py
> index 77ce016..b806474 100644
> --- a/tests/TestSuite_cvl_limit_value_test.py
> +++ b/tests/TestSuite_cvl_limit_value_test.py
> @@ -189,15 +189,6 @@ class TestCvlLimitValue(TestCase):
> self.dut.destroy_sriov_vfs_by_port(self.dut_ports[0])
> self.dut.destroy_sriov_vfs_by_port(self.dut_ports[1])
>
> - def re_load_ice_driver(self):
> - """
> - remove and reload the ice driver
> - """
> - ice_driver_file_location = self.suite_config["ice_driver_file_location"]
> - self.dut.send_expect("rmmod ice", "# ", 15)
> - self.dut.send_expect("insmod %s" % ice_driver_file_location, "# ", 60)
> - time.sleep(5)
> -
> def config_testpmd(self):
> self.pmd_output.execute_cmd("set fwd rxonly")
> self.pmd_output.execute_cmd("set verbose 1") @@ -813,12 +804,6 @@
> class TestCvlLimitValue(TestCase):
> def test_max_rule_number(self):
> #bind pf to kernel
> self.bind_nics_driver(self.dut_ports, driver="ice")
> - #move comms package to package folder
> - self.suite_config = rfc.get_suite_config(self)
> - comms_package_location =
> self.suite_config["comms_package_file_location"]
> - package_location = self.suite_config["package_file_location"]
> - self.dut.send_expect("cp %s %s" % (comms_package_location,
> package_location), "# ")
> - self.re_load_ice_driver()
> #set vf driver
> self.vf_driver = 'vfio-pci'
> self.dut.send_expect('modprobe vfio-pci', '#')
> --
> 1.8.3.1
next prev parent reply other threads:[~2021-03-30 1:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-26 5:08 [dts] [PATCH V1 0/2] remove reload ice and add pkg check Zhimin Huang
2021-03-26 5:08 ` [dts] [PATCH V1 1/2] remove reload ice code Zhimin Huang
2021-03-30 1:39 ` Tu, Lijuan [this message]
2021-03-30 2:19 ` Huang, ZhiminX
2021-03-26 5:08 ` [dts] [PATCH V1 2/2] tests/flexible: add pkg check and remove reload ice Zhimin Huang
2021-03-26 5:26 ` Huang, ZhiminX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b9f6439c064142d2ad4609b24398c87b@intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=zhiminx.huang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).