test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vf_offload : enable hw vlan
@ 2018-02-02  2:47 zhao,meijuan
  2018-02-02  3:00 ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: zhao,meijuan @ 2018-02-02  2:47 UTC (permalink / raw)
  To: dts; +Cc: zhao,meijuan

need enable hw vlan when setup testpmd, 
you can refer to dpdk commit 8b9bd0ef

Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
---
 tests/TestSuite_vf_offload.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
index c1983ca..dbae6f9 100644
--- a/tests/TestSuite_vf_offload.py
+++ b/tests/TestSuite_vf_offload.py
@@ -208,7 +208,7 @@ class TestVfOffload(TestCase):
         verify forwarded packets have correct checksum
         """
         self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
-                                      (self.portMask) + "--disable-hw-vlan --enable-rx-cksum " + "" +
+                                      (self.portMask) + "--enable-hw-vlan --enable-rx-cksum " + "" +
                                       "--port-topology=loop")
         self.vm0_testpmd.execute_cmd('set fwd csum')
 
@@ -258,7 +258,7 @@ class TestVfOffload(TestCase):
         """
 
         self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
-                                      (self.portMask) + "--disable-hw-vlan --enable-rx-cksum " +
+                                      (self.portMask) + "--enable-hw-vlan --enable-rx-cksum " +
                                       "--port-topology=loop")
         self.vm0_testpmd.execute_cmd('set fwd csum')
 
-- 
1.9.3

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

* Re: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
  2018-02-02  2:47 [dts] [PATCH V1] tests/vf_offload : enable hw vlan zhao,meijuan
@ 2018-02-02  3:00 ` Liu, Yong
  2018-02-02  3:09   ` Zhao, MeijuanX
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Yong @ 2018-02-02  3:00 UTC (permalink / raw)
  To: Zhao, MeijuanX, dts; +Cc: Zhao, MeijuanX

Meijuan,
Why change the default setting for RX VLAN offloading? Previous setting is disable and why you enabled it?

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhao,meijuan
> Sent: Friday, February 02, 2018 10:47 AM
> To: dts@dpdk.org
> Cc: Zhao, MeijuanX <meijuanx.zhao@intel.com>
> Subject: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
> 
> need enable hw vlan when setup testpmd,
> you can refer to dpdk commit 8b9bd0ef
> 
> Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
> ---
>  tests/TestSuite_vf_offload.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
> index c1983ca..dbae6f9 100644
> --- a/tests/TestSuite_vf_offload.py
> +++ b/tests/TestSuite_vf_offload.py
> @@ -208,7 +208,7 @@ class TestVfOffload(TestCase):
>          verify forwarded packets have correct checksum
>          """
>          self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
> -                                      (self.portMask) + "--disable-hw-
> vlan --enable-rx-cksum " + "" +
> +                                      (self.portMask) + "--enable-hw-vlan
> --enable-rx-cksum " + "" +
>                                        "--port-topology=loop")
>          self.vm0_testpmd.execute_cmd('set fwd csum')
> 
> @@ -258,7 +258,7 @@ class TestVfOffload(TestCase):
>          """
> 
>          self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
> -                                      (self.portMask) + "--disable-hw-
> vlan --enable-rx-cksum " +
> +                                      (self.portMask) + "--enable-hw-vlan
> --enable-rx-cksum " +
>                                        "--port-topology=loop")
>          self.vm0_testpmd.execute_cmd('set fwd csum')
> 
> --
> 1.9.3

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

* Re: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
  2018-02-02  3:00 ` Liu, Yong
@ 2018-02-02  3:09   ` Zhao, MeijuanX
  2018-02-02  3:41     ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Zhao, MeijuanX @ 2018-02-02  3:09 UTC (permalink / raw)
  To: Liu, Yong, dts

on the basis of yao lei's email yesterday :

1.	
In previous, testpmd will enable  DEV_RX_OFFLOAD_VLAN_FILTER and DEV_RX_OFFLOAD_VLAN_STRIP by default.
Now, they are default off.  We need declare them in the testpmd parameter by adding:
--enable-hw-vlan-filter
--enable-hw-vlan-strip
      
2.	Following four testpmd parameter are dropped now because the vlan rx offload are default off. 
--disable-hw-vlan
--disable-hw-vlan-filter
--disable-hw-vlan-strip
--disable-hw-vlan-extend

                Instead, four new parameter are added.
	--enable-hw-vlan
	--enable-hw-vlan-filter
	--enable-hw-vlan-strip
	--enable-hw-vlan-extend

-----Original Message-----
From: Liu, Yong 
Sent: Friday, February 2, 2018 11:01 AM
To: Zhao, MeijuanX <meijuanx.zhao@intel.com>; dts@dpdk.org
Cc: Zhao, MeijuanX <meijuanx.zhao@intel.com>
Subject: RE: [dts] [PATCH V1] tests/vf_offload : enable hw vlan

