From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0067.outbound.protection.outlook.com [104.47.40.67]) by dpdk.org (Postfix) with ESMTP id 85782326B for ; Thu, 6 Apr 2017 19:52:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0fVlfT+sqZ2E60LhLMB0BOK5gtvKc76T0F44bKDNTE8=; b=neyulChK0yOyrHlvb/1k4Z5jSXzCsn8cJElbLb/McHT3YGO8OIX7RElePrLo+oNM6Vo0REIgtQeBWKD/NTUcLCC/ws9uBkdvD81RynIKkbOD3jJbPbJfj7WnQdB/9cD54liDud8BAzRrrAjOyxQaDDkEJUOqtn5FkM7HuYIdNMQ= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from angela-H81M-S1.semihalf.local (31.172.191.173) by DM2PR0701MB810.namprd07.prod.outlook.com (10.242.127.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Thu, 6 Apr 2017 17:52:09 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Thu, 6 Apr 2017 19:51:29 +0200 Message-Id: <1491501092-14278-24-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM5PR0701CA0051.eurprd07.prod.outlook.com (10.169.145.141) To DM2PR0701MB810.namprd07.prod.outlook.com (10.242.127.24) X-MS-Office365-Filtering-Correlation-Id: 94cd111b-c73f-42ae-f438-08d47d15a5da X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM2PR0701MB810; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 3:qUYaudYxfFhr8EN9akTyzZRvP3ahcTkjIdqCpUwPCIpux7e4wU2DbvrfNR4N/ecbFCmWkBBkFtOexL4aDHs+CRArHhggn10+zWFxc7IEzDqVVtbuP30M8SHowQ+31wWuEeBJfiKUWdPrhoMnvmkb7I80WCAr3YHk2kimYfeJb58vyQ/WMXzWsZFBLyJIiT8pPLcpENrxN9pyIwCtcN/Ixz/R7ykDIVh3OBh/axvkPN//Pk59wcP2un5sl2G3cZcBkLMdolmy0/ulNNKt/E9Vy85ADYbWUtyq9jdIK3cx3BkOzOX1jhcRdgq/5dKpgPk70MJT6e+6a0LmVlq3oIxCpw==; 25:oTPzCHTTxk00tOk+s3OJ3wmUeMB96E1b2as7HVRDR68P1yBa3oPS71o4b7hCLmLOQiBUQf+awrdX1bTpyD5+S+6KeGKJ7fY0HxoY+Ko1o+iGBP6jXYA8XS0a5S2PSL6Svqy44edijq2NATt8yZZCUGpTzMOSTw/3XkGyV4copnY7MB38BP9zyQhmYLc1InMkOwaKABOm3uk0txzg1LGMVo9pb0n+B39T9hIGzuZoKhUUKMYNxSrMy8Yag9QLYVKmLh5Q5ta41eQ95h1HZvv+cYUsaK30OuWaT5os7ue/PlGBAMg/StFKicJ7QbBXfz86cYhemWZyTlMwlyE9xJbWdtuFICVj+l8HVkVu46+s3yszPUOgjbKRq/yt7LmVK/jy72HNNRMEki5sL9DokwXR5pIN0P/z+n6wYGsDChF6FsLl/XfYszITy7uyG/BuMqzXxIpwcowIvWxQZ7HSvMBn9A== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 31:IQR5mNxTVRbt55OkEfgiMxYhyMIUlGHaHXb+vgewxjhqE9AcfKpMEIyilVsjGvwhjKSTByBgxzm6sUVq+x7j9KL8etswpg+h73mskllsh2a18ojegoqRwgCX7x7u1fieQNptqVKWJr2U7Giwnsiexu+cqJX6FiO8y1Oi+01DAUxExYVulvHfLvDOs1zXjjiwh6fz1NLl5CsbWRxVPfUny113WJ75iPbwpKUY1vr4Wdc1FNzuAe393MvncNrZg6z9; 20:3vg1u0XUFJX5VIvl3BhzJHKk5331ClUOYKOxOJDIG9zkY5HLVqsUaq26DWbaEiyk82v5oS7DZKtBoE0JxqoLu+czngVFa4IksFejyqftRLrv8wvwoqsiB9Gf0b3OkgrXhwcWtGtkGZ0XTODOtr2ZEh6WBFzdLnsD8Wjov1nnE7JQb0uH0ttZ+vMtiXuBJfL1d43cwFYSSDa22w8WqhC0Sx7lXe1tB0QwTjNm2QQVk1hY4eFQqwNP+5nEGA8aJnFGStDedzhQwW2zaXroKKdpokBOXS6jfAdWICrazVwB0iWFPccrGLlLQqmwdL7gSMn6mTDX2unk3T33Qp47pyvjnWv2a1zkROf1yTKigOAdbB0OLBLlk+Wxgvy3zBK6zNUCvenWGWG+cAp0q/quLA8z1VoEY/WHbqs9VBUgndA5828Qg3VakzPrlEjYfgz8rnv5cD902c7UDQiz1K03p+L2kUK5SWAqiQsgGk/7xlBM5xNPp9++GCyPyQm3R9Sqz3e4ny2h6Ch1jYnKfu9CgqDlaDhOy/oXip0bRVogIwUMr08ZYeNdjmpFeDxRhQqAGQYtnQB9EvbUW0he3US7xpZ018YN3P6XqfLvrKtI9ySBaGI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(127540120423786); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(6072148); SRVR:DM2PR0701MB810; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB810; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 4:mGT8noIr//Gw47OsjfbCiibQHZvF/ps6laTup03d7Xh3sUapIicNZvN98vT/Na9J2FRSuBzkjAi+GrAruh3QHaTj7TqjlXStfudLHB3H5royCRmEX0cwu0Oz1q79IYvvxUURGZY/z5FY0MnHL1ABQOe5l2FTmtUENGQ87wRkcJM/xXROj8RFPHc0QBNMxGbRS7B2MKlIqmtIiGNqR0I6xWyX36l4o4MXK54Bz924mxeXDTmCTZh8Bw6rEZec2esnEtDuumEWXUYjm0R8lMZaHB/r1fpYLY9P2vvM6YyJnXw9m+AbLrvb81CBvc1UqnqfAwuSaHa8swt8R5eYTPUSRRKRqENJbNIngbWbJ12LJOReD5BiPbR6U8ery1Z0KBRuw4a5pECF5DECyBvgoMhdHo6+DwDNpGBLnsiLsg3fpIkpvmEmGSwzQQsNF1z9PrSHaR+pT7j3aqQQoKFs4WvFcngfwMhcNetvyQhznSzIhJ0SGrH7sXoCVYT7FBFb01323CijMTAqMzD2aRXQFB/2zKC1wp6IgXpy/7apZAO/IR1TmoQRFFyvmIYnvsuGNvhHIfudiENtok1CP0iiCnT/MgW9q9Wvi5ghVHsP3ccWhNp72jcHEhj00wBueXwk+AA+CM+XrIBYD+xPTKH691E3Q+9dG9YobMx158JXMJLi9W1PYqnZhQNL709RsxL6nyYp95DDwNcljVpl0tygW7s5DGR+BCsrJ0eL9mYz1+d6+a/WY/hw/zkT56G2ySVIJ2G7 X-Forefront-PRVS: 02698DF457 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39830400002)(39450400003)(39400400002)(39410400002)(3846002)(50226002)(6116002)(47776003)(33646002)(6506006)(189998001)(6486002)(48376002)(50466002)(36756003)(66066001)(8676002)(5003940100001)(2361001)(42882006)(110136004)(107886003)(38730400002)(76176999)(25786009)(2351001)(6666003)(81166006)(42186005)(15650500001)(50986999)(6916009)(6512007)(7736002)(53936002)(4326008)(5660300001)(305945005)(2950100002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB810; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB810; 23:wHSLAsf6eeFBE3qj4gfrMDcIV7k1gqvI9+fc4xJ2?= =?us-ascii?Q?OkLJMaR5uq7RK8DjNwbU9r+c68+5+5zGndgDixUXUS5iTH1x0Tz0l959ZgNo?= =?us-ascii?Q?zmedY1JkMIyiwpnHcOauQvQCttOeM4MKmZW8WQk5U8kPU5agf6m7WK400j5O?= =?us-ascii?Q?Nu/qoMafv2yN9n51BGQD4Bx3pT5zs5Jfm2QRk1+bHMul8YsEmHn9HE3oGJ4L?= =?us-ascii?Q?5P6F8iBKwi1aJDTa96YBuF+tkn/ko7hhYvbDd+NsYB3XMrKe+sZh1MfMx4nZ?= =?us-ascii?Q?78l6L9Jj1Ott9odOwqt9PQnmFLBZYHXCSVKYHzNrLeu6KqTjVeQapZ8LSCBr?= =?us-ascii?Q?1GICM7LJEjkX1daeMtuuc+Ak1TMonrv5CgNN9zCfM1tTIL35L0TBu2MS8nnf?= =?us-ascii?Q?YUuMRNVXhO27Mp+WzrcCG8c0073iQrUT3RjOC4UVyAN3rtuUTXPEZ2XmYZLN?= =?us-ascii?Q?EdBsMFDKuDtgu6UPDE8eU7ss3bkP8S/61aWTfrZ36s8JwEko9nKqBybMdM6L?= =?us-ascii?Q?RGpkL3ZNjD39FBgcCdY3TlKpmBfK0K3NqoNbs+5p73kOC9YeIHZo1AcrCntI?= =?us-ascii?Q?TsXoXgp68XdWLlhIX7bzH61tu6hEyJlUGhO2RluTCY9k1wtPuv5MipqFu2Nr?= =?us-ascii?Q?WmScufMASu/GKEs7uZfuCDpnq5+E/KRsHHe8igFcah13CFyUzvYzF7VoFQA6?= =?us-ascii?Q?hIc5ooCBuibWL1i1cAP0l4+87x+y3bz+2FF5OEUeEC05Mh3Ca/1AffJRyLli?= =?us-ascii?Q?rCuWJPiaHi1hUAfPlcKYgNRoyOFYOIo9g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:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 7:D3tSIi+PR3cnxIid7hIWO6pSBeY2V1tLVKTMnZYTmrbwIgwKcy7+/YfBOYwezWY0u+vZgM1S4q63PmJq9Jt2UKvudoVRGG3jYCMWwpKcY8hdy8yEM2q4RZhNgZF+9uRyK3PQF2HoO6fEIcxpTU3WZPtyxwiZQiEDvcc6nVZw4xlx5RXW+5aajX5ztq98whn1Mhcw9bV6E/wCrQpQ/NiySBIBSRrsIgWhmJkqDdthzmIp10s7lvWomjWpuVpTIdGXRXpJ9DcMPnrXSWKzP+1gASjxl0fnC13Ay3Xs9VkWZydUSjliHNPa4daqG6qwMn85wIq2Wy51PUfOSeYxEQRywA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 17:52:09.0643 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB810 Subject: [dts] [PATCH 23/26] tests: tso - taking into account cavium NICs 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: , X-List-Received-Date: Thu, 06 Apr 2017 17:52:11 -0000 Enabling TSO tests for Cavium NICs. Testpmd must be run with hardware VLAN filter disabled as thunder driver does not support this feature - --disable-hw-vlan-filter is appended if NIC is Cavium device. Signed-off-by: Angela Czubak --- tests/TestSuite_tso.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index 00f7539..87d8b69 100644 --- a/tests/TestSuite_tso.py +++ b/tests/TestSuite_tso.py @@ -55,7 +55,8 @@ class TestTSO(TestCase): self.verify(self.nic in ["kawela_2", "niantic", "bartonhills", "82545EM", "82540EM", "springfountain", "fortville_eagle", "fortville_spirit", "fortville_spirit_single", - "redrockcanyou", "atwood", "boulderrapid", "fortpark_TLV"], + "redrockcanyou", "atwood", "boulderrapid", "fortpark_TLV", + "cavium_0011", "cavium_a034"], "NIC Unsupported: " + str(self.nic)) # Based on h/w type, choose how many ports to use @@ -158,6 +159,8 @@ class TestTSO(TestCase): self.tester.send_expect("ip l set %s up" % tx_interface, "# ") cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --txqflags=0 " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask) + if "cavium" in self.dut.nic_type: + cmd += " --disable-hw-vlan-filter" self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "testpmd> ", 120) @@ -224,6 +227,9 @@ class TestTSO(TestCase): self.tester.send_expect("ip l set %s up" % tx_interface, "# ") cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --txqflags=0 " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask) + if "cavium" in self.dut.nic_type: + cmd += " --disable-hw-vlan-filter" + self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "testpmd> ", 120) @@ -288,6 +294,8 @@ class TestTSO(TestCase): queues = 1 command_line = "./%s/app/testpmd -c %s -n %d %s -- -i --coremask=%s --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --txqflags=0 " % (self.target, self.all_cores_mask, self.dut.get_memory_channels(), self.blacklist, self.coreMask, self.portMask) + if "cavium" in self.dut.nic_type: + cmd += " --disable-hw-vlan-filter" info = "Executing PMD using %s\n" % test_cycle['cores'] self.logger.info(info) -- 2.7.4