From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0041.outbound.protection.outlook.com [104.47.40.41]) by dpdk.org (Postfix) with ESMTP id 785892BD1 for ; Mon, 10 Apr 2017 19:09:36 +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=y5W2psrvIHKp5yKKq9kTWs74mMWTn/OOgmat6sKW7yk=; b=hFPHgpsiJgEhEALAhdJLDPZAVDDlbc3JrqOxwHJQ7Pf/Nvzj7T3LTe7yhqYNZaef2ucgiygR49mnsxWMu3ASRitU7E6K6dhiltugUUmXBMhod8HzPN+HHCgX+FqcxBqbr0QJedwDIkEitH9DJG0ewbfdnuqAAGeJVEd3HdM4vCI= 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 DM2PR0701MB812.namprd07.prod.outlook.com (10.242.127.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Mon, 10 Apr 2017 17:09:33 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Mon, 10 Apr 2017 19:08:54 +0200 Message-Id: <1491844162-16300-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: DB6PR05CA0010.eurprd05.prod.outlook.com (10.170.218.23) To DM2PR0701MB812.namprd07.prod.outlook.com (10.242.127.26) X-MS-Office365-Filtering-Correlation-Id: 66491cff-974e-485a-7cfb-08d480345c69 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM2PR0701MB812; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 3:iIhpfE3UqhKjqGccAHE6QbDUTRXRyIu3QDUnSqdsBGO5sTU84KAx2PQFDaqbhCaxRwYFvqmoh6PcwEMFiWb9KZgdL6PuLsrKSsRwTFEt5QalSfVAjUmVuOVvWOz5/xU3Ne46dj8kvzsmq2l9MF2JJ5eNWZIOZiMkh61UZrI6YCYA6LXhipuSvG0dKR8Cgy5lb78YldpGDYKv/+/S9h62wQy53YhNnefxbHhxNVNfhKChii5SsnOuRUwc6aRpo2TsHK44MVCCbYQvPk3aKup5KbeZ7bh8Hzt8Qk6AE8lACUJMPW1bCrk5/4kVtsNx8xanBhk4llROz7HZ9oTq9XucCQ==; 25:vBxjHcWSRepW86V9yexUd3zqdzmdaxUNHztQEWaTmimRnVMj5M1YqmttbZkMnlUmmv8y1Y4Sb6fR3NwI7NtwcN+8QG0cq1ilB6gSDxVeLd4bYoFRe62GW/DQvbxKpe0hVGPNpD/mnigki5VY964VA8Og8adGE9UEm8xTNAuO9e47E9pWADlv1fZUFfe1VYfCCMNeEM5QiFYHGV4InlelKuSgjtVSCBK5vmHOglrtq/Sbf4Sr3vz6cq4vEqygpsHHLLPgwN/EN/RqxUvqoPTIhRitV5KhTmUAJ6u77IkmNIGOtTlc2Uq/L7nxZg26hb0nFF5Qsk8Sa5N1v9X0za5y7wUdQeLuigZCrwDCXWf2rQhLdWALp0XB7JgvCxv+lURKvMCNoC8TDYX6lB39X1aNgEhnBlZnJGCbZ/AV7XWdq+3YclcXGloj9Vwr3KLWPFXj/i2qjHAQ5C0GtDTt+iafFw== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 31:K0zV5BwYfzZY37e72z9S9RuTwLcTwGndvtZv8yHS9DNG4sSI8AxPnTLXsKuy/Fa95HibHAW0ogk3a5nZuJcJpEtljiCKRL8iTvh9yBOXocU899oOxVdAmQ9kl4NILb7ql+E9UsDoKapVWNBvSWv5eTb9TeK7ob776erRZyR5eqoGNy9ujXan2iD3ca1qT18aHIwhLtZEYeA1dptvwNaIyg4iDSbdlOtHv9hIc+dqGXU=; 20:2NJjxxAhs6/9AHNN5XOeGcvaCdcSemrFpJlNutaKStAQd0nQ8T9iSDngTagUUfSPryFF+JJ//4f7tl9RHOS0/ggyIvnqcNOjZP8dGLAKy+RvvV8bKB0r2hkSau6g6vJ6toHSDBUzgZ05HvEn/YlDZaDZr8luusIqSia8eGiHpLkzBLODLGNTl/u1AZNEginw8snbF9WfLYg/bM8VyyxXUgrOt3hA1qJaAcMHe7k7ROwkKjw2k8dicetluz6mWEjkbojNCtr3fb6wX7nsywUZltOiPzBNbtn1uRh33pqJYTZ0EmA1+HW9ubcJSW2CW0iuD4pRxAnl/R57wzFLApGxwNa2/HnwbB11iWRr9QMdyjYcsVPjV732PLJQrD5c02sZrKMMgLf/YQwYZRrGBtpbqOgTG02DkScXuF8nNM/VivVTxAjv8BCStB/TSxQxleb2SojGKewRhIK6suYLGS7I4UDuwzptyzbbRQazjLz0ZeArMOeE72LC5zHexdHuL2b+NTDpFpx6DS3ok+zEcAoBhLeUaLIFq/e0Zi4p8L/hveFLcWhomMnZki9BXx2AQ0RP4ebN7iOUV8RGFiJE4obo6RLcNqptZ4Z+OQQQWlF3dyo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:DM2PR0701MB812; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB812; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 4:qmJ78C5Vvu44yMABkpDp8zDwtApq8Uu21f45yWlcJX9yUgWsow+qj8eZfNNR25F4jui9rr51SL5z5l2+48f1XOcNf7VZeMazhLyX3vrUrmbSnL3HHOkmG+K1k3sN0g2gLOUyXpaFnjL7JvMqi72RE61YeKriGK6ZWwi562djypkRcv+dZDepDz6e1G1vXpEcWM2IpoKlYzRu2M43F3QyyLS6OivTyq2aY0aY8ObB3Kwe9WX1DT5oM648fDUKEJwr1tTYFGyS69FXFyFV79MkWppdJWgn5gl3UW8k3le8tHAD7jA3kDzr9cSgeKj73z60Sc0V4VqU4CJaMtwDA7IVXth3EDpyzxnlgebVmRJDTxVNsZXhzuG8cdMO8CV8f+K2fpLfEAIFvBrxK7SwmlPIfxJQzHNQs4p09G6oBCn9fLpSpWbNYB+FB5QY+oEnTjQo8qNdgJcE4TZfjf92Ceny/Id44QzdnD6cvEClx7n+mHOdn4Oy/18NZ/mLJGjtNha7M8sLZHq5GTNniSOjNw0S3vjE9cqMvGb5DhBymKDpzsUO6wNaA1Xln2kO15MV30BQt3083Ukgk+UnSpasF/hgNthsmttmsxoVpPwGO2yET29vnzgqd5fMIpVdgSEZ4nWkLDCBoTWs1rVPSrAbhn4wyM9JddvEI4HPgPMPQ70NoIw2lGI2s9yuB7AAzMEqx5Qo X-Forefront-PRVS: 027367F73D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39410400002)(39450400003)(39400400002)(8676002)(81166006)(2950100002)(305945005)(6512007)(7736002)(42882006)(6916009)(50226002)(48376002)(47776003)(6506006)(2906002)(53936002)(66066001)(6666003)(189998001)(6116002)(110136004)(33646002)(36756003)(38730400002)(107886003)(2361001)(5003940100001)(4326008)(3846002)(2351001)(5660300001)(6486002)(50466002)(50986999)(76176999)(42186005)(25786009)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB812; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =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Sx+YXr20spglC0V/9NOKVASA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 7:rPn8BiQgZioctYEx3K29YbOwvJu2xcEdUMB5OSBUVIddQmDd/w0g71wZeMmFrvwGE4u7TfrvMBfxE0ICxZ1XoIzyWf5lFs3FgObNSAE0Xc0wx7gDSj2RYn++d7fCKLlknohgtoTnouX4tqoov2uZEp6J0yg6UtM4VTWhAFLbrFYmeYA2RLxepyGGJ5Aiu6nOykxL2R9kZ0kTeXFreXpx+HawFvWvQY/PTGimDyp8+/0JAgVlMiug7Gp+C1Wv+Hp7rCOjnPtLXcUc+1OGk3zcYyS+WcDDxshSbYIrReeVO4H8zwak5XKduPv4N09kjoeSLzzXmyxMHlZesYwDotv1iw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 17:09:33.7216 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB812 Subject: [dts] [PATCH v2 00/28] 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: Mon, 10 Apr 2017 17:09:37 -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 Angela Czubak (28): 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 framework: getting DPDK binding script moved to a method in dut 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 | 18 ++- 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, 383 insertions(+), 159 deletions(-) create mode 100644 framework/test_capabilities.py -- 2.7.4