[dts] [PATCH V1] fix vxlan failed case

Liu, Yong yong.liu at intel.com
Thu Aug 25 08:09:09 CEST 2016


Thanks huilong, two comments.
1. no need to change the setting in all cases. Only one time in 
set_up_all is enough.
2. Nvgre patch has been merged, please send out patch only for vxlan suite.

On 08/24/2016 02:51 PM, xu,huilong wrote:
>       def test_vxlan_ipv6_detect(self):
>           """
>           verify vxlan packet detection with ipv6 header
>           """
> +        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> +        src_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
> +        if src_vec_model == 'y':
> +            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> +                                + "%s=n/' config/common_base" % self.compile_switch, "# ", 30)
> +            self.dut.skip_setup = False
> +            self.dut.build_install_dpdk(self.target)
> +
>           pmd_temp = "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \
>               "%(CHANNEL)d -- -i --disable-rss --rxq=4 --txq=4" + \
>               " --nb-cores=4 --portmask=%(PORT)s --txqflags=0x0"
> @@ -596,6 +624,14 @@ class TestVxlan(TestCase, IxiaPacketGenerator):
>           out = self.dut.send_expect("stop", "testpmd>", 10)
>           self.dut.send_expect("quit", "#", 10)
>   
> +        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
> +        dst_vec_model = re.findall("%s=." % self.compile_switch, out)[0][-1]
> +        if src_vec_model != dst_vec_model:
> +            self.dut.send_expect("sed -i -e 's/%s=.*$/" % self.compile_switch
> +                                + "%s=%s/' config/common_base" % (self.compile_switch, src_vec_model), "# ", 30)
> +            self.dut.skip_setup = False
> +            self.dut.build_install_dpdk(self.target)
> +
>       def test_vxlan_ipv4_checksum_offload(self):
>           """
>           verify vxlan packet checksum offload
> -- 1.9.3



More information about the dts mailing list