test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe
@ 2020-02-19  8:03 Jiaqi Min
  2020-02-25  6:50 ` He, Zhiwei
  2020-02-28  1:09 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Jiaqi Min @ 2020-02-19  8:03 UTC (permalink / raw)
  To: dts; +Cc: Jiaqi Min

add ixgbe vf jumbo frame test case

Signed-off-by: Jiaqi Min <jiaqix.min@intel.com>
---
 conf/vf_daemon.cfg           | 44 +++++++++++++++++++++++++++++++
 tests/TestSuite_vf_daemon.py | 51 ++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
 create mode 100644 conf/vf_daemon.cfg

diff --git a/conf/vf_daemon.cfg b/conf/vf_daemon.cfg
new file mode 100644
index 0000000..fe762f8
--- /dev/null
+++ b/conf/vf_daemon.cfg
@@ -0,0 +1,44 @@
+# Configuration sample: sriov_kvm.cfg
+[vm0]
+cpu =
+    model=host,number=4,cpupin=5 6 7 8;
+disk =
+    file=/storage/vm-image/vm0.img,opt_format=qcow2,opt_if=virtio,opt_index=0,opt_media=disk;
+mem =
+    size=10250;
+login =
+    user=root,password=tester;
+# net option is not necessary for libvirt, comment out below 2 lines if using libvirt
+net =
+    type=nic,opt_vlan=0;
+    type=user,opt_vlan=0;
+qga = 
+    enable=yes;
+# vnc option is not supported by libvirt yet, comment out below 2 lines if using libvirt
+vnc = 
+    displayNum=1;
+# daemon option is not supported by libvirt yet, comment out below 2 lines if using libvirt
+daemon =
+    enable=yes;
+
+[vm1]
+cpu =
+    model=host,number=4,cpupin=14 15 16 17;
+disk =
+    file=/storage/vm-image/vm0.img_copy.img,opt_format=qcow2,opt_if=virtio,opt_index=0,opt_media=disk;
+mem =
+    size=10250;
+login =
+    user=root,password=tester;
+# net option is not necessary for libvirt, comment out below 2 lines if using libvirt
+net =
+    type=nic,opt_vlan=0;
+    type=user,opt_vlan=0;
+qga = 
+    enable=yes;
+# vnc option is not supported by libvirt yet, comment out below 2 lines if using libvirt
+vnc = 
+    displayNum=2;
+# daemon option is not supported by libvirt yet, comment out below 2 lines if using libvirt
+daemon =
+    enable=yes;
diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py
index b91de9e..f01f1db 100644
--- a/tests/TestSuite_vf_daemon.py
+++ b/tests/TestSuite_vf_daemon.py
@@ -705,6 +705,57 @@ class TestVfDaemon(TestCase):
         self.vm0_testpmd.execute_cmd('vlan set strip off 0')
         self.vm0_testpmd.execute_cmd('vlan set filter off 0')
 
+    def test_ixgbe_vf_jumboframe(self):
+        """
+        Enable jumbo frame for VF by configuring DPDK PF.
+        """
+        self.tester.send_expect("ifconfig %s mtu 9000" % self.tester_intf, "#")
+        self.check_vf_link_status()
+        time.sleep(10)
+        self.vf0_mac = self.vm0_testpmd.get_port_mac(0)
+
+        self.vm0_testpmd.execute_cmd('set verbose 1')
+        self.vm0_testpmd.execute_cmd('start')
+        pktsize = random.randint(1500, 9000)
+        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
+        self.vm0_testpmd.execute_cmd('stop')
+        self.verify("received" not in out,
+            "Failed to receive this length packet!!!")
+
+        self.vm0_testpmd.execute_cmd('port stop all')
+        self.vm0_testpmd.execute_cmd('port config mtu 0 %s' % (pktsize+100))
+        self.vm0_testpmd.execute_cmd('port start all')
+        self.vm0_testpmd.execute_cmd('start')
+        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
+        self.vm0_testpmd.execute_cmd('stop')
+        self.verify("received" in out,
+            "Failed to receive this length packet!!!")
+
+        self.vm0_testpmd.execute_cmd('start')
+        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
+        self.vm0_testpmd.execute_cmd('stop')
+        self.verify("received" not in out,
+            "Failed to receive this length packet!!!")
+
+        self.vm0_testpmd.quit()
+        self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--port-topology=chained')
+        self.vm0_testpmd.execute_cmd('set verbose 1')
+        self.vm0_testpmd.execute_cmd('start')
+        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
+        self.vm0_testpmd.execute_cmd('stop')
+        self.verify("received" in out,
+              "Failed to receive this length packet!!!")
+
+        self.vm0_testpmd.execute_cmd('start')
+        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
+        self.vm0_testpmd.execute_cmd('stop')
+        self.verify("received" not in out,
+            "Failed to receive this length packet!!!")
+
+        self.vm0_testpmd.quit()
+        self.dut_testpmd.quit()
+        self.tester.send_expect("ifconfig %s mtu 1500" % self.tester_intf, "#")
+
     def test_stats_show_clear(self):
         """
         Show and clear statistics for a VF from PF
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe
  2020-02-19  8:03 [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe Jiaqi Min
@ 2020-02-25  6:50 ` He, Zhiwei
  2020-02-25  8:58   ` Tu, Lijuan
  2020-02-28  1:09 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: He, Zhiwei @ 2020-02-25  6:50 UTC (permalink / raw)
  To: Min, JiaqiX, dts; +Cc: Min, JiaqiX, He, Zhiwei

Acked-by Zhiwei.He <Zhiwei.He@intel.com>

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jiaqi Min
> Sent: Wednesday, February 19, 2020 4:03 PM
> To: dts@dpdk.org
> Cc: Min, JiaqiX <jiaqix.min@intel.com>
> Subject: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for
> ixgbe
> 
> add ixgbe vf jumbo frame test case
> 
> Signed-off-by: Jiaqi Min <jiaqix.min@intel.com>
> ---
>  conf/vf_daemon.cfg           | 44 +++++++++++++++++++++++++++++++
>  tests/TestSuite_vf_daemon.py | 51
> ++++++++++++++++++++++++++++++++++++
>  2 files changed, 95 insertions(+)
>  create mode 100644 conf/vf_daemon.cfg
> 
> diff --git a/conf/vf_daemon.cfg b/conf/vf_daemon.cfg new file mode 100644
> index 0000000..fe762f8
> --- /dev/null
> +++ b/conf/vf_daemon.cfg
> @@ -0,0 +1,44 @@
> +# Configuration sample: sriov_kvm.cfg
> +[vm0]
> +cpu =
> +    model=host,number=4,cpupin=5 6 7 8; disk =
> +
> +file=/storage/vm-
> image/vm0.img,opt_format=qcow2,opt_if=virtio,opt_index
> +=0,opt_media=disk;
> +mem =
> +    size=10250;
> +login =
> +    user=root,password=tester;
> +# net option is not necessary for libvirt, comment out below 2 lines if
> +using libvirt net =
> +    type=nic,opt_vlan=0;
> +    type=user,opt_vlan=0;
> +qga =
> +    enable=yes;
> +# vnc option is not supported by libvirt yet, comment out below 2 lines
> +if using libvirt vnc =
> +    displayNum=1;
> +# daemon option is not supported by libvirt yet, comment out below 2
> +lines if using libvirt daemon =
> +    enable=yes;
> +
> +[vm1]
> +cpu =
> +    model=host,number=4,cpupin=14 15 16 17; disk =
> +
> +file=/storage/vm-
> image/vm0.img_copy.img,opt_format=qcow2,opt_if=virtio,
> +opt_index=0,opt_media=disk;
> +mem =
> +    size=10250;
> +login =
> +    user=root,password=tester;
> +# net option is not necessary for libvirt, comment out below 2 lines if
> +using libvirt net =
> +    type=nic,opt_vlan=0;
> +    type=user,opt_vlan=0;
> +qga =
> +    enable=yes;
> +# vnc option is not supported by libvirt yet, comment out below 2 lines
> +if using libvirt vnc =
> +    displayNum=2;
> +# daemon option is not supported by libvirt yet, comment out below 2
> +lines if using libvirt daemon =
> +    enable=yes;
> diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py
> index b91de9e..f01f1db 100644
> --- a/tests/TestSuite_vf_daemon.py
> +++ b/tests/TestSuite_vf_daemon.py
> @@ -705,6 +705,57 @@ class TestVfDaemon(TestCase):
>          self.vm0_testpmd.execute_cmd('vlan set strip off 0')
>          self.vm0_testpmd.execute_cmd('vlan set filter off 0')
> 
> +    def test_ixgbe_vf_jumboframe(self):
> +        """
> +        Enable jumbo frame for VF by configuring DPDK PF.
> +        """
> +        self.tester.send_expect("ifconfig %s mtu 9000" % self.tester_intf, "#")
> +        self.check_vf_link_status()
> +        time.sleep(10)
> +        self.vf0_mac = self.vm0_testpmd.get_port_mac(0)
> +
> +        self.vm0_testpmd.execute_cmd('set verbose 1')
> +        self.vm0_testpmd.execute_cmd('start')
> +        pktsize = random.randint(1500, 9000)
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" not in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.execute_cmd('port stop all')
> +        self.vm0_testpmd.execute_cmd('port config mtu 0 %s' % (pktsize+100))
> +        self.vm0_testpmd.execute_cmd('port start all')
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" not in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.quit()
> +        self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--port-
> topology=chained')
> +        self.vm0_testpmd.execute_cmd('set verbose 1')
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" in out,
> +              "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" not in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.quit()
> +        self.dut_testpmd.quit()
> +        self.tester.send_expect("ifconfig %s mtu 1500" %
> + self.tester_intf, "#")
> +
>      def test_stats_show_clear(self):
>          """
>          Show and clear statistics for a VF from PF
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe
  2020-02-25  6:50 ` He, Zhiwei
