diff mbox series

[V2,2/2] tests/vf_smoke modify ixgbe support vf jumbo verify.

Message ID 20220513091309.2890-2-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers show
Series [V2,1/2] tests/smoke_base modify ixgbe support vf jumbo verify. | expand

Checks

Context Check Description
ci/Intel-dts-format-test fail Testing issues
ci/Intel-dts-suite-test fail Apply issues
ci/Intel-dts-pylama-test success Testing OK

Commit Message

Li, WeiyuanX May 13, 2022, 9:13 a.m. UTC
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(-)

Comments

Chen, LingliX May 16, 2022, 5:48 a.m. UTC | #1
> -----Original Message-----
> From: Li, WeiyuanX <weiyuanx.li@intel.com>
> Sent: Friday, May 13, 2022 5:13 PM
> To: dts@dpdk.org; Peng, Yuan <yuan.peng@intel.com>
> Cc: Li, WeiyuanX <weiyuanx.li@intel.com>
> Subject: [dts][PATCH V2 2/2] tests/vf_smoke modify ixgbe support vf jumbo
> verify.
> 
> 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.
> 
Tested-by: Lingli Chen <linglix.chen@intel.com>
Tu, Lijuan May 18, 2022, 8:59 a.m. UTC | #2
On Fri, 13 May 2022 17:13:09 +0800, "Li, WeiyuanX" <weiyuanx.li@intel.com> wrote:
> 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>


Series applied, thanks
diff mbox series

Patch

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):