From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0072.outbound.protection.outlook.com [104.47.38.72]) by dpdk.org (Postfix) with ESMTP id 353D437A2 for ; Wed, 19 Apr 2017 14:22:41 +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=2wgYA7gJMb88s3EevknXa3wQ6nSXF9iv46Ay2ymNowo=; b=j8Fduu97GhUY9lQ/HfSxgfuMyRJepmNvVox/ANjssfFqlVEDiBSNbIMfjPEj+XL56rxGWEZxBixKSBJwpuvOmOFHPmSZ3D2gvmPqSsJlnoU0PQ2wj+8yFon4A4SC5/57YgxerpSCkDjcQSUd0vOOxphdK8E92IFASaJmJYfgNLE= 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:22:38 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Wed, 19 Apr 2017 14:21:53 +0200 Message-Id: <1492604540-12114-1-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: 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: ebac9004-b0c0-43d9-f98d-08d4871ec559 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 3:pammTj63hoOmdk/5IT4fHwdpaDI5l5BwgEtu0mX07QPVLL25JTqRmCNCqJRr8krG2tOeQT9I8h6bUU1nMdabzvgO0jYRPoc3uXZjyIT3s6t2DTYYryIlwZqWGAjcay8TNV8bTjRGaex6BJzQ7QYo17pS4XOw3W2ZvRmCColH9lPmB43gygpuuBCs3I7h1DYhfAsBrY2fepAIXCVo/LzeIlbZ5vtVU/WUbwzo5PsTOSHvnGbUiWKjDcJ9Bb38aTbNZncj6mbtHFEV9epaQxGgf7yXLZ8FZwfucAjoMU/Ag9fKQmcDPppvxMHanUWuwJ9EwPcFVdyKMSJ+RYHBXBzh4w==; 25:xZJjyoMtSuz4vObmbsRuw0vU9utpUGwLnBt2XHdTDOYjJDLvs8HortGa7BqVqLnXn0k7ITclxTw+JaOL1//ks6isEGVZ0R3aKoSbuhRTxGZhNQlnZXcYGsW3XEovqusC5XNL2oNLJAZlqAkeAw0F8fQ8SMTkq4V7piGv+j7EIA7e8yLozNubO6/KsKiQKgzZw8rq2QJI4rz7KBTquV6ypNM5Tl/ORhBeAtqk1R4Y4rTqd4EZaQVB5ztPl2tjSaNJ0QL+zz9g9309v6elYPoqrtLdNVXkqzC2dfI8czbSkGMdGR7guXaaGWLjJuNpQCczOGCI4/BSK8a0udMdylxgjV2VUwpFTq7uWHQC0bqO4iLRegaKVSn17xa/qpNKtLdp5ADaxMx++B0BDsU/E/GCE19DJQPm/MW6UhyAQUaDH8Qq8ScDG/TYfPnWKL33RoWLgz1e+/LHJilp1zgcp/TnBw== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 31:bOr8dCbLd4aF6jq47Bghx9R++vwoKBh81YqqWmkW873pyHrnlwlpdOq+HGroc7zFmQ9dfGP07kyR9jpy1ECRKP+QoHgyOAtNsTkx5d5txFzQXb2InWdgJ52VuA0dJKdJwPUNzro0tqeOVe3oNlRvzfJyXxde7SUTASwZ/MWXOgKnfzOFJBtGuoD4RWawHUiejrwRlfcfPyrppOjSmvAtAiXKtHNAKF2se3z+1hsGHuA=; 20:aZKvg5slIsZkU4jG6z03H+4bsCyqKuB1zw1JZmWQU8JBPWH5dHe6Tq9/oFcFskyvrt+EpSAqkQn/UFZic4yneuGewZM2ETKail84hCyKUUbRPyRc6u1zYy7l3ztDdh+ckOt+/Dp2+QpKc7uVdMwtSmqOhg/kilzAWC5FIiGX96S64y8YpdmpjgsqgesNN1FLJNxavyKIlKxINnW7B6PBtOiV8g0zDylhhFo9uKqEwj/Vm2idtJUIQMj33GkqOvgzgZEf0de/aycCq03fbS/eSCKgVRwQDwec7m3PBN95KQleYJtrqllFJcRsFNqca4GDkFyxVNptTXDs7Q/h4Gnf9baxFc3sFTPbR/q+w66RSJkd9I/HDKXflY4EgLZpvscug24gNfYrtD6M0oobThW7L+1/k3Zl0fGwFTYs76IhJYirhQGgXXRN+CLV6Uj/kBDodOoa6Q9r1uEsChJaBXmoCGO1+AqExxOHHUbQfSJI2Hnyqevqg3IqeusqT4jd2ln2niTdWwjQpryP/nIn9n+bQrnM+54mnxEIzqDPdRYsDje8GZbQAe50Isv/B16WkYFIBGHnLv+Vz3xZfzomlq2VmYzsbcUkU+Hxf5MmV6d4yYI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; 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:Lxiw5pX8AnwK8bfZ9smwYaqlwVG8t6dRGzlIdj9myoBvxoJTM+8rLlD6gFYtBfftywJyrffSkwpH/ydVovTqdYwm6Uoqj38XRwg2PAMYdNo0h4tQI6q8tfpFiihLwnbVOTOznXHnzGXyjllAgfK/IVqyLTAO5JiqDoR1Sb+wy2LWx7HlKCLbgiqd5RnwlrjZNjI+hQPSGaqu+3ozoydH0sUWC0X0psX1HWOntp/Ab6etim56ylF7P82HuetiCMlf/pqQtB0MX2N3Xo1LSQz1ZURUiKWXMgrE+UjYNs/sLhpB2GwsHH1Wn5VHQr1QKmonVum4UtQrMV7RQ3bUP2mdZ2THqOqd5aixNPO8STstizOgSrKtG4sj3pjkFMI/tw5DcZy+JQNqWIuPB5eOIkB5UnNs0YZdOHwxN+svojGv3997PSuauudEhV55//zKqVhQNGNAuybRU1Uw1ASq3c5MBXF+IVfRhZl8xjmZgpXQ8uYzCKjhFP6eoKJrfGtR0MG+hBhyYNl+Fc+/PvRPZqwiZaZOJDGt7jfqfFAGIXkXbkCj9ui4IdyUyq0GpB/Hz9CaSS1AwAJy+dooR/X44YPpgeDR148RlpG81UhIHdYtfNQY+maTJbdkcbPs1Ry3Ip+LAJ0yedsg/Dk03nTWeIgFE7sVp2a1v0k5D33w5PsZgKey3yj85qICGw80hzH+dseE 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)(6916009)(2906002)(8676002)(4326008)(2950100002)(50226002)(81166006)(25786009)(107886003)(6666003)(36756003)(5003940100001)(42186005)(33646002)(3846002)(6116002)(2351001)(2361001)(189998001)(76176999)(50986999)(48376002)(50466002)(19627235001); 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:KOK8rIyeWNRh5NyYUlq+LUjNyl/z+EmHRvTTZsL/?= =?us-ascii?Q?HlJWd3R6S3r7LprgjTt28a+nKK/YCjCZ92yBydiaAJvDHc2+jAtgrgHIVzvX?= =?us-ascii?Q?KmGpsPUPnJrD2VIAc5QfKm64Zl6a6Jss4HTZmFjnAUJtYCRgAprjw3sO/05H?= =?us-ascii?Q?Kcuckvn2pHpV729c8nHrZ/dahVpW6UasZIJsgsh6fBlO3uYJMRJWE6C5r7Nb?= =?us-ascii?Q?WUPX9DEc4eWVZtL5ggGYKjP++pgMD4/FEncCCTPAWoxe95x3IzrR2a6kPCs5?= =?us-ascii?Q?F1wPG0sW2zXMDI2ZSQruibHjS/xcBM6yHRaPo2sAoclhSpRzJff+pMKNo5xJ?= =?us-ascii?Q?ptqCii79CRDgzzTBUm9+IYSv3sojgHaf0v+EAw28L3klYoBcOuX9Bw654TTE?= =?us-ascii?Q?CmynMavPxdFCrxA1bsLLNkoKagUK22gkhOxFhbq/4XDO4A41SCtVFCkudB4U?= =?us-ascii?Q?LWW0XCC10f4Y+7T2+t1SxcPAenZPIIv/LgEFJN7eGFIVpzNkTtupPmDXEXCw?= =?us-ascii?Q?S4SHsQds7z3hg7PAoDxpJjEO+PuRsWdIdk0FVeHbLC4wXE0cFIU6XhX4I1D/?= =?us-ascii?Q?Zyt89QwKWY3qAPFis9DVKRm9rK7PlS2CMDnUXmRR+TUHC5I3Q6VzagqMEAGD?= =?us-ascii?Q?1DNX/8fOUaCdFA39Q3mHYNgGAIhfjZ7ubz9vI0SvNw5XQHJdNkxuJZdO7U05?= =?us-ascii?Q?M69R1EydNyqd/YO17qmc5fc+GKf63ERbYuObDDr7ENCtqY+z3xtCO9DtxBh/?= =?us-ascii?Q?Z4QYHfADoiy3FlzSfI6diWcoIXFv7porxH58oPsp2h8ApWUYt2hJ6H31smVx?= =?us-ascii?Q?/mI1sYYJrFa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nffw0OZ+/XLXL5tuYJhytzqZ7Peiu/mTqi4IM3FWCI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 7:0G55D1HhlhwlhC2Sam8iB2Du55s0lXlvb2G0TJkCJjSZIIyCqiE5UdyNDS/Tz1aBiCcKxLFVvjWo29HUuGNpoQScXKf7AssSU1QdqGEjaPTjh+fizIUwT28wC6IKdNt4TUhMv+2b/F3k+4UZ5KsOYV5GxI3+iS1kLPpAXgK3uOeX2trKBC4Vppj50omBVo3quR8bfdrCj8Nidelpp2riiRAw0lIaP/3k09OxzfwPkLb1bwDU4CGy2TGvQgmbPjG1PU70G7iTfqwEAJDX4/OWuwWJvPGHByVQeGIEXTVb05LPjBq38O9pOoXFCemEQQh6+4DRdbUJ0JN9mluROdeYbA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 12:22:38.8623 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB805 Subject: [dts] [PATCH v3 00/27] DTS support for 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:22:41 -0000 Changes done to run DTS for Cavium NICs 1) Cavium devices with 177d:a034 and 177d:0011 PCI IDs are added to NICs list, both of which are supported by thunder-nicvf driver 2) When appending pci devices info, the only Cavium NICs appended are the ones with 10Gb/s linkspeed 3) For arm64 architecture the hugepage size is detected and if it is 524288, then lesser amount of hugepages is acquired 4) Created a method in Dut class for getting the right binding script (if someone chooses to use older DPDK version) 5) Checking link is done via IPv4 ping alternately, so that DUT can be a system without IPv6 (previously link was detected solely by checking if an interface obtained an IPv6 address and then by using ping6). This also makes force binding necessary, as those interfaces are detected as active. 6) Checking whether vfio-pci was loaded using lsmod can be deceptive. If someone decides to use DPDK on a system with modules built into the kernel, then this approach will fail. Instead, DPDK binding script can be used and if it shows that vfio-pci can be used, DTS proceeds, otherwise it send with an error due to a failed assertion. 7) Modifying tests and config for Cavium NICs 8) Added support for Cavium NICs to choose only cards with specified linkspeed 9) Skipping recompling DPDK in TestSuite_pmd.py if the driver is not meant for FVL Changes since initial version: - Added support for Cavium NICs to choose only cards with specified linkspeed - Skipping recompling DPDK in TestSuite_pmd.py if the driver is not meant for FVL - Setting max-pkt-len before setting vlan stripping off in TestSuite_shutdown_api.py when testing jumbo frames Changes since V2: Merged two commits connected with binding scripts Angela Czubak (27): framework settings: Adding cavium PCI IDs and drivers framework dut and project_dpdk: using correct available binding scripts framework dut and project_dpdk: binding smaller number of hugepages for arm64 framework crb: Appending only 10G devices for cavium framework project_dpdk: asserting loading vfio-pci by using DPDK binding script framework: checking link with IPv4 ping tests: ipv4_reassembly - added splitting result in tcpdump_command tests: Modified tests to take cavium nics into account tests: checksum_offload - fixes tests: dynamic_config - taking into account cavium NICs tests: fdir - skipping fdir tests for Cavium NICs tests: ieee1588 - skipping ieee1588_enable test for Cavium NICs tests: jumboframes - skipping jumboframes tests testing bigger than allowed frames for Cavium NICs tests: l2fwd - fixes to run on two cards (same NIC) and expecting "L2FWD: entering main loop" instead of "memory mapped" tests: link_status_interrupt - skipping test_link_status_interrupt_port_available for Cavium NICs tests: link_status_interrupt - skipping tests verifying adding MAC addresses for Cavium NICs tests: pmdpcap - modifying the right config file + importing utils after scapy tests: pmdrssreta - skipping tests for Cavium NICs tests: queue_start_stop - taking into account cavium NICs tests: quota_watermark - skipping tests for Cavium NICs tests: short_live - taking into account cavium NICs + fixes tests: tso - taking into account cavium NICs tests: uni_pkt - taking into account cavium NICs tests: unit_tests_dump - taking into account cavium NICs tests: unit_tests_lpm - asking for lesser amount of hugepages if they are 524288kB framework: Adding linkspeed parameter for Cavium NICs tests: pmd - Recompiling DPDK only if that is relevant conf/dpdk_support_test_case.xls | Bin 25600 -> 8704 bytes conf/dpdk_test_case_checklist.xls | Bin 31232 -> 21504 bytes doc/dts_gsg/config.rst | 4 + framework/crb.py | 12 +- framework/dts.py | 5 + framework/dut.py | 52 ++++++--- framework/pmd_output.py | 4 + framework/project_dpdk.py | 25 +++- framework/settings.py | 5 + framework/test_capabilities.py | 9 ++ framework/test_case.py | 7 +- framework/tester.py | 11 ++ nics/net_device.py | 8 +- tests/TestSuite_checksum_offload.py | 38 +++---- tests/TestSuite_dynamic_config.py | 10 +- tests/TestSuite_ipv4_reassembly.py | 2 +- tests/TestSuite_l2fwd.py | 4 +- tests/TestSuite_pmd.py | 5 +- tests/TestSuite_pmdpcap.py | 13 ++- tests/TestSuite_queue_start_stop.py | 5 +- tests/TestSuite_short_live.py | 44 ++++++-- tests/TestSuite_shutdown_api.py | 31 ++--- tests/TestSuite_tso.py | 10 +- tests/TestSuite_uni_pkt.py | 219 ++++++++++++++++++++++++------------ tests/TestSuite_unit_tests_dump.py | 17 ++- tests/TestSuite_unit_tests_lpm.py | 9 +- 26 files changed, 390 insertions(+), 159 deletions(-) create mode 100644 framework/test_capabilities.py -- 2.7.4