@ 2020-02-25  8:58   ` Tu, Lijuan
  0 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-02-25  8:58 UTC (permalink / raw)
  To: He, Zhiwei, Min, JiaqiX, dts; +Cc: Min, JiaqiX, He, Zhiwei

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of He, Zhiwei
> Sent: Tuesday, February 25, 2020 2:51 PM
> To: Min, JiaqiX <jiaqix.min@intel.com>; dts@dpdk.org
> Cc: Min, JiaqiX <jiaqix.min@intel.com>; He, Zhiwei <zhiwei.he@intel.com>
> Subject: Re: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for
> ixgbe
> 
> Acked-by Zhiwei.He <Zhiwei.He@intel.com>
> 
> > -----Original Message-----
> > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jiaqi Min
> > Sent: Wednesday, February 19, 2020 4:03 PM
> > To: dts@dpdk.org
> > Cc: Min, JiaqiX <jiaqix.min@intel.com>
> > Subject: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for
> > ixgbe
> >
> > add ixgbe vf jumbo frame test case
> >
> > Signed-off-by: Jiaqi Min <jiaqix.min@intel.com>
> > ---
> >  conf/vf_daemon.cfg           | 44 +++++++++++++++++++++++++++++++
> >  tests/TestSuite_vf_daemon.py | 51
> > ++++++++++++++++++++++++++++++++++++
> >  2 files changed, 95 insertions(+)
> >  create mode 100644 conf/vf_daemon.cfg
> >
> > diff --git a/conf/vf_daemon.cfg b/conf/vf_daemon.cfg new file mode
> > 100644 index 0000000..fe762f8
> > --- /dev/null
> > +++ b/conf/vf_daemon.cfg
> > @@ -0,0 +1,44 @@
> > +# Configuration sample: sriov_kvm.cfg [vm0] cpu =
> > +    model=host,number=4,cpupin=5 6 7 8; disk =
> > +
> > +file=/storage/vm-
> > image/vm0.img,opt_format=qcow2,opt_if=virtio,opt_index
> > +=0,opt_media=disk;
> > +mem =
> > +    size=10250;
> > +login =
> > +    user=root,password=tester;
> > +# net option is not necessary for libvirt, comment out below 2 lines
> > +if using libvirt net =
> > +    type=nic,opt_vlan=0;
> > +    type=user,opt_vlan=0;
> > +qga =
> > +    enable=yes;
> > +# vnc option is not supported by libvirt yet, comment out below 2
> > +lines if using libvirt vnc =
> > +    displayNum=1;
> > +# daemon option is not supported by libvirt yet, comment out below 2
> > +lines if using libvirt daemon =
> > +    enable=yes;
> > +
> > +[vm1]
> > +cpu =
> > +    model=host,number=4,cpupin=14 15 16 17; disk =
> > +
> > +file=/storage/vm-
> > image/vm0.img_copy.img,opt_format=qcow2,opt_if=virtio,
> > +opt_index=0,opt_media=disk;
> > +mem =
> > +    size=10250;
> > +login =
> > +    user=root,password=tester;
> > +# net option is not necessary for libvirt, comment out below 2 lines
> > +if using libvirt net =
> > +    type=nic,opt_vlan=0;
> > +    type=user,opt_vlan=0;
> > +qga =
> > +    enable=yes;
> > +# vnc option is not supported by libvirt yet, comment out below 2
> > +lines if using libvirt vnc =
> > +    displayNum=2;
> > +# daemon option is not supported by libvirt yet, comment out below 2
> > +lines if using libvirt daemon =
> > +    enable=yes;
> > diff --git a/tests/TestSuite_vf_daemon.py
> > b/tests/TestSuite_vf_daemon.py index b91de9e..f01f1db 100644
> > --- a/tests/TestSuite_vf_daemon.py
> > +++ b/tests/TestSuite_vf_daemon.py
> > @@ -705,6 +705,57 @@ class TestVfDaemon(TestCase):
> >          self.vm0_testpmd.execute_cmd('vlan set strip off 0')
> >          self.vm0_testpmd.execute_cmd('vlan set filter off 0')
> >
> > +    def test_ixgbe_vf_jumboframe(self):
> > +        """
> > +        Enable jumbo frame for VF by configuring DPDK PF.
> > +        """
> > +        self.tester.send_expect("ifconfig %s mtu 9000" % self.tester_intf, "#")
> > +        self.check_vf_link_status()
> > +        time.sleep(10)
> > +        self.vf0_mac = self.vm0_testpmd.get_port_mac(0)
> > +
> > +        self.vm0_testpmd.execute_cmd('set verbose 1')
> > +        self.vm0_testpmd.execute_cmd('start')
> > +        pktsize = random.randint(1500, 9000)
> > +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> > +        self.vm0_testpmd.execute_cmd('stop')
> > +        self.verify("received" not in out,
> > +            "Failed to receive this length packet!!!")
> > +
> > +        self.vm0_testpmd.execute_cmd('port stop all')
> > +        self.vm0_testpmd.execute_cmd('port config mtu 0 %s' %
> (pktsize+100))
> > +        self.vm0_testpmd.execute_cmd('port start all')
> > +        self.vm0_testpmd.execute_cmd('start')
> > +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> > +        self.vm0_testpmd.execute_cmd('stop')
> > +        self.verify("received" in out,
> > +            "Failed to receive this length packet!!!")
> > +
> > +        self.vm0_testpmd.execute_cmd('start')
> > +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
> > +        self.vm0_testpmd.execute_cmd('stop')
> > +        self.verify("received" not in out,
> > +            "Failed to receive this length packet!!!")
> > +
> > +        self.vm0_testpmd.quit()
> > +        self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--port-
> > topology=chained')
> > +        self.vm0_testpmd.execute_cmd('set verbose 1')
> > +        self.vm0_testpmd.execute_cmd('start')
> > +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> > +        self.vm0_testpmd.execute_cmd('stop')
> > +        self.verify("received" in out,
> > +              "Failed to receive this length packet!!!")
> > +
> > +        self.vm0_testpmd.execute_cmd('start')
> > +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
> > +        self.vm0_testpmd.execute_cmd('stop')
> > +        self.verify("received" not in out,
> > +            "Failed to receive this length packet!!!")
> > +
> > +        self.vm0_testpmd.quit()
> > +        self.dut_testpmd.quit()
> > +        self.tester.send_expect("ifconfig %s mtu 1500" %
> > + self.tester_intf, "#")
> > +
> >      def test_stats_show_clear(self):
> >          """
> >          Show and clear statistics for a VF from PF
> > --
> > 2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe
  2020-02-19  8:03 [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe Jiaqi Min
  2020-02-25  6:50 ` He, Zhiwei
