From patchwork Thu Jul 7 14:52:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elo, Matias \(Nokia - FI/Espoo\)" X-Patchwork-Id: 71591 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1453332qgy; Thu, 7 Jul 2016 07:52:51 -0700 (PDT) X-Received: by 10.129.51.137 with SMTP id z131mr674008ywz.52.1467903171728; Thu, 07 Jul 2016 07:52:51 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j36si2844872qte.14.2016.07.07.07.52.51; Thu, 07 Jul 2016 07:52:51 -0700 (PDT) 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=fail (p=NONE dis=NONE) header.from=nokia.com Received: by lists.linaro.org (Postfix, from userid 109) id 1E144685A0; Thu, 7 Jul 2016 14:52:51 +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 12A536858F; Thu, 7 Jul 2016 14:52:47 +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 3051B68594; Thu, 7 Jul 2016 14:52:44 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0111.outbound.protection.outlook.com [104.47.2.111]) by lists.linaro.org (Postfix) with ESMTPS id 0403968585 for ; Thu, 7 Jul 2016 14:52:43 +0000 (UTC) Received: from AM3PR07CA0050.eurprd07.prod.outlook.com (10.141.45.178) by AM4PR0701MB1939.eurprd07.prod.outlook.com (10.168.4.27) with Microsoft SMTP Server (TLS) id 15.1.534.14; Thu, 7 Jul 2016 14:52:40 +0000 Received: from AM1FFO11FD009.protection.gbl (2a01:111:f400:7e00::153) by AM3PR07CA0050.outlook.office365.com (2a01:111:e400:882c::50) with Microsoft SMTP Server (TLS) id 15.1.528.16 via Frontend Transport; Thu, 7 Jul 2016 14:52:41 +0000 Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.240 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.240; helo=fihe3nok0734.emea.nsn-net.net; Received: from fihe3nok0734.emea.nsn-net.net (131.228.2.240) by AM1FFO11FD009.mail.protection.outlook.com (10.174.65.98) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Thu, 7 Jul 2016 14:52:40 +0000 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 u67EqRGI000408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 7 Jul 2016 17:52:27 +0300 Received: from 10.144.19.15 ([10.144.104.92]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u67EqRQa000382 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Thu, 7 Jul 2016 17:52:27 +0300 X-HPESVCS-Source-Ip: 10.144.104.92 From: Matias Elo To: Date: Thu, 7 Jul 2016 17:52:27 +0300 Message-ID: <1467903147-32314-1-git-send-email-matias.elo@nokia.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(2351001)(229853001)(33646002)(305945005)(106466001)(48376002)(50986999)(2906002)(77096005)(19580405001)(68736007)(19580395003)(5003940100001)(36756003)(8936002)(92566002)(50226002)(50466002)(47776003)(87936001)(16796002)(8676002)(6806005)(81166006)(586003)(81156014)(110136002)(107886002)(189998001)(7846002)(97736004)(11100500001)(450100001)(356003)(42882005); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR0701MB1939; H:fihe3nok0734.emea.nsn-net.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD009; 1:SsSfKi8w+IwPGrQAV5+DStpo34zfntt5SuhJnCfA+BsFGP9bsIyVucDcO6xuGKRI7lGIJfFCIRhL30MGSJAxHMHX7Cas1JBX2z92i4OOxvk5v8lA3nsmACPEj3jfcfiAmJzm5d9pDEYw7mV+NQKi5MhEtK5qLtTDa6dNI2oH1ZSRAmeOVnmIGfUW2GsEOr1luUr6LE8xL4OQeYCH9yzS9k7dn63FYw8Ms0ACLAON4STEeOf6qXGAVAHZenxha34vguOIelUI6M5grDi9rFZTZ4PuH1aDUHvMWxGNZAbDbj1dBEplio3jnmVzYj2OxHLMjUa++3zP2iBnvCo9NOG5u5Sx/qsTYRZO6mMOAwFbvg9JAcDHIcfhS+h4z0nGm9Own5DAVbhX1JcpkYPJZ4+/iq4IRZhsIoZc2pFqcZ24F3wpNeF8kiHEiHoIv3zyhxxCbAjCwjqygmmUowc1Er+Xdggb5UJkDszVApTuVSySvzA= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: fa0b289b-e942-4946-9e3b-08d3a6765866 X-Microsoft-Exchange-Diagnostics: 1; AM4PR0701MB1939; 2:seQxAEe9GRdpCdwjCjAvRDgfzdNk8nmVKBaY7zLjpCgocurmu5bQKTiA64mUEDLha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Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(10201501046)(3002001); SRVR:AM4PR0701MB1939; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0701MB1939; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0701MB1939; 4:gW/y78en/CzUQG+Qk6ld6VnbK+UpnAQ2ZfUNN1Rcr7JtMX7I22vOYVU/WD52RdIQPRdTXlJi9zqTtlM8sjfe7YpGbebLMQSzFxzQoyfRfYuwiPTgbrIXH4uZodous7D6cSe2eeTx2ituSTfFFAPHovEoDUmtPP+RWHPR2X2zoJrBmtZf+8cKYeoClyiXjcfr6t8ERLE8Rec2ETWKeVxfG7KlOiJ0vvOmWEaLu0coNzlOViylA5kd5kaiSVU6++BagHpGAFN7GIG5RaLpn2AgInUX6NN7F5O2QfuGnAD+NStG8PtKiRZRPfPAe0zX6LMqQMFLYT0yC/tup83Kcu7SYp/L8/IOeGPRprTElRSkcIGxFD5eptaCe0ibHzJaOXKHXpPv/i1JlZHRgUWGPUffejnSHM6htRbZv5apdnaehU7gqMSB6LodjP8ADa5LiwvQ X-Forefront-PRVS: 0996D1900D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR0701MB1939; 23:JQ8AWpYR8zag3Qpd+Y83HuKwMOD1qgH4nzMJk8+?= =?us-ascii?Q?4gBsmEPud34KuzJU7Y+OUg75ZlhMlemfPNGTEkKzjAVoJQ/5UNGYcQwpsPPy?= =?us-ascii?Q?L4FkYyzwlGC20NaIVjPQKvj9ZDLwcDpNs9P6N2aeDgo0jPZ+iw39SNe1X8t+?= =?us-ascii?Q?m4x4q2UYXubi0nk1/HfL42HOM5qVtQGLzTvdb9k/9UoNgFvTa/Sc9mFrE6Z1?= =?us-ascii?Q?qd0/CEkM/GZKRzLG7KEvt+3M/7dHIPJszKIDax1NBl/mMu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pd2jGD3b4M6/dJnLMGpBIYfwnjVSuoGkvkAzz82J0OCGm5hFbOBSjYYgDGAEUUNGa/SD/pXFQZUCqG2v1BshoqP1MqnTtCETr86BBN1+YHfkOqu9dEKc+qJ89gnmn+CdanMkzMvrRhY2haT9SPG8YJ6U3KUf1NjAN/Sr0NNxGBSBMpeNm05jO7ba8IrlI7dFvdD7ncZEZOjFbqXahzCm1sJngosSpQ7cSB8IuL2w=; 5:PYmaOLsD8gDbMaqXG3l3+6CdtwwoskIYV6U2gNE5RqK2OeDNvlRwuYLa2sVWQFHwZ4KhHZhM5DOPAzqQxB3WtPa6q5wSBJxO8iaMf+AuRQSB3xJMnSG15L4TJMm/4X5MnKCahtW3QMKPiWYzbPzM1g==; 24:hvmF0eqqR/jKi2EXw9s26S6jsYxdk6RrN2oGjQ7vaZxnzTxJB+ojlRQRsbw32mI/seaEfrlQd3fY8YzFKscW2H+NNigPykv5i+lCszmEen4=; 7:P6X4p+ruJ1ZbBVpsRZTaPE2EHsF/GjRXj6EfVurDxv+h3NYLt9BXFODSk3svlEEfBup0nYtknHzKB1MG9lKJpYdUqEXGdlxRZeUpoRrXij+a2EZqutM5Z3DFsoPc4J7a8yN0XNiSox1vudILIbpcM/XbDCK5xIohHwMMlD5Oiv1DJFQBTpdd73Z1krsPDbhoO3Xmbl/yl2WsSeEBFSg10ZYGwr8QU8sYx2hBcWyycAfideG52XpcLcquJA3b3nZS SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2016 14:52:40.7283 (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.240]; Helo=[fihe3nok0734.emea.nsn-net.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0701MB1939 X-Topics: patch Subject: [lng-odp] [PATCH v2] test: l2fwd: prefetch packet data 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" Prefetch ethernet addresses. This is a no-op on odp-linux but improves performance significantly on odp-dpdk implementation. Signed-off-by: Matias Elo --- V2: - Use ODPH_ETHHDR_LEN define (Maxim) test/performance/odp_l2fwd.c | 3 +++ 1 file changed, 3 insertions(+) -- 1.9.1 diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 164f7f5..e296b94 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -255,6 +255,9 @@ static inline void fill_eth_addrs(odp_packet_t pkt_tbl[], for (i = 0; i < num; ++i) { pkt = pkt_tbl[i]; + + odp_packet_prefetch(pkt, 0, ODPH_ETHHDR_LEN); + if (odp_packet_has_eth(pkt)) { eth = (odph_ethhdr_t *)odp_packet_l2_ptr(pkt, NULL);