test suite reviews and discussions
 help / color / mirror / Atom feed
From: Zhou Jun <junx.w.zhou@intel.com>
To: dts@dpdk.org
Cc: Zhou Jun <junx.w.zhou@intel.com>
Subject: [dts] [dts 3/3] tests/TestSuite_dynamic_flowtype:change send pkt mode
Date: Wed,  9 Dec 2020 09:59:44 +0800	[thread overview]
Message-ID: <20201209015944.12586-4-junx.w.zhou@intel.com> (raw)
In-Reply-To: <20201209015944.12586-1-junx.w.zhou@intel.com>

Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
 tests/TestSuite_dynamic_flowtype.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_dynamic_flowtype.py b/tests/TestSuite_dynamic_flowtype.py
index 99f28d8a..3f47d590 100644
--- a/tests/TestSuite_dynamic_flowtype.py
+++ b/tests/TestSuite_dynamic_flowtype.py
@@ -34,6 +34,7 @@ import re
 import utils
 from test_case import TestCase
 from pmd_output import PmdOutput
+import packet
 VM_CORES_MASK = 'all'
@@ -202,10 +203,8 @@ class TestDynamicFlowtype(TestCase):
         pkts = self.gtp_packets(flowtype, match_opt)
         for packet_type in list(pkts.keys()):
-            self.tester.scapy_append(
-                'sendp([%s], iface="%s")'
-                % (pkts[packet_type], self.tester_intf))
-            self.tester.scapy_execute()
+            pkt = packet.Packet(pkts[packet_type])
+            pkt.send_pkt(crb=self.tester, tx_port=self.tester_intf)
             out = self.dut.get_session_output(timeout=2)
             if match_opt == 'matched':
                 self.verify("PKT_RX_RSS_HASH" in out,

  parent reply	other threads:[~2020-12-09  1:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09  1:59 [dts] [PATCH V2 0/3] add new interface for write raw pkt and Zhou Jun
2020-12-09  1:59 ` [dts] [dts 1/3] framework/packet.py:add interface for write raw pkt Zhou Jun
2020-12-09  1:59 ` [dts] [dts 2/3] tests/TestSuite_ddp_gtp_qregion:change send pkt mode and use framework interface to " Zhou Jun
2020-12-09  1:59 ` Zhou Jun [this message]
2020-12-09  2:00 ` [dts] [PATCH V2 0/3] add new interface for write raw pkt and Zhou, JunX W

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201209015944.12586-4-junx.w.zhou@intel.com \
    --to=junx.w.zhou@intel.com \
    --cc=dts@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).