Message ID | 1486556381-22233-2-git-send-email-petri.savolainen@linaro.org |
---|---|
State | Accepted |
Commit | 969d1c74ef21b77df01b120297d4156b87183894 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2704046obz; Wed, 8 Feb 2017 04:28:43 -0800 (PST) X-Received: by 10.55.133.130 with SMTP id h124mr21436798qkd.91.1486556923140; Wed, 08 Feb 2017 04:28:43 -0800 (PST) Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g20si5471729qke.187.2017.02.08.04.28.42; Wed, 08 Feb 2017 04:28:43 -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 C3BD9634D1; Wed, 8 Feb 2017 12:28:42 +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_H2,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 4019C634C2; Wed, 8 Feb 2017 12:23:38 +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 34DF7634C2; Wed, 8 Feb 2017 12:23:32 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0120.outbound.protection.outlook.com [104.47.2.120]) by lists.linaro.org (Postfix) with ESMTPS id B8551634D8 for <lng-odp@lists.linaro.org>; Wed, 8 Feb 2017 12:19:50 +0000 (UTC) Received: from VI1PR07CA0109.eurprd07.prod.outlook.com (10.165.229.163) by AMSPR07MB280.eurprd07.prod.outlook.com (10.242.227.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5; Wed, 8 Feb 2017 12:19:49 +0000 Received: from AM1FFO11FD018.protection.gbl (2a01:111:f400:7e00::111) by VI1PR07CA0109.outlook.office365.com (2a01:111:e400:7a52::35) 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; Wed, 8 Feb 2017 12:19:49 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.37 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.37) by AM1FFO11FD018.mail.protection.outlook.com (10.174.64.207) 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; Wed, 8 Feb 2017 12:19:48 +0000 Received: from fihe3nok1348.nsn-intra.net (10.158.36.136) by fihe3nok1348.nsn-intra.net (10.158.36.136) with Microsoft SMTP Server (TLS) id 15.1.466.34; Wed, 8 Feb 2017 14:19:47 +0200 Received: from mailrelay.int.nokia.com (10.130.128.21) by fihe3nok1348.nsn-intra.net (10.158.36.136) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Wed, 8 Feb 2017 14:19:47 +0200 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v18CJf0W027373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <lng-odp@lists.linaro.org>; Wed, 8 Feb 2017 14:19:41 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v18CJf6H027358 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for <lng-odp@lists.linaro.org>; Wed, 8 Feb 2017 14:19:41 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen <petri.savolainen@linaro.org> To: <lng-odp@lists.linaro.org> Date: Wed, 8 Feb 2017 14:19:37 +0200 Message-ID: <1486556381-22233-2-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1486556381-22233-1-git-send-email-petri.savolainen@linaro.org> References: <1486556381-22233-1-git-send-email-petri.savolainen@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.37; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39450400003)(39840400002)(39410400002)(39860400002)(39850400002)(2980300002)(199003)(189002)(2906002)(92566002)(97736004)(626004)(8936002)(5660300001)(86362001)(50226002)(50986999)(2351001)(36756003)(81166006)(47776003)(450100001)(53936002)(106466001)(8676002)(356003)(81156014)(5003940100001)(105596002)(2950100002)(33646002)(68736007)(48376002)(6666003)(189998001)(305945005)(6916009)(110136004)(50466002)(22756006)(76176999)(77096006)(38730400002); DIR:OUT; SFP:1102; SCL:1; SRVR:AMSPR07MB280; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD018; 1:Our8B0vaBAESGkP2u4AGJWusi+0dFyUjWBhC/IkGJwuY/T6lW8wJR1Py01cSqSI/d4Wb287Ccnok/4/kN0zmIzVA+E4aqi4v+7AkGMbazDUxUX6X+02LZWXwRnaDvvYF8Ma7FxuZWUvlJ85OUoUn9IV3Wd6eK6de2b/Lzcd0fK/rNaq1VJF0hbhlbRA72jSEZnDJlphPcZsKHHptbJVuVjCqQq5unHGRwperVKNlf7mBF3VxpzjKjoLb9oSbcWaWPMvcfhulnOwzqVAIbKAYcs6vfcmdZwUu0Y/BB2L0SnKld6qVfm9LUaAb36KQ0FKl4sjOi3U7GotBYHbKj0zXF9s1OOsGvrbxh+XrBvYu4TGNLYu2k1c/sfu6IRMBuJWCoG7GNXZUAsCyalnBcBjxSsMd6rXKXb2DJXNpsbRbpw7WTkyMOWtxR5qYacHidkzWOci4zB+2uySzADUJV1hoIoZQD+E4jXtHngXqokKFdcYhkXMxwyI9ZG07rekxbyxxX/NDEwdg9SZYXPZ0a/no8g== X-MS-Office365-Filtering-Correlation-Id: e74fc91e-98d6-4f75-c073-08d4501cc69c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AMSPR07MB280; X-Microsoft-Exchange-Diagnostics: 1; AMSPR07MB280; 3:7sxOh63ad7ZO+uuyJOgEuM3MqQoh3vdvh0dpwysRjDT280YxxA7Rrh2ZFXDmEs2P3mSak3zgiVS8MtzsJrh2d3qgidk/yXJz7TPF6klEixpGd0gc316p9KJ/raBaWe00+MMWGVVl5WpOVO0guboJNvydMN6J0PewZUgS0Ixrt8+tdZm7Iq5qvXU6kIxALHzr6vgo2mBY1G9RTX+o5/zydMBmI32Gzml7DIsLd06t9rH+YdycoQrL0yVxoCyYoljPY/ER55yreCpwmbpsENwyBgRSUo426pFtnjj3npAF7QNkh134MK01/c2iXYBAFe/rFkJPwfTtSeIFpnOwh9He8PNGRHsIh/WCMQTEKA1wvF+PtR13zIko+0VLvqj44Z5U; 25:jm/Qgaxkecc8QmM9acHMM4yw2VpSTuvCZs0gPaOZy0oCIfRoyGUCpdlEjxamWAX5iSgjo8AUR9nNeNHQrcIRjALk4uwxuxq37sLn+lB1ggiRuFSUto8UtQeZNdwPg1vZ4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8WIdS6zIU85qR2Y5VNydLEDAPrj+gOGEuRhVq1NeX/DU0MGIV9RK86lT5kMYz9y0fRB46zefopCkx/5viFQ8G3En2yj0e2Pm/gt+HWtQFggRVyk7JH/lUhwI1vPnwZpK0w1WJtVT/oY8GeeRIw/92OFFsSxp7HVNWgB9bKeB8bKC+kGHAO/z6cYYEI7rUqgK/ysG/2OaELCk94HLAixg0SRFDdSLH8wDBH7IUEsXk8= X-Microsoft-Antispam-PRVS: <AMSPR07MB280840C585E12EAC3B68848E7420@AMSPR07MB280.eurprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(13016025)(13018025)(5005006)(20170203043)(2017020702029)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(20161123558025)(6072148); SRVR:AMSPR07MB280; BCL:0; PCL:0; RULEID:; SRVR:AMSPR07MB280; X-Microsoft-Exchange-Diagnostics: 1; AMSPR07MB280; 4:DVD2OKk1ULd0mlAF13dp0dRtA1c3l/0ic315x6LpEmjkF8OiDZD1fgH2bqXrwd2HA42OqugYWb2H+jFow7+AbgUr5v4zIaVqllA8+WaQpEdppwkLj8rhf/Hx/n6be0rpIG5bwkM9g5wSrq5BTwcbSlN8E/L/Uv8cJXdjI2YuMnHungVK61xkktruFtvG77WOcrcQUpvVJ6ckXL1kOPlJmxEV0Z7pdpvcIh4Ch9pyY4kotQOTGiMpM5sCD3sCGu2Tqr1MP9j/z1EuiszFgiUpeNJJ71M4sKUVQEzqAatEvp+stwqO4LvH1HqEaNnqg6QEh+tG93oeuCqv7txuoVLmH0TRlvvOD3r1+9+293wklD3g1I1bal5ZLJ1peK0mPmWEhIUy+OROzqdIM4Q7lPrroK6KZkaSWGIT2Q+xgwFUWd5Qh6FQ1wgQB744hOQ1HQLqYIgFGPlRX7rdsygZaOJHqHfucfitiyyAz2JJeZjVmDCjtV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ustoNvQtlECPd5lyIBrlXF9PR8QF/a/KDV6Sy16krHarxcB4PhZbxvHrBo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AMSPR07MB280; 7:Zl0xdfRFs0spMOD4ft+5u6uUHtxblsRGrksyEgbeEBfubXO9OyTkVzUtZTaTw6nfHu92n9XtrTgk2LF4tExhu1a+Il3j0INCRizrDiQvTtFN4FAKuRG68xcuaU9fZIuUK7f3x7w9hYeoomI6SnEtOy5AmKvJ0yj/tmvZhLBwZiHxU8O9V54gUQ6NKl9OFkOJnwcgCY4dOXPKWWPXVdRpL3RoeNO/6cPJNEdVT5UuHeXzTKfWA9gHDW0D3utdGTO8dTi8N2na/iFJBgUGXCc7e9Yi21qP6lh05GlrhBL8oPX4+m9nvp537g/d5mJFlmPHWjZ/GyRWtyGcVoQOumUzg0hKVx0KYCTBig6giTD1oDZzB37aTnh2zA2MFOIdyjiqufUvkTrTjSJwwdOtOSr0W8n7kUZ+MM5T94747YHlneb29gOSBdAL88FIfYgzS/uT/bAFV8+kji4gj/sU3sUBD6UpD1HhJL6Cl8A6x1ysxmYcbsH27H9htkX9YIOrbZFQQ7Vddo01tQlPS49ov4I6yw== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2017 12:19:48.6770 (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.37]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR07MB280 Subject: [lng-odp] [PATCH 1/5] 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" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
Series | Packet test fixes | expand |
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);
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 <petri.savolainen@linaro.org> --- test/common_plat/performance/odp_l2fwd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.8.1