[dts] [PATCH V1] tests/vf_offload : stop port before set csum

Liu, Yong yong.liu at intel.com
Mon Jan 29 06:33:46 CET 2018


Thanks, Meijuan. Applied.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhao,meijuan
> Sent: Friday, January 26, 2018 10:36 AM
> To: dts at dpdk.org
> Cc: Zhao, MeijuanX <meijuanx.zhao at intel.com>
> Subject: [dts] [PATCH V1] tests/vf_offload : stop port before set csum
> 
> Need to stop port before configure csum.
> you can refer dpdk commit : 597f9fafe13b
> 
> 
> Signed-off-by: zhao,meijuan <meijuanx.zhao at intel.com>
> ---
>  tests/TestSuite_vf_offload.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
> index 2dfc424..c1983ca 100644
> --- a/tests/TestSuite_vf_offload.py
> +++ b/tests/TestSuite_vf_offload.py
> @@ -118,10 +118,12 @@ class TestVfOffload(TestCase):
>          self.setup_2pf_2vf_1vm_env_flag = 0
> 
>      def checksum_enablehw(self, port, dut):
> +        dut.send_expect("port stop all", "testpmd>")
>          dut.send_expect("csum set ip hw %d" % port, "testpmd>")
>          dut.send_expect("csum set udp hw %d" % port, "testpmd>")
>          dut.send_expect("csum set tcp hw %d" % port, "testpmd>")
>          dut.send_expect("csum set sctp hw %d" % port, "testpmd>")
> +        dut.send_expect("port start all", "testpmd>")
> 
>      def checksum_enablesw(self, port, dut):
>          dut.send_expect("csum set ip sw %d" % port, "testpmd>")
> --
> 1.9.3



More information about the dts mailing list