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 9C86FA00BE; Thu, 31 Oct 2019 07:22:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6B9431C1B5; Thu, 31 Oct 2019 07:22:30 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 269441C12E for ; Thu, 31 Oct 2019 07:22:27 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9V6AFjb003756 for ; Wed, 30 Oct 2019 23:22:27 -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=VBWlrWSBM6Jn62T8ijA7iqilvoXJ9LrFPdgVIHlZxqA=; b=pk04e9T8VWpSoaq+c9r85DwpDBR2tSH/jXUYLLEsaVoYo6NtGAnfJNGC1OrxLEfuRCVe notloaenhMrm21cYyVdnm17usa9TeD5L/q1qGeWECk5i7bBR7MU3fTC/uDP6s+ko6s8e qFrvSYuQkKwZNs8fdnV86+TiCJ+c0u3djYo8doe+EXEQL4iPxCvx4GNbhfWEXn7WsYIu Yt1fM+Tt2mplkEsFgyKWbGejdzVEbJY4bHTgAImsXNA26X6zBEJET7nliwHQVU9CxOof 7eq4WdQsF6FGuY8cHwVnaMIr5IBTX6CyUFOMUhdv5n4asu6MBGrzBnpKJAwB9XXa/l7A Ng== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2vxwjm61j9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 30 Oct 2019 23:22:26 -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; Wed, 30 Oct 2019 23:22:25 -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; Wed, 30 Oct 2019 23:22:25 -0700 Received: from localhost.marvell.com (unknown [10.28.10.195]) by maili.marvell.com (Postfix) with ESMTP id C7F233F703F; Wed, 30 Oct 2019 23:22:23 -0700 (PDT) From: To: CC: , , , Praneeth Reddy Date: Thu, 31 Oct 2019 11:52:20 +0530 Message-ID: <1572502940-3645-1-git-send-email-nareddy@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:6.0.95,1.0.8 definitions=2019-10-31_02:2019-10-30,2019-10-31 signatures=0 Subject: [dts] [PATCH] TestSuite_rss_to_rte_flow.py: Adding priority to rules to avoid overlapping in 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: Praneeth Reddy According to RTE FLow spec, if we add the overlapping rules with same priority, behavior is unknown So added priority for each rule Signed-off-by: Praneeth Reddy --- tests/TestSuite_rss_to_rte_flow.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py index 1198c3e..e745e14 100644 --- a/tests/TestSuite_rss_to_rte_flow.py +++ b/tests/TestSuite_rss_to_rte_flow.py @@ -538,8 +538,12 @@ class TestRSS_to_Rteflow(TestCase): time.sleep(2) # Create a rss queue rule - self.dut.send_expect( - "flow create 0 ingress pattern end actions rss types udp end queues 3 4 5 end / end", "created") + if (self.nic in ["cavium_a063", "cavium_a064"]): + self.dut.send_expect( + "flow create 0 ingress priority 2 pattern end actions rss types udp end queues 3 4 5 end / end", "created") + else: + self.dut.send_expect( + "flow create 0 ingress pattern end actions rss types udp end queues 3 4 5 end / end", "created") # send the packets and verify the results rss_queue = ["3", "4", "5"] self.send_and_check(self.pkt2, rss_queue) @@ -551,6 +555,10 @@ class TestRSS_to_Rteflow(TestCase): rss_queue = ["1"] pkt = "Ether(dst='%s')/IP(src='10.0.0.1',dst='192.168.0.2',proto=6)/UDP(dport=50, sport=50)/('X'*48)" % self.pf_mac self.send_and_check(pkt, rss_queue) + elif (self.nic in ["cavium_a063", "cavium_a064"]): + # Create a flow director rule + self.dut.send_expect( + "flow create 0 ingress priority 1 pattern eth / ipv4 src is 10.0.0.1 dst is 192.168.0.2 / udp src is 50 dst is 50 / end actions queue index 1 / end", "created") else: # Create a flow director rule self.dut.send_expect( -- 1.8.3.1