Meijuan,
Why change the default setting for RX VLAN offloading? Previous setting is disable and why you enabled it?

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhao,meijuan
> Sent: Friday, February 02, 2018 10:47 AM
> To: dts@dpdk.org
> Cc: Zhao, MeijuanX <meijuanx.zhao@intel.com>
> Subject: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
> 
> need enable hw vlan when setup testpmd, you can refer to dpdk commit 
> 8b9bd0ef
> 
> Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
> ---
>  tests/TestSuite_vf_offload.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_vf_offload.py 
> b/tests/TestSuite_vf_offload.py index c1983ca..dbae6f9 100644
> --- a/tests/TestSuite_vf_offload.py
> +++ b/tests/TestSuite_vf_offload.py
> @@ -208,7 +208,7 @@ class TestVfOffload(TestCase):
>          verify forwarded packets have correct checksum
>          """
>          self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
> -                                      (self.portMask) + "--disable-hw-
> vlan --enable-rx-cksum " + "" +
> +                                      (self.portMask) + 
> + "--enable-hw-vlan
> --enable-rx-cksum " + "" +
>                                        "--port-topology=loop")
>          self.vm0_testpmd.execute_cmd('set fwd csum')
> 
> @@ -258,7 +258,7 @@ class TestVfOffload(TestCase):
>          """
> 
>          self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
> -                                      (self.portMask) + "--disable-hw-
> vlan --enable-rx-cksum " +
> +                                      (self.portMask) + 
> + "--enable-hw-vlan
> --enable-rx-cksum " +
>                                        "--port-topology=loop")
>          self.vm0_testpmd.execute_cmd('set fwd csum')
> 
> --
> 1.9.3

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

* Re: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
  2018-02-02  3:09   ` Zhao, MeijuanX
@ 2018-02-02  3:41     ` Liu, Yong
  0 siblings, 0 replies; 4+ messages in thread
From: Liu, Yong @ 2018-02-02  3:41 UTC (permalink / raw)
  To: Zhao, MeijuanX, dts

Meijuan,
I understood that testpmd default Rx offload setting has been changed.
My question is that previous Rx vlan offloading is disable for the case, and now why you changed it to enabled by parameter "enable-hw-vlan" ? 

Thanks,
Marvin

> -----Original Message-----
> From: Zhao, MeijuanX
> Sent: Friday, February 02, 2018 11:10 AM
> To: Liu, Yong <yong.liu@intel.com>; dts@dpdk.org
> Subject: RE: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
> 
> on the basis of yao lei's email yesterday :
> 
> 1.
> In previous, testpmd will enable  DEV_RX_OFFLOAD_VLAN_FILTER and
> DEV_RX_OFFLOAD_VLAN_STRIP by default.
> Now, they are default off.  We need declare them in the testpmd parameter
> by adding:
> --enable-hw-vlan-filter
> --enable-hw-vlan-strip
> 
> 2.	Following four testpmd parameter are dropped now because the vlan rx
> offload are default off.
> --disable-hw-vlan
> --disable-hw-vlan-filter
> --disable-hw-vlan-strip
> --disable-hw-vlan-extend
> 
>                 Instead, four new parameter are added.
> 	--enable-hw-vlan
> 	--enable-hw-vlan-filter
> 	--enable-hw-vlan-strip
> 	--enable-hw-vlan-extend
> 
> -----Original Message-----
> From: Liu, Yong
> Sent: Friday, February 2, 2018 11:01 AM
> To: Zhao, MeijuanX <meijuanx.zhao@intel.com>; dts@dpdk.org
> Cc: Zhao, MeijuanX <meijuanx.zhao@intel.com>
> Subject: RE: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
> 
> Meijuan,
> Why change the default setting for RX VLAN offloading? Previous setting is
> disable and why you enabled it?
> 
> Thanks,
> Marvin
> 
> > -----Original Message-----
> > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhao,meijuan
> > Sent: Friday, February 02, 2018 10:47 AM
> > To: dts@dpdk.org
> > Cc: Zhao, MeijuanX <meijuanx.zhao@intel.com>
> > Subject: [dts] [PATCH V1] tests/vf_offload : enable hw vlan
> >
> > need enable hw vlan when setup testpmd, you can refer to dpdk commit
> > 8b9bd0ef
> >
> > Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
> > ---
> >  tests/TestSuite_vf_offload.py | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tests/TestSuite_vf_offload.py
> > b/tests/TestSuite_vf_offload.py index c1983ca..dbae6f9 100644
> > --- a/tests/TestSuite_vf_offload.py
> > +++ b/tests/TestSuite_vf_offload.py
> > @@ -208,7 +208,7 @@ class TestVfOffload(TestCase):
> >          verify forwarded packets have correct checksum
> >          """
> >          self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
> > -                                      (self.portMask) + "--disable-hw-
> > vlan --enable-rx-cksum " + "" +
> > +                                      (self.portMask) +
> > + "--enable-hw-vlan
> > --enable-rx-cksum " + "" +
> >                                        "--port-topology=loop")
> >          self.vm0_testpmd.execute_cmd('set fwd csum')
> >
> > @@ -258,7 +258,7 @@ class TestVfOffload(TestCase):
> >          """
> >
> >          self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=%s " %
> > -                                      (self.portMask) + "--disable-hw-
> > vlan --enable-rx-cksum " +
> > +                                      (self.portMask) +
> > + "--enable-hw-vlan
> > --enable-rx-cksum " +
> >                                        "--port-topology=loop")
> >          self.vm0_testpmd.execute_cmd('set fwd csum')
> >
> > --
> > 1.9.3

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

end of thread, other threads:[~2018-02-02  3:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02  2:47 [dts] [PATCH V1] tests/vf_offload : enable hw vlan zhao,meijuan
2018-02-02  3:00 ` Liu, Yong
2018-02-02  3:09   ` Zhao, MeijuanX
2018-02-02  3:41     ` Liu, Yong

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