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 7871DA00E6 for ; Wed, 17 Apr 2019 07:17:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 414061B5AF; Wed, 17 Apr 2019 07:17:28 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1C63A1B597 for ; Wed, 17 Apr 2019 07:17:27 +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 x3H5H222013607 for ; Tue, 16 Apr 2019 22:17:26 -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=hogQV/LbhNNdppYzE1/+hS0eD30n4jGxSzSz97ze9RE=; b=BEKjlDLxBYiHVdoCV/I4ztY7BnDzfBNRaAhcydYZvWbQlmB1a05w+IuKMxUJjJKB3Iy3 qw3hwvD8CZjhzIpnFOrMckJ2Cix5sKCsuAWXtItG4o304Je/ncsOCq0MABw/UbdZMtwA SLRn7xR2YyM9zNJTKqfoUoH8uIANAlIADI0A7Rem1WGGe9E6lliRvLskPjb+vFreJ8or mcTT4+zigNFI0zY+JId9oE0ymwVUsGNexTQAWGzA1wvIvTm7IVcuFEfYlJ/4lFSIGBj3 EGuCiLXYqROCHfe/RCJnP4GEEObDROeQMxRt3uXzm9A+F1YndtHzHyMJKd7cgSKncbwp wg== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2rvyspefrn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 16 Apr 2019 22:17:26 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 16 Apr 2019 22:17:24 -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, 16 Apr 2019 22:17:24 -0700 Received: from cavium.marvell.com (unknown [10.28.10.219]) by maili.marvell.com (Postfix) with ESMTP id 5C99B3F703F; Tue, 16 Apr 2019 22:17:23 -0700 (PDT) From: To: CC: , , , usurekha Date: Wed, 17 Apr 2019 10:46:08 +0530 Message-ID: <1555478168-28885-1-git-send-email-usurekha@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-17_03:, , signatures=0 Subject: [dts] [PATCH] nvgre: Added "L3_IPV4" flag for both nvgre and non-nvgre pks for cavium_a063. 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: usurekha As otx2 hw is capable of identifying pkt as "L3_IPV4" for both normal and tunnelled pkts instead of "L3_IPV4_EXT_UNKNOWN" flag. So added "L3_IPv4" flag to identify the pkt for cavium device. Signed-off-by: usurekha --- tests/TestSuite_nvgre.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index c4da924..aea915c 100644 --- a/tests/TestSuite_nvgre.py +++ b/tests/TestSuite_nvgre.py @@ -158,11 +158,23 @@ class NvgreTestConfig(object): self.inner_l4_invalid = 0 self.payload_size = 18 - def packet_type(self): + def packet_type(self,nic = None): """ Return nvgre packet type """ - if self.outer_ip_proto != 47: + if "cavium_a063" in nic: + if self.outer_ip_proto !=47: + if self.outer_l3_type == 'IPv4': + return 'L3_IPV4' + else: + return 'L3_IPV6' + else: + if self.inner_l3_type == 'IPv4': + return 'L3_IPV4' + else: + return 'L3_IPV6' + + elif self.outer_ip_proto != 47: if self.outer_l3_type == 'IPv4': return 'L3_IPV4_EXT_UNKNOWN' else: @@ -349,7 +361,7 @@ class TestNvgre(TestCase): nvgre Prerequisites """ # this feature only enable in FVL now - if self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortville_25g", "fortpark_TLV"]: + if self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortville_25g", "fortpark_TLV", "cavium_a063"]: self.compile_switch = 'CONFIG_RTE_LIBRTE_I40E_INC_VECTOR' elif self.nic in ["sageville", "sagepond"]: self.compile_switch = 'CONFIG_RTE_IXGBE_INC_VECTOR' @@ -458,7 +470,7 @@ class TestNvgre(TestCase): # check whether detect nvgre type out = self.dut.get_session_output() print out - self.verify(config.packet_type() in out, "Nvgre Packet not detected") + self.verify(config.packet_type(self.nic) in out, "Nvgre Packet not detected") self.dut.send_expect("show port stats all", "testpmd>", 10) self.dut.send_expect("stop", "testpmd>", 10) self.dut.send_expect("quit", "#", 10) -- 2.7.4