From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0071.outbound.protection.outlook.com [104.47.38.71]) by dpdk.org (Postfix) with ESMTP id 0098169C6 for ; Wed, 19 Apr 2017 14:23:08 +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=AcJPwo5GZ2OdhArv/pldpaT74MIdrW/tFYo8fx1Wtq9ucXr749bAK9CNjXtTqR5kK0bAdNzXIwvePbzQLP1OD1hfg8bnhe3Z4IPbwYILYeuos8Dk+E5U9YJnMfsI6wU4vHEaMsdirWuwLFZSf8yAj9rY+9Ycv7DR8JgTyTJ+i24= 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 CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 19 Apr 2017 12:23:06 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Wed, 19 Apr 2017 14:22:15 +0200 Message-Id: <1492604540-12114-23-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492604540-12114-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> <1492604540-12114-1-git-send-email-aczubak@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM5PR0701CA0064.eurprd07.prod.outlook.com (10.169.145.154) To CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4754e8c1-1dd5-41d3-de63-08d4871ed616 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 3:Y7mhVdmpeN4RFugV8I88QFhyUfQm7vPmTFD86zJ5rOAVqDiSO7+LYgsM5rMePqb0iBF6BwcPWPxH2iYekZvzFhgGv3ngzvLe6rEjlOrvGyEqPaGuMHXVZ4+/C//wGlsneRlPUC53dAgdXMvyWSMAupgOxcWJeb/d4pWG4GyBmB8sc2xQ87pD7R6bR1Md/a9jdekzu3nOlmP2hBcmax+sWcwdLskR+TFZhJlN4RW6bn36WuKvEl2oLaPM4XUldLCnmfG4GugeodfJbnkuCFJ68PuKtPVfgQR2XzEqWLAX8LdVXGf3UgkhMia52YIu2DUCo1gVc7GfH2nS8XbI6LLObA==; 25:wVNBZEBWWh3+3tpIo3szOHl5qsLzpDUWLfWS6Nlsg+KnBWThFo+n+LcPNQyezslrJIytW45cZ87gt6mRxdrTnmT9OO8ovTnWeHz0ziUwkTeG9XHpKnWHnjEUFbUkpkJmsEH0d17MWftU9IArMT96flmpoG11UrKUaNfO/ACn5vkTqk6csTQvjUs4iUbFaw42rIyswMx2DTsWUBqRV3pfPaL/cRAXsZanT/6zmilUd95OLuFSeSUr8+qGQS61SvHvG10wobqxe/MLHRqvUIdtNMV3DzunaEI3TUdO3sjytKTD3GFxUS65pkp3MvH94ttQjbAwNMhst2qCj6ZLpUIgGVXjNP1rhPoPNdZwAAvslnV5OKBkrrx6hgIYCKKw02M7uVdCSf/of41aQIO8NX69Pz+j0J2kb0i79alK0LeOiPzSB2SiSrEKcoXJqkz7/88tDKgE9bqq5hoN6hjxKU7QcA== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 31:Ss/vgwUKWBtKs1bEjrDIARjrWn3OgF+qbJuNzQSShHAt8HyxVsjhl0uvZAiR6HROSzcnC+Rp5fM+e7ku/nGDvk5Y3iCRGMu2fjbxunpoXXxYbDpyqXZB1NLmjq+94M2kVtQnjxOMbyInKwbDSwxpxVfn8IAJesbAEBsyVvfv9sTWLepvTKHfoKFmudjs791EfHVi49MMCgISo/YsCHZgyAiPj31AiRwiZRoVYfKj/JE=; 20:4mCHo+83OPGQfLKwy57bZ4e34V34QX5pnQWIAGaRlqY/Dz1TaO2UYSxzFgv1SJcUIGGa/dPFT8CuKGoaDxbZapioXBrTSdvMhbx4k/ViAbCUdmytJf4jMWGVHIyzswXtAtNFWlgaHmlUBgOpzHbWs0pM1CebLUuOf5QyGCKmdctxYQtrfuKTebg6b9v7G2c1uOuPslFBXfgY1fKgAtKfLEMQNlt+m2bWbB2xXkzj3LjVw/Y2tB3jm7CmUxPeO4sfNYc6Xb/wOv6KYAlz1PUs8bODVYvsHDuWg7Jf5lhXb8CDlCeCHhTUpOlg9R0cMjwd67/iuX3VrqaCU0Q0KUsK2AjRuQYzodwErrAZK54rt7eWH+XSq5qcabc0/P3mZRSm35hpyJeGXyB2zip4f7awdVmXzsp1cnVeertjm3LnjRivdxKlcYzPqb7G8Ox3C1t/k88RLmuX1HJ9pTmAHkzmogLlcd8f1r++RNqlSLWpjmBx5DsKz4rLDSQSaaIWH6wzn8ptMg2LkJHdUzQVF2v2eY9Z+aJMlrvgDDosYh3wOMYnO769jIPRdlgECz22FsAnnVs3XkAq9sOIMcI4G4gzSZLSJq4u5tmadyREwRt8ffA= 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)(3002001)(10201501046)(93006095)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:CO2PR0701MB805; BCL:0; PCL:0; RULEID:; SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 4:CL/mNC7SzpXFzvaBXXQmTcMiG0VLQBxsuTEKXiEeBhZcV7ezBlhoAuC16inLH25eOvKCoFajq0aYHLOYkbsce3PY1pbODNP5uUsiQrC4wL3/5AlMhv8UZrGya7mELUaktBmyc9ec64o+/L6spuR/dlXrBgyki0Gxnjn0ZNPTZafew5olooc+j6AyQbGm7Eo3RNxCFIN+O2NHGLk2zYxPGUIcM/llTz02DMG4rs+03LPwL0ornP4kE9tjegTeFqYv9GD++lmO0Q0F/TWbdCsSuAsriVKhz7psWbci9GhApXnGR7a8gVBKNQykVrhPy4kgPfdDVD9AMwlvsYSHYXTwFSXnYI9YjOMVDR+4ogM8AAKBfXOiwZbEjSnj8ICZrvOYIVIvWzgEOWi5MFWZ7booeEpBJ5fwFktvZ1QXv1Vm/cQhbv3sy5Lhd+YFVgC/tAiN+fD8Gv0kTxD0CyYgRoLhYTp6axri1F9iQAa2pRr/Yk79rLO9GQCgcMaA14C3Ujnnx4zrwvrvyqx601eFR4pPjFnhxkx5WjoUP1WmE1i67Onplc/I1fV4GRuogyqOnObseNAtKoMfBrT2MAu+gKXm2hvWRRa6KMCzAF8hqY6vV7iTPuwrm2nwS3x5jQa/uHpZUpJ7W55Rrz+wlgZwLjs1/D4ZXkeWaQXG29ZGNpz8DmTP0siA7b4EV39wzoyVXsfzU59TfXnze6rPRl0Wvb4p7Ts9rVV6syCqG8BICS2Fy3CVP0Vdpt9RWUCLHD6Hl+sd X-Forefront-PRVS: 028256169F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39850400002)(39400400002)(39840400002)(39450400003)(6486002)(5660300001)(38730400002)(6506006)(7736002)(6512007)(66066001)(305945005)(47776003)(53936002)(42882006)(110136004)(15650500001)(6916009)(2906002)(8676002)(4326008)(2950100002)(50226002)(81166006)(25786009)(107886003)(6666003)(36756003)(5003940100001)(42186005)(33646002)(3846002)(6116002)(2351001)(2361001)(189998001)(76176999)(50986999)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR0701MB805; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR0701MB805; 23:CZnIjYrOPn+aSn+OkZOF+IL6/dKyBhloL5Kqc6ze?= =?us-ascii?Q?yIUUeWUJGe9tywOEpaf3TBlXIbrmRPb2JVkP0R88BgTxWBAzADlBXKcrPGzF?= =?us-ascii?Q?SUi1/efOK02dxRASGXLkD50CDMghvQ+LoeFEb7utmAuUdbBHanDKDL640w/4?= =?us-ascii?Q?uzDcqVdmRPsomjN4b/RkDcGCzZ6lSsw238+odL9LIz0lOF6D3lHsxmxn6i0t?= =?us-ascii?Q?3VbAfxmdxrdGZhmQVTYBQUsRXRnY5ESrHcKFEWJQ5sPAZ6e66mf+RkIjrMWy?= =?us-ascii?Q?8OrdJva+gD5bbLt/vmVwe9EjHzUc1M9ageG8NehGjpvENwej8PpPYsxt9eRG?= =?us-ascii?Q?g+lHoofmc2YzBu6pBEqf2QpnlgbjwsupaNzrremaPKSnk8ZbHpC0sMJkcaT7?= =?us-ascii?Q?vXdbRis+o3DIxwNJuwZfMMkndKP5bE4z9vYO3lPYJ/QwkHK92orjoRU+0wly?= =?us-ascii?Q?0bUvqTkRypcV7BwPU6bQMbAxkQiak7PVk1TqwSIJB4b3eSGZ2d5QhqZqP08h?= =?us-ascii?Q?F/E0dJRWvYJxfb1Efl9saNJWyGG4owI0aLdIRvpvwckygU1c1lnTO0ebh/86?= =?us-ascii?Q?sPOyelk3c0MOfbIDVNFGtSmIGzYmPDRXSLtx2Wk/uvlev0PokUL/hLhURuj8?= =?us-ascii?Q?Kqw3M2pnJ+iTB5XW7HkSmmQQIBmlfLA4+11QfKZPkXHiLnJx1+5mSS4wQZ79?= =?us-ascii?Q?8xKEbA53JNqWXqC5w8YwyPPQfSwsdS4lAmxNUtZ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Sey9aiy5kCpm+M5AaoFaaJH8u9wHFjCiC3eY5Q==; 24:7CJHqCzCnplKW5dnqj5F80atpVarqYxtEvWVMLv6VNxrYVue2xfUPr2OkHgaojjNo01jqN5LfgXSTSQAehMxbUeCHQQ7k+Zb3dKuwV1gc6Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 7:MhP9UNR9fVjLQ9ut+5ctPcpjo7vVnpev87cwLh11iiIs/b2GOGuWWZXkjOMHY0oaqt4y4scBCv6l8rNAfUU8xrUEXC4dsWpxXrREikSvasyUNqTksuQ0EESvNTDxt0bkPkTSpcPqYEog2sLzwpSd1mZ88NyQj0DFDf+eYFpxAYniUCP1r+8yuoc+jVimbDlpq24WKEORq+gxOim5qLLRixqxp/iSFYIOOGsrST+upOUytgJrcDVKyQoH31E7CdmA/EI5vr8bN+a0Ls+kGfjFPBi925Sm/agixUBpJl5XrCNt27ZGVHLakesiHRv8NWRlrL5XM+X4RkjNQakWrXsULQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 12:23:06.9428 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB805 Subject: [dts] [PATCH v3 22/27] 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: Wed, 19 Apr 2017 12:23:09 -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