From: Weiyuan Li <weiyuanx.li@intel.com> To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li <weiyuanx.li@intel.com> Subject: [dts][PATCH V1 2/2] tests/vf_smoke modify ixgbe support vf jumbo verify. Date: Mon, 9 May 2022 15:46:39 +0800 Message-ID: <20220509074639.4135273-2-weiyuanx.li@intel.com> (raw) In-Reply-To: <20220509074639.4135273-1-weiyuanx.li@intel.com> Modify script supports set PF MTU for ixgbe driver. Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com> --- tests/TestSuite_vf_smoke.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vf_smoke.py b/tests/TestSuite_vf_smoke.py index e4f0c31b..685a54a0 100644 --- a/tests/TestSuite_vf_smoke.py +++ b/tests/TestSuite_vf_smoke.py @@ -32,6 +32,7 @@ from framework.packet import Packet from framework.pmd_output import PmdOutput from framework.test_case import TestCase +from framework.utils import RED from .smoke_base import ( DEFAULT_MTU_VALUE, @@ -74,6 +75,7 @@ class TestVfSmoke(TestCase): # generate vf self.dut.bind_interfaces_linux(self.kdriver) + self.set_pf_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") @@ -121,6 +123,12 @@ class TestVfSmoke(TestCase): if out == "" or "No such file or directory" in out: self.vf_launch_dpdk_app() + def set_pf_mtu(self): + self.dut.send_expect(f"ifconfig {self.pf_interface} mtu {JUMBO_FRAME_LENGTH}", "# ") + out = self.dut.send_expect(f"ip link show {self.pf_interface}", "# ") + if '9000' not in out: + print(RED("Please set mtu for case vf_jumbo_frames case!")) + def vf_launch_dpdk_app(self): self.pmd_out.start_testpmd(cores=self.cores, ports=self.ports, param=self.param) @@ -137,7 +145,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-09 7:46 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-09 7:46 [dts][PATCH V1 1/2] tests/smoke_base " Weiyuan Li 2022-05-09 7:46 ` Weiyuan Li [this message] 2022-05-10 2:46 ` [dts][PATCH V1 2/2] tests/vf_smoke " Chen, LingliX 2022-05-10 3:31 ` [dts][PATCH V1 1/2] tests/smoke_base " Peng, Yuan
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=20220509074639.4135273-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
test suite reviews and discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \ dts@dpdk.org public-inbox-index dts Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.dts AGPL code for this site: git clone https://public-inbox.org/public-inbox.git