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 8C474A0096 for ; Tue, 4 Jun 2019 09:38:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84DF71BB3D; Tue, 4 Jun 2019 09:38:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id BB64B1BA7F for ; Tue, 4 Jun 2019 09:38:54 +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 x547ZACm030146 for ; Tue, 4 Jun 2019 00:38:54 -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=IzihTs2NQpwOw3QKQ5x69PCfASsJ09z5QSv574bYC8w=; b=qUZ+PVknkofGcro77+8GVnP6LY4JWhB3FT079ypJrVS00o6O+SIiigKmuP6btoZBOkgZ bZun+SFiBUnudA0/Mg2xTqmzTX+WJCgr4kn99s58Cg69KdTZlcym/V5Z6uZgq9P56kH+ elz2Y5aIfODZB1bEfTJKvz66DfasxMR/eTqL1WboN8UkwDfa+/hE0Y4jQaOFI9UeJuH9 3UeoFtWXL2lcG7LEPE+UhPvwobp/zzQzBOzzEjWRY/O7Y0vlnpNkdxlRXWqfOKJS6Reu RNAYu0vaS5StwFy8eX724ojma4l58Gf1+XevmAVR5ZbVKYxMXvqErpFIcmsSKAdrSm/5 Dg== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2swejx98f3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 04 Jun 2019 00:38:54 -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; Tue, 4 Jun 2019 00:38:52 -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, 4 Jun 2019 00:38:52 -0700 Received: from localhost.marvell.com (unknown [10.28.10.195]) by maili.marvell.com (Postfix) with ESMTP id 63FF53F703F; Tue, 4 Jun 2019 00:38:51 -0700 (PDT) From: To: CC: , , Praneeth Reddy Date: Tue, 4 Jun 2019 13:08:43 +0530 Message-ID: <1559633923-2122-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:, , definitions=2019-06-04_06:, , signatures=0 Subject: [dts] [PATCH] link_flowctrl.py: mac control frame forward is not supported 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: Praneeth Reddy Removed mac control frame paramater in testpmd for cavium_a063. Marked pause frame enabling test cases as not applicable for cavium_a063. Signed-off-by: Praneeth Reddy --- tests/TestSuite_link_flowctrl.py | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flowctrl.py index 0057b46..8961512 100644 --- a/tests/TestSuite_link_flowctrl.py +++ b/tests/TestSuite_link_flowctrl.py @@ -149,7 +149,15 @@ class TestLinkFlowctrl(TestCase): tgenInput = [] tgenInput.append((tester_tx_port, tester_rx_port, "test.pcap")) - self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 mac_ctrl_frame_fwd %s autoneg %s %d " % ( + if (self.nic in ["cavium_a063"]): + self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 autoneg %s %d " % ( + flow_control, + flow_control, + flow_control, + self.rx_port), + "testpmd> ") + else: + self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 mac_ctrl_frame_fwd %s autoneg %s %d " % ( flow_control, flow_control, pause_frame_fwd, @@ -250,10 +258,14 @@ class TestLinkFlowctrl(TestCase): PAUSE Frames must not be received by testpmd """ - pause_frames = [self.build_pause_frame(0), - self.build_pause_frame(1), - self.build_pause_frame(2), - self.build_pause_frame(3)] + if (self.nic in ["cavium_a063"]): + pause_frames = [self.build_pause_frame(0), + self.build_pause_frame(1)] + else: + pause_frames = [self.build_pause_frame(0), + self.build_pause_frame(1), + self.build_pause_frame(2), + self.build_pause_frame(3)] for frame in pause_frames: port_stats = self.pause_frame_test(frame) @@ -265,10 +277,14 @@ class TestLinkFlowctrl(TestCase): PAUSE Frames must not be received by testpmd """ - pause_frames = [self.build_pause_frame(0), - self.build_pause_frame(1), - self.build_pause_frame(2), - self.build_pause_frame(3)] + if (self.nic in ["cavium_a063"]): + pause_frames = [self.build_pause_frame(0), + self.build_pause_frame(1)] + else: + pause_frames = [self.build_pause_frame(0), + self.build_pause_frame(1), + self.build_pause_frame(2), + self.build_pause_frame(3)] for frame in pause_frames: port_stats = self.pause_frame_test(frame, flow_control='on') -- 1.8.3.1