[dts] [PATCH V1] tests/vf_offload : enable hw vlan

Liu, Yong yong.liu at intel.com
Fri Feb 2 04:41:29 CET 2018


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 at intel.com>; dts at 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 at intel.com>; dts at dpdk.org
> Cc: Zhao, MeijuanX <meijuanx.zhao at 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 at dpdk.org] On Behalf Of zhao,meijuan
> > Sent: Friday, February 02, 2018 10:47 AM
> > To: dts at dpdk.org
> > Cc: Zhao, MeijuanX <meijuanx.zhao at 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 at 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



More information about the dts mailing list