@ 2020-02-28  1:09 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-02-28  1:09 UTC (permalink / raw)
  To: Min, JiaqiX, dts; +Cc: Min, JiaqiX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jiaqi Min
> Sent: Wednesday, February 19, 2020 4:03 PM
> To: dts@dpdk.org
> Cc: Min, JiaqiX <jiaqix.min@intel.com>
> Subject: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe
> 
> add ixgbe vf jumbo frame test case
> 
> Signed-off-by: Jiaqi Min <jiaqix.min@intel.com>
> ---
>  conf/vf_daemon.cfg           | 44 +++++++++++++++++++++++++++++++
>  tests/TestSuite_vf_daemon.py | 51
> ++++++++++++++++++++++++++++++++++++
>  2 files changed, 95 insertions(+)
>  create mode 100644 conf/vf_daemon.cfg
> 
> diff --git a/conf/vf_daemon.cfg b/conf/vf_daemon.cfg new file mode 100644
> index 0000000..fe762f8
> --- /dev/null
> +++ b/conf/vf_daemon.cfg
> @@ -0,0 +1,44 @@
> +# Configuration sample: sriov_kvm.cfg
> +[vm0]
> +cpu =
> +    model=host,number=4,cpupin=5 6 7 8; disk =
> +
> +file=/storage/vm-
> image/vm0.img,opt_format=qcow2,opt_if=virtio,opt_index
> +=0,opt_media=disk;
> +mem =
> +    size=10250;
> +login =
> +    user=root,password=tester;
> +# net option is not necessary for libvirt, comment out below 2 lines if
> +using libvirt net =
> +    type=nic,opt_vlan=0;
> +    type=user,opt_vlan=0;
> +qga =
> +    enable=yes;
> +# vnc option is not supported by libvirt yet, comment out below 2 lines
> +if using libvirt vnc =
> +    displayNum=1;
> +# daemon option is not supported by libvirt yet, comment out below 2
> +lines if using libvirt daemon =
> +    enable=yes;
> +
> +[vm1]
> +cpu =
> +    model=host,number=4,cpupin=14 15 16 17; disk =
> +
> +file=/storage/vm-
> image/vm0.img_copy.img,opt_format=qcow2,opt_if=virtio,
> +opt_index=0,opt_media=disk;
> +mem =
> +    size=10250;
> +login =
> +    user=root,password=tester;
> +# net option is not necessary for libvirt, comment out below 2 lines if
> +using libvirt net =
> +    type=nic,opt_vlan=0;
> +    type=user,opt_vlan=0;
> +qga =
> +    enable=yes;
> +# vnc option is not supported by libvirt yet, comment out below 2 lines
> +if using libvirt vnc =
> +    displayNum=2;
> +# daemon option is not supported by libvirt yet, comment out below 2
> +lines if using libvirt daemon =
> +    enable=yes;
> diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py
> index b91de9e..f01f1db 100644
> --- a/tests/TestSuite_vf_daemon.py
> +++ b/tests/TestSuite_vf_daemon.py
> @@ -705,6 +705,57 @@ class TestVfDaemon(TestCase):
>          self.vm0_testpmd.execute_cmd('vlan set strip off 0')
>          self.vm0_testpmd.execute_cmd('vlan set filter off 0')
> 
> +    def test_ixgbe_vf_jumboframe(self):
> +        """
> +        Enable jumbo frame for VF by configuring DPDK PF.
> +        """
> +        self.tester.send_expect("ifconfig %s mtu 9000" % self.tester_intf, "#")
> +        self.check_vf_link_status()
> +        time.sleep(10)
> +        self.vf0_mac = self.vm0_testpmd.get_port_mac(0)
> +
> +        self.vm0_testpmd.execute_cmd('set verbose 1')
> +        self.vm0_testpmd.execute_cmd('start')
> +        pktsize = random.randint(1500, 9000)
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" not in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.execute_cmd('port stop all')
> +        self.vm0_testpmd.execute_cmd('port config mtu 0 %s' % (pktsize+100))
> +        self.vm0_testpmd.execute_cmd('port start all')
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" not in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.quit()
> +        self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--port-
> topology=chained')
> +        self.vm0_testpmd.execute_cmd('set verbose 1')
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" in out,
> +              "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.execute_cmd('start')
> +        out = self.send_and_pmdout(self.vf0_mac, 0, pktsize+200)
> +        self.vm0_testpmd.execute_cmd('stop')
> +        self.verify("received" not in out,
> +            "Failed to receive this length packet!!!")
> +
> +        self.vm0_testpmd.quit()
> +        self.dut_testpmd.quit()
> +        self.tester.send_expect("ifconfig %s mtu 1500" %
> + self.tester_intf, "#")
> +
>      def test_stats_show_clear(self):
>          """
>          Show and clear statistics for a VF from PF
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-28  1:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-19  8:03 [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe Jiaqi Min
2020-02-25  6:50 ` He, Zhiwei
2020-02-25  8:58   ` Tu, Lijuan
2020-02-28  1:09 ` Tu, Lijuan

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