From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id CCFB5A0471 for ; Tue, 18 Jun 2019 16:37:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7894C1BD3F; Tue, 18 Jun 2019 16:37:10 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 3C99E1BC87 for ; Tue, 18 Jun 2019 16:37:08 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5IEUCxD028602 for ; Tue, 18 Jun 2019 07:37:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=4UhRqFrntI75eHkCVcar/HPKa+sdK3H5sQGnp0JG8fg=; b=YBVcDzsKc8HjcoxrH3YKzaw7XjytakFDs5dMCLBkHrVi0hS4m+w4S4RwVN07FNP5n9h8 wLh1giFQAD2vGrXycKWAC1jdhZq63Cy7emD1u87pw7Mu8pAL+6SQ2XTgzIndAt1rnClQ VLfxX9EEJ4rJW3cded6BS1+MQC+DGKPNvb+ROGZp4hMHQhIcaqwh0ys+rymFeUiBfxy/ x5da+XibhMAyPexN54M4Mwqpk7dt1fu92c/+gZHeB7u/8J5NWJjKG/AEWZJYCK+H6r2V 9JZzEYJM3OFzJFtM8vjKGIC/8OlAWdTsChver62kmGG36/CjR+i4AyH76p8YnO84oU7l cw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2t6xkh0tfe-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 18 Jun 2019 07:37:07 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 18 Jun 2019 07:37:04 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 18 Jun 2019 07:37:04 -0700 Received: from thaq.marvell.com (unknown [10.28.10.34]) by maili.marvell.com (Postfix) with ESMTP id E30183F7043; Tue, 18 Jun 2019 07:37:02 -0700 (PDT) From: To: CC: , , Thanseerulhaq Date: Tue, 18 Jun 2019 20:06:33 +0530 Message-ID: <1560868593-853-1-git-send-email-thaq@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-18_07:, , signatures=0 Subject: [dts] [PATCH] tests/TestSuite_ipgre.py: Modified ipgre-GRE_packet_chksum_offload testcase to Uncheck sctp chksum if nic-card is cavium_a063. Setting send packet count as 4 to support Vector mode. 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" From: Thanseerulhaq Signed-off-by: Thanseerulhaq --- tests/TestSuite_ipgre.py | 51 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index f188df0..de366b0 100644 --- a/tests/TestSuite_ipgre.py +++ b/tests/TestSuite_ipgre.py @@ -99,7 +99,7 @@ class TestIpgre(TestCase): for layer in layer_configs.keys(): pkt.config_layer(layer, layer_configs[layer]) inst = self.tester.tcpdump_sniff_packets(self.tester_iface, count=1, timeout=8) - pkt.send_pkt(tx_port=self.tester_iface) + pkt.send_pkt(tx_port=self.tester_iface, count = 4) out = self.dut.get_session_output(timeout=2) time.sleep(1) self.tester.load_tcpdump_sniff_packets(inst) @@ -315,7 +315,8 @@ class TestIpgre(TestCase): self.dut.send_expect("port stop all", "testpmd>") self.dut.send_expect("csum set ip hw 0", "testpmd>") self.dut.send_expect("csum set udp hw 0", "testpmd>") - self.dut.send_expect("csum set sctp hw 0", "testpmd>") + if self.nic != "cavium_a063": + self.dut.send_expect("csum set sctp hw 0", "testpmd>") self.dut.send_expect("csum set outer-ip hw 0", "testpmd>") self.dut.send_expect("csum set tcp hw 0", "testpmd>") self.dut.send_expect("csum parse-tunnel on 0", "testpmd>") @@ -407,29 +408,29 @@ class TestIpgre(TestCase): 'udp': {'chksum': 0xffff}} self.check_packet_transmission(pkt_types, config_layers) self.compare_checksum() - - # Send packet with wrong inner SCTP checksum and check forwarded packet SCTP checksum is correct - pkt_types = { "MAC_IP_GRE_IPv4-TUNNEL_SCTP_PKT": ["PKT_TX_SCTP_CKSUM"]} - config_layers = {'ether': {'src': self.outer_mac_src, - 'dst': self.outer_mac_dst}, - 'ipv4': {'proto': 'gre', - 'src': self.outer_ip_src, - 'dst': self.outer_ip_dst}, - 'inner_ipv4':{'src':self.inner_ip_src, - 'dst':self.inner_ip_dst}, - 'sctp': {'src': 53, - 'dst': 53}} - self.save_ref_packet(pkt_types, config_layers) - config_layers = {'ether': {'src': self.outer_mac_src, - 'dst': self.outer_mac_dst}, - 'ipv4': {'proto': 'gre', - 'src': self.outer_ip_src, - 'dst': self.outer_ip_dst}, - 'inner_ipv4':{'src':self.inner_ip_src, - 'dst':self.inner_ip_dst}, - 'sctp': {'chksum': 0x0}} - self.check_packet_transmission(pkt_types, config_layers) - self.compare_checksum() + if self.nic != "cavium_a063": + # Send packet with wrong inner SCTP checksum and check forwarded packet SCTP checksum is correct + pkt_types = { "MAC_IP_GRE_IPv4-TUNNEL_SCTP_PKT": ["PKT_TX_SCTP_CKSUM"]} + config_layers = {'ether': {'src': self.outer_mac_src, + 'dst': self.outer_mac_dst}, + 'ipv4': {'proto': 'gre', + 'src': self.outer_ip_src, + 'dst': self.outer_ip_dst}, + 'inner_ipv4':{'src':self.inner_ip_src, + 'dst':self.inner_ip_dst}, + 'sctp': {'src': 53, + 'dst': 53}} + self.save_ref_packet(pkt_types, config_layers) + config_layers = {'ether': {'src': self.outer_mac_src, + 'dst': self.outer_mac_dst}, + 'ipv4': {'proto': 'gre', + 'src': self.outer_ip_src, + 'dst': self.outer_ip_dst}, + 'inner_ipv4':{'src':self.inner_ip_src, + 'dst':self.inner_ip_dst}, + 'sctp': {'chksum': 0x0}} + self.check_packet_transmission(pkt_types, config_layers) + self.compare_checksum() self.dut.send_expect("quit", "#") -- 1.8.3.1