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 66532A0471 for ; Mon, 17 Jun 2019 10:21:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5C1411BE26; Mon, 17 Jun 2019 10:21:36 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 20EFD1BE25 for ; Mon, 17 Jun 2019 10:21:33 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5H8Favu019585 for ; Mon, 17 Jun 2019 01:21:33 -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=n05NnXGN7xzC7nkzCha6/R/pOGawe6yV+Iwiv/zMmuQ=; b=F3m87XyhMLeRgH8USy3iDBhsAR7WM6j37vb+Jc61WQrr1L1areDiuM1gZewEPZSX7MgS Af7YiUz7lgply8YIrhiwJ8Wl7gYZAhYhG1P2j5wxbMz96fhcoz2tmSPb5yUwk8U19/gg qqUgBg5uFKrkXXxwISgNZ+X5O13m/bA3X2HaGVrwJSKWgXfdeg9bwxb+lIaWZKiCKcTK 2U9WfrSHULD+63EfupdPaWyjYxIcT2BoglLhY8m8kJAwUXICaZdg+cN2dxTYzFqsfo62 bz2OqgvxLFZGxA9CrzOrWI4fZO4RMXHsHMg2JQyQP0WvC/26ihVpwz/fnDX2xh53aTrT qA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2t6537re0d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 17 Jun 2019 01:21:33 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 17 Jun 2019 01:21:31 -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; Mon, 17 Jun 2019 01:21:31 -0700 Received: from thaq.marvell.com (unknown [10.28.10.34]) by maili.marvell.com (Postfix) with ESMTP id 9C3793F703F; Mon, 17 Jun 2019 01:21:30 -0700 (PDT) From: To: CC: , , Thanseerulhaq Date: Mon, 17 Jun 2019 13:51:01 +0530 Message-ID: <1560759661-8842-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-17_05:, , signatures=0 Subject: [dts] [PATCH] tests/TestSuite_vlan_ethertype_config.py: Added condition check to selected "tpids" based on cards. 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 cavium_a063 cards supports only default tpids in rx mode so added conditon checks. Listing "test_vlan_qinq_tpid" & test_vlan_change_tpid testcase of vlan_ethertype_config as invalid for cavium_a063 cards. Signed-off-by: Thanseerulhaq --- conf/test_case_checklist.json | 16 ++++++++++++++++ tests/TestSuite_vlan_ethertype_config.py | 24 ++++++++++++++++++++---- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json index 7b46bc1..1c4dc6d 100644 --- a/conf/test_case_checklist.json +++ b/conf/test_case_checklist.json @@ -2103,6 +2103,7 @@ "fortville_spirit_single", "cavium_a034", "cavium_a011", + "cavium_a063" "fortville_25g" ], "Target": [ @@ -2296,5 +2297,20 @@ "Bug ID": "", "Comments": "the nic not support this case" } + ], + "vlan_change_tpid": [ + { + "OS": [ + "ALL" + ], + "NIC": [ + "cavium_a063" + ], + "Target": [ + "ALL" + ], + "Bug ID": "", + "Comments": "the nic not support this case" + } ] } diff --git a/tests/TestSuite_vlan_ethertype_config.py b/tests/TestSuite_vlan_ethertype_config.py index 684f68a..1cb1083 100644 --- a/tests/TestSuite_vlan_ethertype_config.py +++ b/tests/TestSuite_vlan_ethertype_config.py @@ -198,7 +198,11 @@ class TestVlanEthertypeConfig(TestCase): self.dut.send_expect("vlan set strip off %s" % dutRxPortId, "testpmd> ", 20) rx_vlans = [1, random_vlan, MAX_VLAN] - tpids = [0x8100, 0xA100] + # caium_a063 card support only default '0x8100' tpid in rx mode + if self.nic == "cavium_a063": + tpids = [0x8100] + else: + tpids = [0x8100, 0xA100] for tpid in tpids: self.dut.send_expect("vlan set outer tpid 0x%x %s" % (tpid, dutRxPortId), "testpmd> ") @@ -226,7 +230,11 @@ class TestVlanEthertypeConfig(TestCase): dutRxPortId, "testpmd> ", 20) self.dut.send_expect("start", "testpmd> ") - tpids = [0x8100, 0xA100] + # caium_a063 card support only default '0x8100' tpid in rx mode + if self.nic == "cavium_a063": + tpids = [0x8100] + else: + tpids = [0x8100, 0xA100] for tpid in tpids: self.dut.send_expect("vlan set outer tpid 0x%x %s" % (tpid, dutRxPortId), "testpmd> ") @@ -254,7 +262,11 @@ class TestVlanEthertypeConfig(TestCase): "vlan set strip on %s" % dutRxPortId, "testpmd> ", 20) self.dut.send_expect("start", "testpmd> ", 20) - tpids = [0x8100, 0xA100] + # caium_a063 card support only default '0x8100' tpid in rx mode + if self.nic == "cavium_a063": + tpids = [0x8100] + else: + tpids = [0x8100, 0xA100] for tpid in tpids: self.dut.send_expect("vlan set outer tpid 0x%x %s" % (tpid, dutRxPortId), "testpmd> ") @@ -279,7 +291,11 @@ class TestVlanEthertypeConfig(TestCase): dutRxPortId, "testpmd> ", 20) self.dut.send_expect("start", "testpmd> ") - tpids = [0x8100, 0xA100] + # caium_a063 card support only default '0x8100' tpid in rx mode + if self.nic == "cavium_a063": + tpids = [0x8100] + else: + tpids = [0x8100, 0xA100] for tpid in tpids: self.dut.send_expect("vlan set outer tpid 0x%x %s" % (tpid, dutTxPortId), "testpmd> ") -- 1.8.3.1