From: Song Jiale <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Song Jiale <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/*: optimize scripts
Date: Fri, 28 Oct 2022 14:19:56 +0000 [thread overview]
Message-ID: <20221028141956.28281-1-songx.jiale@intel.com> (raw)
the network card does not support a driver named "default", modify "default" to the actual driver.
Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
tests/TestSuite_iavf.py | 2 +-
tests/TestSuite_kernelpf_iavf.py | 2 +-
tests/TestSuite_vf_jumboframe.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_iavf.py b/tests/TestSuite_iavf.py
index 5444a7e3..5315c96e 100644
--- a/tests/TestSuite_iavf.py
+++ b/tests/TestSuite_iavf.py
@@ -147,7 +147,7 @@ class TestIavf(TestCase):
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port_1)
port = self.dut.ports_info[self.used_dut_port_1]["port"]
self.used_dut_port_1 = None
- self.bind_nic_driver(self.dut_ports[:2], driver="default")
+ self.bind_nic_driver(self.dut_ports[:2], driver=self.drivername)
self.env_done = False
def send_packet(self, mac, itf, tran_type="udp", count=1, pktLength=64, VID=100):
diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 73435339..381c52e4 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -172,7 +172,7 @@ class TestKernelpfIavf(TestCase):
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port)
self.used_dut_port = None
- self.bind_nic_driver(self.dut_ports, driver="default")
+ self.bind_nic_driver(self.dut_ports, driver=self.drivername)
self.env_done = False
diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py
index 42609e32..a6366b2d 100644
--- a/tests/TestSuite_vf_jumboframe.py
+++ b/tests/TestSuite_vf_jumboframe.py
@@ -117,7 +117,7 @@ class TestVfJumboFrame(TestCase):
if getattr(self, "used_dut_port", None) != None:
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port)
self.used_dut_port = None
- self.bind_nic_driver(self.dut_ports[:1], driver="default")
+ self.bind_nic_driver(self.dut_ports[:1], driver=self.drivername)
self.env_done = False
--
2.17.1
next reply other threads:[~2022-10-28 6:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-28 14:19 Song Jiale [this message]
2022-11-18 2:24 ` Li, WeiyuanX
2022-11-18 8:38 ` lijuan.tu
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=20221028141956.28281-1-songx.jiale@intel.com \
--to=songx.jiale@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).