From patchwork Mon Feb 6 12:37:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 93421 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1687077qgi; Mon, 6 Feb 2017 04:40:10 -0800 (PST) X-Received: by 10.107.150.10 with SMTP id y10mr6310558iod.221.1486384810077; Mon, 06 Feb 2017 04:40:10 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x69si4484129ite.19.2017.02.06.04.40.09; Mon, 06 Feb 2017 04:40:10 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0F25362F66; Mon, 6 Feb 2017 12:40:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A07B762DBC; Mon, 6 Feb 2017 12:39:03 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1845462EA2; Mon, 6 Feb 2017 12:38:32 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0102.outbound.protection.outlook.com [104.47.2.102]) by lists.linaro.org (Postfix) with ESMTPS id 35ACD608D9 for ; Mon, 6 Feb 2017 12:38:26 +0000 (UTC) Received: from VI1PR07CA0059.eurprd07.prod.outlook.com (10.164.94.155) by HE1PR07MB1625.eurprd07.prod.outlook.com (10.166.124.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5; Mon, 6 Feb 2017 12:38:24 +0000 Received: from AM1FFO11FD035.protection.gbl (2a01:111:f400:7e00::114) by VI1PR07CA0059.outlook.office365.com (2a01:111:e400:5967::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5 via Frontend Transport; Mon, 6 Feb 2017 12:38:24 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.36 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.36) by AM1FFO11FD035.mail.protection.outlook.com (10.174.64.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.7 via Frontend Transport; Mon, 6 Feb 2017 12:38:24 +0000 Received: from fihe3nok1346.nsn-intra.net (10.158.36.134) by fihe3nok1347.nsn-intra.net (10.158.36.135) with Microsoft SMTP Server (TLS) id 15.1.466.34; Mon, 6 Feb 2017 14:38:21 +0200 Received: from mailrelay.int.nokia.com (10.130.128.30) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Mon, 6 Feb 2017 14:38:21 +0200 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v16Cc4pN019886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 6 Feb 2017 14:38:04 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v16Cc4VC019846 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Mon, 6 Feb 2017 14:38:04 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Mon, 6 Feb 2017 14:37:58 +0200 Message-ID: <1486384684-14761-5-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1486384684-14761-1-git-send-email-petri.savolainen@linaro.org> References: <1486384684-14761-1-git-send-email-petri.savolainen@linaro.org> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.36; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39860400002)(39450400003)(39840400002)(39850400002)(39410400002)(2980300002)(199003)(189002)(48376002)(77096006)(36756003)(8676002)(50226002)(2906002)(107886002)(33646002)(97736004)(38730400001)(53936002)(50466002)(92566002)(86362001)(81166006)(50986999)(5003940100001)(81156014)(356003)(189998001)(626004)(305945005)(47776003)(68736007)(22756006)(110136003)(6666003)(5660300001)(2950100002)(6916009)(8936002)(2351001)(106466001)(105596002)(450100001)(76176999); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR07MB1625; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD035; 1:VAhiHYPBgrVcYUwLJK+xWxGj/V7Vu+Se5A3Ra/VTPl5wZs3mlM+WjlzQi4/jDLZJ4t6OLD6zgHijH0cEYpQmGHpWe6mweNnPo7ef9rAe2wL95W63+7IWYr6DGg5zSuqCq6AJOJNLHkrzdhiEIzCsTOjziazc+QKHgXZqa9j59c17rxbrqBUFUJ5zTubr/MtJK2jhviaSyywD4FpDGm83jh+BSE20Jlowxyb3wK0tFTTvGoduDcY9NL7QKDtrm4PtvmevHER58u0EtSnCBPrEbAGlw3Pyc+oBESCSLoF8txzKEw5Ru1VqIHMw3/E9jBEz8/oClvjKuvYULSwqAbXAf9aV24IgAWRIYmtoa7rP1NCLqO1sS3E6h+0Soll7ERSbPX4Gxybm00eHGqduWO0aOte3B3TTb1/oRqhza4XMYhU2cpvhUnwagH3Xr55YW3oPTI997Wun6pkC8iXrvODrRbOa/LeAgAjjyJqo2leIZas= X-MS-Office365-Filtering-Correlation-Id: 65e84972-d5f7-4b1b-8c42-08d44e8d0aa1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:HE1PR07MB1625; X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1625; 3:IaDoGCwENF04ELcnTtaaDhHWRkLGcfXAxDIM/bZrkgAsAMXXYvtvMHX+JcM8YM/ckMnvruAmDtPo6e5jKqbPqV/CpEL3I5Aml6fU6fgE3jWlRL9TLNfyiTuJtnYE49mp11MXc3bxVRE5NJ0QUvIT26Lpn8m1MZle5EHzABXi6L+Z9wyxNELRCcwFdEZs/I8pBUCil7pO6YRLnPmsyTPwYLu34vm741WeWJ6gPr8POHmt5iiEn+LFUe6BqcbMiUH55iUQIQAqu5VEMbd9DDqKnJ7OrcxQTkFwHqgq5GfIoafbrtS0KrwBPlvsZP6UK2NgawtN3QFZ9W3WYfRAn6spfCFg+LPlkJVcaTzOCwCVw8wFk7wLnAw/8OwP/SI7NMOH; 25:el/WNrZJcdOM+fFPqTf7Mv4bVZstuUPQbZxwRBrQYOt7azT8iiqtLKWCfMGtmE8s/Cs+u/47RLeS99UK+woYD3JMAOWPW/0DpNK79vybHNdQOfsV3Yiy6V5M8duHJEtF+NFdrLQEY+enKkzeRFGc4zi8u4gXV12FPqFCmdvCv4NE6LQjWhQsqyldOz3LY4TF37rKd+ArNLJcdF2pTRpqTISeG8KO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6IaFv0gQt6RtQCqD11Er/c4nbEafu+vPDpEEL8eeONFrpclatAZoHankD8SCluq/iluwxxazGTXeOD+81e7kVBqMnLIcigMn0h4RQS9EsQI5aESwO9GrDg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(20170203043)(13016025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123558025)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(6072148); SRVR:HE1PR07MB1625; BCL:0; PCL:0; RULEID:; SRVR:HE1PR07MB1625; X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1625; 4:xV4+3b9FsrMYc1BhsGHXafjIwvgMQvOI8tekDRC6dgf1lSXmErWV/1ZUvl5F281LyBsgQki2jkDtaVhLztispMbooVjrxPFO05/oUj1fkiVqxK0jI54fODSLxD2vHFFS+wbVqrukQws0EvpSHtAJ0mUHZbn6uuNnmFNUExGsHRUxHbUmu8jQv1DT0wWaBuayrYlfuFQ4ptPAU8Zuj0g7AZa5Bxh2bhACUd1Zz2xfSYEjUMRvD1ZrcdMeV0j7AkAtvHsf9k81Ns9Lf+mY6EfVrZZ2+WP8RHzevHUCUARQI0SND/fN2ZOOVOrZqRV909luSaQmVWxpjj/nWK75zHcfrKpeV3Sqo79RzgxYHdqbHLJqL7fBk4ozmBHdyaTVCgC2df+twP4fi7BGVTXj0oacL9H9WB9/+XnZjlDJimZ8Luj3L++kqmAWAvNcKBXsdZBDgUFGDnChxAJeYqJoChU4lc1X4zYDHw8oPfNY7Ha0uxxhM4Lw54qPMVL85+VYxo2XJCdmnX80dwhBwLfzdNaVWzUOG2j8UMaFx+JCKUmnUME4DcCMa582vSKwyY1kYp21TEB3RpfjToMmfjUVnBwBdbBwVgMz+UpPcTDDsmPdI/0pBo+sFpA7XTb4/Zog2Vsoe49PnOJdsAdT/vR2viMlctRujXQo08pw4NjoLMq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sTWU2wV3lAkskpWvWZMwa6h/MzXrWJgDi2LyTBotujCeVoLN6NUQJEV9rZdQXpD2argCxxOWxv748S7PDa9UK4M7yseZKTlvDcE8a3l49bEv7kptrPFtZzdsf9g5LLtdWcwd0feewGbCN6fbgNeH1V8JvWW2PC7yuOqQyFW X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1625; 6:QTMEMUfln0His1OTLNeTumejHDPDuGwkVwNo0e9lPapEBRxUKFHcn2dCydWwjcpqy4HDw3wfhI3g1qLVLwtQhnnL8LKi92FN1JmVZVoMAZ9kN7IrSy5vqIDbqMUNN+d+bcfa6uL4tfCPiNkOcmuLRi4kKg/0VQxNhcnzdEcfh7y3yotm+UDvu3TI/VWZrQSGG8C2O3cODqOrlAWH7mH7do21cIDG6KZpzgcMJncBym868OVmzlRyyEAsmRTbHNW5JR+qMrut2XxAKiIr68evrU/6FVKF4UPHUIsnbYzqg/AlOVARxsdj3+I7LqfQT9Z45PEtUei8kR42/J3cqFsM4iJ8M3oqaaoYfjrVJsYsxIr9ti0gDtYde7f+4NgbH+uKy7vASIi++K0bJDvh9a6vHwhhLGYnGd5xVX16iLMHwNg=; 5:tpy0G/upaxc83n5JN2MWR11Rf8HqKf/b4PfNuqz5w9AAatvQ9UUktz0yGnvqJseJqxJj/wRG3iSo5dMIYRjhSN98zjtBQ+cD6+XLLAHLJFeiQ3S/fu5YRL2D0ed1Fo7WI45SgNjG+7sT1RWHAo76mg==; 24:g3wumkUGNYmCtPCFBymAupBgbRQpYjM9eHfa0kpCfKUS545svORevUSJudsKinjZYfCgS5MD6GD+0bpjy4SW+1uaFzbL5grK+T+p0LLR/AM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1625; 7:bjJD6uWf5sUSxTbwzEyyEAmmc3rKWinzEgeYcvLBWYgE3XiRuNQ0zqVl+LBjr0K/8nppXRNf5t9EVBJ4K5eqYqzJ8olxSpbUjyPtD5IdUNe60VG+cQnUqLU9UBIEake0agG6ViY0G76Po4rfogtBSKGIMnwIh6QSYoRTD8OcKaZGDL6fIKdzyRfkaexBhCTQV724UDXTIZaJIvBaG3sOLxcdtXcvwAQUca71fkMeGxEnw9wQBEXaQQ0bcBNLUPO1ZKHM4pMlrdLkO/0iYy6UFyRpKuihro1qJhUruu3SF64guoRmTCvlubP+scou1XgLaAyf38VOiG43vHK96jM7UrCKkwtplwpnXaReLbNvScke9581f4gpFWQY6DW3hVpd1tsoYMQrX1zs8/0apAufIgj5XYMULmeObO1IGL/aMvjuIIIZFevV2liYDkwzmmOwUIn4m90QM5bsxkO1B1jt6h/X7A8Z/9n2U4dF62htwldaVls8UVr+123HPX1SUikx6/roNkvDQ9/OrJuN+WgJ8A== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2017 12:38:24.1173 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.36]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1625 Subject: [lng-odp] [PATCH 04/10] test: l2fwd: add pktio driver print out X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Print out pktio driver name in start up. Driver name (e.g. dpdk or netmap) helps in checking that correct pktio device started. Signed-off-by: Petri Savolainen --- test/common_plat/performance/odp_l2fwd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.8.1 diff --git a/test/common_plat/performance/odp_l2fwd.c b/test/common_plat/performance/odp_l2fwd.c index 54dc4cf..9864c64 100644 --- a/test/common_plat/performance/odp_l2fwd.c +++ b/test/common_plat/performance/odp_l2fwd.c @@ -603,6 +603,7 @@ static int create_pktio(const char *dev, int idx, int num_rx, int num_tx, odp_pktio_op_mode_t mode_rx; odp_pktio_op_mode_t mode_tx; pktin_mode_t in_mode = gbl_args->appl.in_mode; + odp_pktio_info_t info; odp_pktio_param_init(&pktio_param); @@ -620,8 +621,13 @@ static int create_pktio(const char *dev, int idx, int num_rx, int num_tx, return -1; } - printf("created pktio %" PRIu64 " (%s)\n", - odp_pktio_to_u64(pktio), dev); + if (odp_pktio_info(pktio, &info)) { + LOG_ERR("Error: pktio info failed %s\n", dev); + return -1; + } + + printf("created pktio %" PRIu64 ", dev: %s, drv: %s\n", + odp_pktio_to_u64(pktio), dev, info.drv_name); if (odp_pktio_capability(pktio, &capa)) { LOG_ERR("Error: capability query failed %s\n", dev);