From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1] tests/kernelpf_iavf: adjust the order of getting NIC driver version
Date: Mon, 18 Jan 2021 15:35:59 +0800 [thread overview]
Message-ID: <20210118073559.23995-1-weix.xie@intel.com> (raw)
In set_up_all func, the device can't be used which is bound to vfio-pci.
So adjust the order of getting nic driver version.
Signed-off-by: Xie wei <weix.xie@intel.com>
---
tests/TestSuite_kernelpf_iavf.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 68f16096..2fed9b7f 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -94,10 +94,6 @@ class TestKernelpfIavf(TestCase):
self.tester_intf1 = self.tester.get_interface(tester_port1)
self.l3fwdpower_name = self.dut.apps_name['l3fwd-power'].strip().split('/')[-1]
- # get driver version
- out = self.dut.send_expect("ethtool -i %s | awk -F':' 'NR==2{print $2}'" % self.host_intf, "# ")
- self.driver_version = out.replace(" ", "")
-
def set_up(self):
if self.running_case == "test_vf_mac_filter":
@@ -159,6 +155,10 @@ class TestKernelpfIavf(TestCase):
self.dut.send_expect("ip link set %s vf 0 mac %s" %
(self.host_intf, self.vf_mac), "# ")
+ # get driver version
+ out = self.dut.send_expect("ethtool -i %s | awk -F':' 'NR==2{print $2}'" % self.host_intf, "# ")
+ self.driver_version = out.replace(" ", "")
+
try:
for port in self.sriov_vfs_port:
--
2.17.1
next reply other threads:[~2021-01-18 7:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-18 7:35 Xie wei [this message]
2021-01-18 7:36 ` Xie, WeiX
2021-01-19 9:02 ` Zhao, HaiyangX
2021-01-21 8:03 ` Tu, Lijuan
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=20210118073559.23995-1-weix.xie@intel.com \
--to=weix.xie@intel.com \
--cc=dts@dpdk.org \
/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).