From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0044.outbound.protection.outlook.com [104.47.40.44]) by dpdk.org (Postfix) with ESMTP id BEABE2BD1 for ; Mon, 10 Apr 2017 19:09:42 +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=6vkwv2MjlYHobHS82El+/r6ti2gw9HLnH8k70VgqjP8=; b=GGFXcgLCJA4rBGNxLzpIZ8F3MwpmLQwpSkXmitXScyAwGY3bQJgiMNK2CEZtwkhI9sYQ2doeeR04RFCisKsFlpplL57frmO9/ztTgjp79gbDJ3oP2pje+mFgpDlXV4/Oxtn8AHKt8c0sOVnJr0N7TClc2D/QcaLAVGyd3EvHJ9E= 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:37 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Mon, 10 Apr 2017 19:08:58 +0200 Message-Id: <1491844162-16300-5-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491844162-16300-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> <1491844162-16300-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: 23644b4b-0cbb-476a-13a5-08d480345ee6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM2PR0701MB812; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 3:pXuDuhJGNihMZYt7V/ohpOagQMFe31EMB+veve2n/NPO/jC0+xOcG2lcxbVUX45eeMi0V6PdHRNzwm4qPycpco25TeXUr1FzWm1dWInUshPljnIUUIEBrVNoQsBgMMjMXxnG/Qx4dA1yV6yMF1BEsmaNzWEFcieTL/YZMpNTdh/7//ij7Ht4VAD/iXfXenuko+bsnhs+Wck3p1z1WAc6FRYf3NnEsBqYNZ5BhrHu4vvTsRtzd6IuDdmf6m8bi8fsZxM2t2cZ69k6VUyWO+uEQdOs3rVkMJEP+dIXYwR4cLUgbg13ElAw/3hTGXb73a/ygcBbDxKhLca1KF8aYWfHdA==; 25:CBO7qrfAzpI/D28Mo6817x9eTy90nRURfgxfiFqqfih9sDymesnxMaCTvGeMf161BDcjCw7/WKpWcMmX3bNODsx1Mh4aqKMtJohtjzjNteImEELvRGKA/Z7yfqs0HS6NmZ3VWEKCTEnhdNgR0ypb4niBAEN4JN+vTiIpEOAIYbp92ZRKRrq26EqTGjqUZRiMM6CumN7WpguNQT7zya0vfgBS1kJRupmJ6DNxk0iQw1keAZdKBWhuw3DIWI0j/ZgVfgTIcROUnFKOAmE9N/0GsqjcLi8wJYjy/bWL/rZir70WUE66qco/1XYfDMHZOZ6XzfAgycP0F1aoHX9JL2IBavuiEEJBTAvkjBxYrpH92QuxEZrR7WPpVanrmhw3qrYJbCY1k3doUmRz2rPkD995PUdqFBx6/5Wk30LXsXqy+/GyEDSd2cGR0ZED3KwuGIApGeJiRXjDW2gf7mYRqEVFhA== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 31:D4zRlJodfbgLNPTqCURzi+BkVIH7WnuoHVJspid/hClcu9QjwBmd3XhfQqRa0rKo2RnEsI3j+AuPD9oBqvW9cEP6fjDJz7L0XNS5XgnAyUpceQ/CjcX4y+X6BaGA2mQyaCUvbFgMwsMoadqmhgAB7GSExMDwKF01IFHBndpfgHM/oJCcAVKDiJYVIyXDYtIiuuOyh/BPUw4HyYPLEG6MfPQhuA+Ykx4tO29zkfkgePw=; 20:eWv9ZXoAJrRy/2qBuuJFLO31tfJg0QyjoM5UXFtthFiO3m31cnoCvmqbf4iUugLLaM/RlR2U/E4pauJlwN3Rc90FXKPOs9yuTDvGA9BtEtDMFUbDlPyizyp4DARXpP9qfR/csUcQhT9qycw8cZkRsgs5tUheILiiR6E0RjPJT9lVi0HPWzNMAk/j6ylcFSdytVHpm5Aa0mFCY9asgN39Uf8Vi8yR2vFErOG0hTpDnq6ujI/p2GAA6Kfk+PioMFme4eCzyjcfKUaIT7YB0a0RYf+N7lMznLg4XfGcKRLqNIg5SHjMyhJEMMSbCRrHtj0OGS6qC3Y8WhvjawIPptRj61D3fAiPkroIloNqOI59xdvgkpomgYU8M8romcurhQN6xy/xm6ezBRFTKIq5F6r93YEI6WaYv9A2lwXGfqvIo7SBpz55CJvnuiYKRyd1gcgo8fFNLJgqEHU0NPN0SjDI4Rmoxpp5YrA6Y4492DsruIp+3hThKtcegfsUiek40ub+Gy3ulxas8g55laqd8A7xch69aVuc1YGjINnM+Q94L7a0v0Ihy6tk/VNKr/FcFW4tQN1atjMcNXbS2k21Vxgo2GlM8OANyhS/WELWUZiwXCk= 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:9DS32F6aDq+mNGjrIQTaNb7enYh/5ydcl9gedzBigFhI3WJQM64iqh2KsLNxa8AoudziTIlVrYUKy1Vt5g+t2d0GSXrMRc1Q8TmiM4EWUj6Atn6KZGzHCU0H7PFHzLoduD0eYXccMunptoUbsz+j88HNIuAOAmV9Q735h9e7/KkeevT6gSALhosddv4Qfzue7OcO0ptoHPnz/Mpyu1kKXLbKD5I0rq31fsztAsp4LtTTwm3hePHsqc/772skYXRQa6aWMU8qw9qp2TTDiu8EECx5uH0dCi+DdY8/NakTg/6BpduddUcCNMiS7XsNZQ77V/U21MHL+VH4iuw+KgmxIFShQhSu6YQQcDNPDCwJqWNwd65jQSs+Wgq0o+LhohEgw/AFPXSXHpZKvlSGk890yTm8MoHRwrhRCazrst5tYnkaGNgPWQaNYYuWKa3wITSQi2FdE1wPwnhPmoimpoYJUCwJjEdDw955XaRXJ+85H0ZFaOe7t7WZYsztpYBXqB+REBCs/KYcI89UqN9Jk4p90pwwPPIF2PPL84u0ZbBWFVM1KBZ5ipb5zNxm/meMQq3KC5yJU5YKNy4T5W6n9Pg+RV4dJUePgw6r7cc6E/k8/FP8T890hA6/fH0FtHqdFcFD5bscPqaQfflWKOtE4CvDrSs7qUOpfHYZo+KTzb+hAyxF8lbGVLVOChKvLSB+7yXu 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)(575784001)(4326008)(3846002)(2351001)(5660300001)(6486002)(50466002)(50986999)(76176999)(42186005)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB812; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv; L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n0LC2woPbxEWorDg0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 7:NR8jQkFCmAsWY7+DlIraKVW9KidgydyFEYa6qKM8xLEi/zXdD6xJ+KoobrlvCpWF8ttkwgtNlg269CVnBkwGdbBSlqcvqk1ELi+kW/+BNgPpHL0VylBzFA0h8E0K3r+XwiYHJ+6t7fRPiDZq26bgHmBdRNlxy4w360grISxUIrf2tdI5qjVv0DOQP/ztwwk+QHjuFHNe+M/yHRPLNEWWbdrxM2ScrI5O5RUqGnT1DJk77a5D/VBD63VdgEMCgm9HWVfyQFcw44OxbZL0hp2TUAjIp0O6pTlmOeVDvknElEBkvWTI7W9BGgkkA2ms3b2QXDNI3B7At/O8/l+fig14xA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 17:09:37.8936 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB812 Subject: [dts] [PATCH v2 04/28] framework crb: Appending only 10G devices for cavium 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:43 -0000 When collecting pci devices info in pci_devices_information_uncached_linux devices are checked if they are from cavium and if so linkspeed is detected to append only 10Gb interfaces Signed-off-by: Angela Czubak --- framework/crb.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/framework/crb.py b/framework/crb.py index 9b41a0f..63c8093 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -268,7 +268,14 @@ class Crb(object): match = pattern.findall(out) self.pci_devices_info = [] for i in range(len(match)): - self.pci_devices_info.append((match[i][0], match[i][1])) + #check if device is cavium and check its linkspeed, append only if it is 10G + if "177d:" in match[i][1]: + linkspeed = "10000" + nic_linkspeed = self.send_command("cat /sys/bus/pci/devices/%s/net/*/speed" % match[i][0]) + if nic_linkspeed == linkspeed: + self.pci_devices_info.append((match[i][0], match[i][1])) + else: + self.pci_devices_info.append((match[i][0], match[i][1])) def pci_devices_information_uncached_freebsd(self): """ -- 2.7.4