From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) by dpdk.org (Postfix) with ESMTP id CFBE55905 for ; Wed, 19 Apr 2017 14:22:45 +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=AP9Br+m6B9pHiMJmYXKlDJ/OsBCTE03dK/SN1bdRpZQr7we42dtRp9m8HpPYvkFyY+Bw2RnKK/r1VXRy3nsAaZFgI77Rf9zgnHhTO7xcy9v8Ssaff4uRDW0SxHGa03DUQ2lnp6wnvnLCYnCeceP9NQ7sNK5F2kqQNwl2W2McLa8= 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:43 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Wed, 19 Apr 2017 14:21:57 +0200 Message-Id: <1492604540-12114-5-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: 670a458f-fa8f-4262-21a5-08d4871ec861 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 3:XcqMSBvzFElrn5IZjjQlJZ3+HwLMIkfoO9XngvP6DqWhP0MRCiQICsq+S+fypsUyEG/bWLlw+a6kBUshOkhxyBvts6ti0nYAKYxDICn+aKOfCBIV75mlxgBsPkuGTSTJdECvwuYU+l5fJitaUrGz9z4QKifM2EXrVWnSagBk6CPkUTh0lVrnj2TSwkOhVphfBeat6A7gHwa2TsTFgmVMC3Kl5dVozLZYZnMcvzGpzbhFm3V0KvDDAx7g6EcGXF92P0MsIF9h4Iyz/Dk9rAHc9xzjRZ9xLtG0dZL5WigbXaM6jW0UoPoFjOA1JkzjsRsdNGx5jvGXgOSszX6qSbxi8w==; 25:0PNrWJRFZO8cwD1RrFgX9HidUmMMGO823WlfAKePovudF6OGkq3bK8vEQ4QQcVYhqtogTHafW7kKj1J0OTKQ+Uey1Z1yCF6VaPJc2/0Z29q80XUgJFfAOG4mWA8sq8+deZY4vIfpEQ7OYtLbSxNBzedGv1uZglS3TeY7j00hbKTSNlYmuMSnb/HHwoVT9zvFsTkgFDBPrbF4eIZ/rWnDnCHRl9U8E8L00yWnOp0GA8AK0qaZNyY59F6FZ2+UeMnXSwjzJ35aszgO70uS5iqMYOU5l55GiL+DFat4pVHqWApg8sHUp38jPuTkD9eF3RfZaJuLE73K3XR69v7oJMtjRQDbbu1ruguE3W4SuERba8STPkwMqoX04ODUwcnx0qiqOptkL7Usmb3mjhBpaRenUdeA8hHZaHAGYx9Y0AILGSpZOIKhtW2ebgjRfwGJRduQm3CnpslFn1x1qPZVREp35w== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 31:nc9CrLXovyfKhoJ/rgmCqdnuziTbuZZyLl7WobG4u6Rdl1jCJhfDL79jNCvw/sKTLpIukAa+mw/2t7g4e3mfWlfnMs27QJoS0QIhJU2QLsgWD+jtpI8PH7Ab/HonGFOrzGSpo2CDRs8Pzf15QrjDAx7ybRRtipkhVIgK4JisUhHkFN0jRRVtfuqfesbBpZqD5VXfIcoPx8a6+6gA+h1zZMr50Ji5SIY3OyLrcQ8TWss=; 20:20KXxxHwnK+QMJr7ycwu6paws4K1xd74PQID/EItj0S6IHG3YEiEeH1JrzxlVL3bgfFjtxnMUwSUYMLKyLpUnW7Yn5im6xNwbeUUVbSExGQnX94rsDzN41Ye9YH+DpqMmCpk9Qv0LulJGUhKtA4a8iKVsybttUlpFaFYzXjgj9lmsZHIIvtymkWK8O8pWgf11Xdbdnbov3OGNrS5uX+5gxA0DRwnzBtjTYI9FcuLO5LwL/Z590GtgaYxad3tlBlffhzXN2B7XfoFqn/Bnm3HeSRRKU7raxg710duw/qRWpg4gmsj7cg+86tCxUDvNV1C3H5mJtm8cMXx+HRQAZgsauyCp8bSM472J3GFsGitKeQvZRaoE8tMt6wC9eHrsJEQPkmhZuwHijyL6/MY3+6DW7ZO8weOY0IGmtWJDEuQlGSj0dTIGClmQ0HN85dlyBXHTCCg3LuRR8r4sqAUBz/q1nEtBFcihXLdmnw/QMhVz5L+7rMognzmc62SmnfznfQ/epBFk6/7b6rxdcZIhgLLJm5OyNgqjNJtvdFdOhKRmipcFUXeTn4G76NNoj8aiTnp1txBWl2vtRnDrWbQz1B//jMTiXZug/ZeH3S9kFYrzGA= 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:hZOBoLI83vxGSmRVQiLLAfIp8kJn4Xf24qifSiA5wwtXKuZ3SwLz8CkriZSOaoI1woAU9inU3FlpnigUWRUDxtNMirn9qCBGP1pYfUQLPaEm+yijn7qKZRo6/z5+Q1cRFADeEDbqi9bkPw7qnFN/0DO9P0FFcG40AZnzc4K4I3UASXH4eHk97cQz07HlYzctIsgehX/AeJ2RRWV4sHGi8mersDxeOb5QtctMpH13vctiPriU2Zfuwk2bREjT3tAe4UoIkZx7iFPBRx0R5rVLLNqeGTZc5MQPeTPVQ4KfozU9QD+MkxdvGfNwCn/WKRkvaudnlXJdCCbfeMe/n5gIxTMX2/528yvNrAdNfs8k3qIAz67WlQThbg6Yw+hctaEwrnEQUP8BZu5TCm7Ss/Ham9QYk6Z7x1wQJINqpJyoQC6NfakDjnOzWNc3z3leBIEISj5TsKPexQ5O9k/MpSfyvgTNGy0m3p9nUO1ZkoBV9HOioarWq6Len5bUjZE1kvCDZKzIjySlUHTRLdlTHXEz9Aey7mMz1Lr7m9Wh7yHjseYKBUeQTBir7MFnfE+f4BXcK+XUtmeFoWRW8kqoYwQ22LOeMIXkhB+/6QNSfYVLPshEcTj9n7Ii6LivSnHOesa9mtg4u236jiQOsdpKofOjMBQkpjDkQbAtbdQ3fRDEVqwXntn/YPAAwevrIyCeNpjt 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)(575784001)(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:joLqo4Te5xJtpmAcbkT9w97peUAjF5o6Z60fxiZA?= =?us-ascii?Q?fKTYC9vGVDOMXZVGRlESI0TbyK0Be4TuHhiOEhsdAk6dwmzV1SddtIMbS4Iu?= =?us-ascii?Q?WGLgrJZVh+Gx8Lp7ItOyiesanq7b2BeWtD6vbJ8NR6sv2s8xxWEdua9IdoUt?= =?us-ascii?Q?knU+fr3ne1wuWy76rkP1cFRlqxvaPL27XlyCTpu4X3/ZmFOKYk6wiaZgfsrk?= =?us-ascii?Q?+DwPqGdn+/At390zH18Ykw8DhtKD3eGF95HK8n9bvbdN5rdRabHNafCnuQll?= =?us-ascii?Q?RqLeNYiYoJ35FY9IXSpApNc4D0c5qKbn+B3MIHtsZHNJgQefG5xrGLHTco+q?= =?us-ascii?Q?eu8GAsa2AhzYkgALLwzg9B+Q7XIBtRHBioQTSiDETn/tbQxMLXff8SF7FmPE?= =?us-ascii?Q?sxifTJTvCNvyR80dmKK6VCNpid9/p55yVzx7SquVGCfl1sJEubyB7AHTSRN0?= =?us-ascii?Q?iuFaJMEZ6Ob2ZTMfguIeeKKKnHLzWdEIJedEC38fDbnw/4+toHq16c/9A49h?= =?us-ascii?Q?ia60mcGIPBb40VAWqTs6JeQXPmikj6rN2pD18I2jCEJJ+nSOCCFAr9JYX9R/?= =?us-ascii?Q?lvGVsAMPzWYHx4JP0p1dJkz/FXerBjBkoIJzmlRxFsFuuhuEWmfXXGrs3KB+?= =?us-ascii?Q?RvKcpLgDLDlHJqIznbvZAGW0F/N2oyn2osoRoTOKv7A6oOfcDslikOR2r8lQ?= =?us-ascii?Q?/IbZsU9y4j0VIPrQKHosn+0l/7HEKjN1EFtiSvO6XUxblAaOMaK5AdB01Vcw?= =?us-ascii?Q?kHwfnuQl46ypEnqG4IuGFQLZ97H73fWHURHVwphqqRl5d+bS1K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STMSNhRAa7yfa5WE2Zht4Twcp7zWhNWQrmOp0n9ucz7MPUM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 7:1ccSeFhtIBJSCBB5h64GPtkEmUQAzEDIJM455D2SGq/7g2ewpF1Sszjyqk3CVxY2wTWZuN8wG+XUdAbHoFXbbYtGdryyqCuFXZynYflEPm1QxsltaKZ1bR8Go9qjEFAO2YDrI12tx1c4ke3FA0iNxAUAhUwShc5QbKkWw235K5ZcqpkrbCdyMhJLsCLyLVYVwIy1vryOwSTkaZCk742inZ1BixYQ17MWrxpqyuUY5qxZiDvTcyDNE/LdDE+jUncTCzQSDxn8Z8Y4175Lox4efqlsBxv9dC4lbq+lowXtxpOocGf/Bu0tqYdT81tP2fY1b4N4cQnP4myyWucG1XnuhA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 12:22:43.9364 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB805 Subject: [dts] [PATCH v3 04/27] 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: Wed, 19 Apr 2017 12:22:46 -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