From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 369DCA318B for ; Fri, 18 Oct 2019 07:39:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D71FB1C035; Fri, 18 Oct 2019 07:39:05 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 343601BFF6 for ; Fri, 18 Oct 2019 07:39:03 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2019 22:39:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,310,1566889200"; d="scan'208";a="208843328" Received: from unknown (HELO dpdk-xiaoqimai-tester.sh.intel.com) ([10.240.179.35]) by fmsmga001.fm.intel.com with ESMTP; 17 Oct 2019 22:39:02 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 18 Oct 2019 01:37:09 -0400 Message-Id: <1571377029-155913-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_queue_region: SYN tcp packet should has flags S X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" add flags S to SYN tcp packet and remove Raw from it Signed-off-by: Xiao Qimai --- tests/TestSuite_queue_region.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_queue_region.py b/tests/TestSuite_queue_region.py index eea873e..7d01dfb 100644 --- a/tests/TestSuite_queue_region.py +++ b/tests/TestSuite_queue_region.py @@ -122,6 +122,8 @@ class TestQueue_region(TestCase): pkt = Packet(pkt_type='TCP') pkt.config_layer('ether', {'dst': mac, 'src': self.tester_mac}) pkt.config_layer('tcp', {'flags': flags}) + if flags == 'S': + pkt.pktgen.pkt.__delitem__('Raw') elif (pkt_type == "sctp"): pkt = Packet(pkt_type='SCTP') pkt.config_layer('ether', {'dst': mac, 'src': self.tester_mac}) @@ -135,6 +137,9 @@ class TestQueue_region(TestCase): pkt.config_layer('ether', {'dst': mac, 'src': self.tester_mac}) elif (pkt_type == "ipv6_tcp"): pkt = Packet(pkt_type='IPv6_TCP') + pkt.config_layer('tcp',{'flags':flags}) + if flags == 'S': + pkt.pktgen.pkt.__delitem__('Raw') pkt.config_layer('ether', {'dst': mac, 'src': self.tester_mac}) elif (pkt_type == "ipv6_sctp"): pkt = Packet(pkt_type='IPv6_SCTP') @@ -262,7 +267,7 @@ class TestQueue_region(TestCase): # not assign ipv4-tcp SYN packet to any queue region, the packet to queue region 0. if(self.nic in ["fortpark_TLV"]): queue_region = ["1"] - queue_ipv6tcp = self.send_and_check(queue_region, mac=self.pf_mac, pkt_type="ipv6_tcp") + queue_ipv6tcp = self.send_and_check(queue_region, mac=self.pf_mac, pkt_type="ipv6_tcp", flags="S") else: queue_region = ["8", "9"] queue_ipv6tcp = self.send_and_check(queue_region, mac=self.pf_mac, pkt_type="ipv6_tcp") -- 1.8.3.1