[dts] [PATCH V1] update flow_classify_softnic to reduce runtime

Tu, Lijuan lijuan.tu at intel.com
Mon May 13 04:30:56 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of xiao,qimai
> Sent: Sunday, April 28, 2019 6:13 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V1] update flow_classify_softnic to reduce runtime
> 
> optimize function of send package with scapy
> 
> Signed-off-by: xiao,qimai <qimaix.xiao at intel.com>
> ---
>  tests/TestSuite_flow_classify_softnic.py | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/TestSuite_flow_classify_softnic.py
> b/tests/TestSuite_flow_classify_softnic.py
> index c98e8d0..9b339ca 100644
> --- a/tests/TestSuite_flow_classify_softnic.py
> +++ b/tests/TestSuite_flow_classify_softnic.py
> @@ -275,7 +275,7 @@ class TestFlowClassifySoftnic(TestCase):
>                      packet = r'sendp([Ether(dst="%s",
> src=get_if_hwaddr("%s"))/IP(src="%s.%d", dst="%s",
> proto=17)/UDP(sport=100, dport=200)], iface="%s")' % (
>                          self.dut_p0_mac, itf, ipaddr, i, dst_addr, itf)
>                      self.tester.scapy_append(packet)
> -                    self.tester.scapy_execute()
> +                self.tester.scapy_execute()
>              elif ptype == "ipv6":
>                  var = src_addr.split(":")
>                  string = ":"
> @@ -287,7 +287,7 @@ class TestFlowClassifySoftnic(TestCase):
>                      packet = r'sendp([Ether(dst="%s",
> src=get_if_hwaddr("%s"))/IPv6(src="%s:%d", dst="%s", nh=17)/UDP(sport=100,
> dport=200)], iface="%s")' % (
>                          self.dut_p0_mac, itf, ipaddr, i, dst_addr, itf)
>                      self.tester.scapy_append(packet)
> -                    self.tester.scapy_execute()
> +                self.tester.scapy_execute()
> 
>          elif src_dst == "dst":
>              if ptype == "ipv4":
> @@ -298,7 +298,7 @@ class TestFlowClassifySoftnic(TestCase):
>                      packet = r'sendp([Ether(dst="%s",
> src=get_if_hwaddr("%s"))/IP(src="%s", dst="%s.%d",
> proto=17)/UDP(sport=100, dport=100)], iface="%s")' % (
>                          self.dut_p0_mac, itf, src_addr, ipaddr, i, itf)
>                      self.tester.scapy_append(packet)
> -                    self.tester.scapy_execute()
> +                self.tester.scapy_execute()
>              elif ptype == "ipv6":
>                  var = dst_addr.split(":")
>                  string = ":"
> @@ -310,7 +310,7 @@ class TestFlowClassifySoftnic(TestCase):
>                      packet = r'sendp([Ether(dst="%s",
> src=get_if_hwaddr("%s"))/IPv6(src="%s", dst="%s:%d", nh=17)/UDP(sport=100,
> dport=200)], iface="%s")' % (
>                          self.dut_p0_mac, itf, src_addr, ipaddr, i, itf)
>                      self.tester.scapy_append(packet)
> -                    self.tester.scapy_execute()
> +                self.tester.scapy_execute()
> 
>      def check_packet_queue(self, queues=[], out=""):
>          """
> --
> 2.17.0



More information about the dts mailing list