From: "Li, WeiyuanX" <weiyuanx.li@intel.com>
To: dts@dpdk.org, yuan.peng@intel.com
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V2 2/2] tests/vf_smoke modify ixgbe support vf jumbo verify.
Date: Fri, 13 May 2022 17:13:09 +0800 [thread overview]
Message-ID: <20220513091309.2890-2-weiyuanx.li@intel.com> (raw)
In-Reply-To: <20220513091309.2890-1-weiyuanx.li@intel.com>
From: Weiyuan Li <weiyuanx.li@intel.com>
Modify script supports set PF MTU for ixgbe driver.
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
v2:
-Add comments to vf_smoke script.
-Modify the general method to add PF MTU.
tests/TestSuite_vf_smoke.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_vf_smoke.py b/tests/TestSuite_vf_smoke.py
index e4f0c31b..c2d223b9 100644
--- a/tests/TestSuite_vf_smoke.py
+++ b/tests/TestSuite_vf_smoke.py
@@ -42,7 +42,7 @@ from .smoke_base import (
)
VF_MAC_ADDR = "00:11:22:33:44:55"
-
+ETHER_JUMBO_FRAME_MTU = 9000
class TestVfSmoke(TestCase):
def set_up_all(self):
@@ -71,9 +71,13 @@ class TestVfSmoke(TestCase):
# init pkt
self.pkt = Packet()
+ self.port = self.smoke_dut_ports[0]
+ self.dutobj = self.dut.ports_info[self.port]["port"]
# generate vf
self.dut.bind_interfaces_linux(self.kdriver)
+ # The MTU of ixgbe driver can only be set through pf setting
+ self.dutobj.enable_jumbo(framesize=ETHER_JUMBO_FRAME_MTU)
self.dut.generate_sriov_vfs_by_port(self.smoke_dut_ports[0], 1, self.kdriver)
self.vf_ports = self.dut.ports_info[self.smoke_dut_ports[0]]["vfs_port"]
self.verify(len(self.vf_ports) != 0, "VF create failed")
@@ -137,7 +141,7 @@ class TestVfSmoke(TestCase):
self.dut.send_expect("set fwd mac", "testpmd> ")
self.dut.send_expect("start", "testpmd> ")
self.pmd_out.wait_link_status_up(self.smoke_dut_ports[0])
- result = self.test_func.check_jumbo_frames()
+ result = self.test_func.check_jumbo_frames(self.kdriver)
self.verify(result, "enable disable jumbo frames failed")
def test_vf_rss(self):
--
2.18.2
next prev parent reply other threads:[~2022-05-13 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 9:13 [dts][PATCH V2 1/2] tests/smoke_base " Li, WeiyuanX
2022-05-13 9:13 ` Li, WeiyuanX [this message]
2022-05-16 5:48 ` [dts][PATCH V2 2/2] tests/vf_smoke " Chen, LingliX
2022-05-18 8:59 ` 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=20220513091309.2890-2-weiyuanx.li@intel.com \
--to=weiyuanx.li@intel.com \
--cc=dts@dpdk.org \
--cc=yuan.peng@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).