Message ID | 1467899766-31964-1-git-send-email-matias.elo@nokia.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1420766qgy; Thu, 7 Jul 2016 06:56:37 -0700 (PDT) X-Received: by 10.237.51.227 with SMTP id v90mr470692qtd.23.1467899797900; Thu, 07 Jul 2016 06:56:37 -0700 (PDT) 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 k83si2657263qkh.95.2016.07.07.06.56.36; Thu, 07 Jul 2016 06:56:37 -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 CA58A68591; Thu, 7 Jul 2016 13:56:36 +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_H3, 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 E0333616F8; Thu, 7 Jul 2016 13:56:32 +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 8080468575; Thu, 7 Jul 2016 13:56:19 +0000 (UTC) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30139.outbound.protection.outlook.com [40.107.3.139]) by lists.linaro.org (Postfix) with ESMTPS id 2A584616C5 for <lng-odp@lists.linaro.org>; Thu, 7 Jul 2016 13:56:18 +0000 (UTC) Received: from AMXPR07CA0025.eurprd07.prod.outlook.com (10.242.64.25) by VI1PR0701MB1951.eurprd07.prod.outlook.com (10.167.209.27) with Microsoft SMTP Server (TLS) id 15.1.528.16; Thu, 7 Jul 2016 13:56:16 +0000 Received: from AM1FFO11OLC008.protection.gbl (2a01:111:f400:7e00::192) by AMXPR07CA0025.outlook.office365.com (2a01:111:e400:1000::25) with Microsoft SMTP Server (TLS) id 15.1.534.14 via Frontend Transport; Thu, 7 Jul 2016 13:56:16 +0000 Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.241 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.241; helo=fihe3nok0735.emea.nsn-net.net; Received: from fihe3nok0735.emea.nsn-net.net (131.228.2.241) by AM1FFO11OLC008.mail.protection.outlook.com (10.174.65.109) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Thu, 7 Jul 2016 13:56:16 +0000 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 u67Du6eF032659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <lng-odp@lists.linaro.org>; Thu, 7 Jul 2016 16:56:06 +0300 Received: from 10.144.19.15 ([10.144.104.92]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u67Du6Bg032647 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for <lng-odp@lists.linaro.org>; Thu, 7 Jul 2016 16:56:06 +0300 X-HPESVCS-Source-Ip: 10.144.104.92 From: Matias Elo <matias.elo@nokia.com> To: <lng-odp@lists.linaro.org> Date: Thu, 7 Jul 2016 16:56:06 +0300 Message-ID: <1467899766-31964-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.241; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(19580405001)(19580395003)(189998001)(110136002)(107886002)(16796002)(97736004)(77096005)(33646002)(87936001)(50986999)(50466002)(48376002)(36756003)(2351001)(106466001)(229853001)(81156014)(5003940100001)(50226002)(450100001)(81166006)(8676002)(11100500001)(47776003)(8936002)(2906002)(68736007)(92566002)(356003)(6806005)(586003)(7846002)(305945005)(42882005); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0701MB1951; H:fihe3nok0735.emea.nsn-net.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11OLC008; 1:B7bCiVAgpgTKh14UMLGXp8ccu0bJJLJ1jsABsimT26X8W+/eMK8LTRlK8zdrlQi/7SNT/VXQehuL/ls8dUw1UlpZwZMP7nu5mpQD86IsRJIDzUMb+f807y4hK4GhqcmNhXkTY1dADNGe9s9vQNC5wl9Makwhx9PiaE54x6hW2TJCy98Tu3agSuNkv1RnE89PldHD9nkK/4v12mxTzk40fC5hHwYTcwMexwbRzoazcADTKJjCF5XLcGU5EYF0FTzHtpZPV8ZIUMfo/sp1oPcq9ofw8d1/YbUAlSNUsHKkzid6PMHkfW2rGrKrVJlAVwxld0gVHMAL25DNuQPTwb5gGW1+XJBMLTzptqKKAs3AT++b30d7stLTxPxf7xB6dq/fz+CsXmi83zeNKeDvwxm69nEoRuON/3hRTJ4ruOkxOMMaBwE/WNgd4SRUnGxgZaoiLLTWEz3rqk7WSD4A2T4CZ7x/eVN+l7FejGtqjVg1DUo= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d2b61d65-69a5-4981-4a5f-08d3a66e775b X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB1951; 2:B4ioo0XT2vI7hDgoqsAhrTdvFq4nR8sLO7VT3y1Iq4LbLRLpCmYdWy05XJorP8e0/3u3saUKYzKxPFpY0XawZunI7o9/Z6p7BXBUCy9teVUUU91fWoYzNVrx2lxeL3VXlpqGF0VNn2eMiw336b9FXkm/8GqiwSbBOpUdGPnE0q9f08WkLNcJEGf5gqjbhNUZ; 3:akg4DV7AlxeBZoW/GtqjW8eU2WzOtztBiVSaldsPK+RmAqF2kwWPK6uKdCsMMTkNJOJ/y/Pk0XjLgLXvFWSkKp3meXskQryCskDgfPnexCJ58UhlBwxKjTfmxSiVS86G9xvvSBHOxQNOH6SJcjp8qHdFpY94Ivf0czxWsG8ABVfdyqDcQNdyYRuBRIXKhd50AwNya+LeYggV78/nnivNrOxp1jtd249jGQGKI0Ejxf74IseMNDxP99ecdbKj0TofViSGsG/CIZOuKKFSpMVSNg== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:VI1PR0701MB1951; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB1951; 25:vMJeHiCoXJNnG1OubtyHkDmFNS0HkLiPZyNTNJEkxBN8VvU3gMfkNSxy07TVMG38gWAYx9KPChPI9DQa1PJgxNdNCBB+C93DpFMKuy+uqJkg57GM/SYMP5ur5+ACskcEilC++g2h4y2O3Me6vfFwuLMGKZqV+TQGTjws5nan1aROxtmlNt/TPyGnavcD4YKvQc57hvPki4L/0AmIMgSgxLPjgMXYiiRFQk2oL0Ved+r/FPan3+KfQyZVvTbJViP1VCREGQZBnyCG5x7K/XsOHBhHF610l2Ky/nk7g7rhakFTtBMwf5DaY1ABWPTYysl4y6ca3NPtikRpG96uo8qcE8FMnL+NEjFD9hEWrKgjYoDq8sE2fe7kBItODa/Jn1jlk2+8GFfljV55/x/taSKLbdI/7ew4Exj6dtTJnfL6XuUV3tTOp6opaaPBmAu/jbUzEjInNiOzqQHIm1h45DgYMuI8cwWOG0xnLvIR3cUjCv3ZSgOyy0+7EXVxtjIfWzODmr/pY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r2PjFFoXXkzENTl3uJyC1dsKCJi0fdT4h50Es1o= X-Microsoft-Antispam-PRVS: <VI1PR0701MB1951C2311FE9D1314D3EFC96873B0@VI1PR0701MB1951.eurprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(10201501046)(3002001); SRVR:VI1PR0701MB1951; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0701MB1951; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB1951; 4:DDh6qH6A+3b3NjilugVAYIqwFEg2SNWiwK8L6MYERPt/PsQMgEp0eRiFI/HVIoc9cmr+/60g7r4m4FiVtg8YEHL9L/BxBF7EeLgX3rRJHplfsO+9LWgM1xSUktmMGgBJMW3MLw+mWbNzesqRtjvQtsYxPI22H+jKz0p58bPQ0mA1vwKwNVuJoH56V/KodYRnnZCNX7+/0bhn2J9G/ImwZrZ1uXKv6oJVJGi8whpHw/oIdHtQ4Lg8bIPyynTNrkt3Vocc8hCkVjD5muV3EAgW7NnYwjmjqKzdGTNphoj7tG+74JOGA/Y8SJVxj+MEdJ9JuFKE/1DKJtk7I1DHd8zCIzKGHCTWwZUN9nJeW7Wcn0GCwm8UUwJON/jhzNLGezbEu89vopLoSWH49ozGuZDs7qSHLXCwKYu+dR8UKeHey82IhzBz584QO3YokVtPuiofh7Xab/ht93YNErwicyz0Tw== X-Forefront-PRVS: 0996D1900D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0701MB1951; 23:OpDrLVOTeP6gc0JiJD8dglVn9qCCGsXd7TGQtQH?= =?us-ascii?Q?IuxPhHVUaGKWhLBCtOFscaRkRGBdxkyyx2Ox03uoNQIeHsw86P8O3EcpRCpl?= =?us-ascii?Q?ZRxVf6TuKDzyZAGHkJaJcZnzwR9sIoru/OJGTku54eEJhRwo26mrV+xSozSg?= =?us-ascii?Q?yXH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or4KA0A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB1951; 6:QkGuWzBYPjgrj37jQVj8oqkcosVDhooSa3PN9j1zBb+6Na4MJSI5nO/sBbnwCiwJV5i+77s0ZA38pJOKbU0gtR7HpAefnK/d8n40sl0AUbDZoTyeU8xVMAPiXKtynUVUEczGxZj+1Q+5ExHLVssHqNsz3hPQF5sYJQUQHBgpvRsFkE9P6TTKfhQ7bE8b8d49nWyzZnnPzdIBHd8MZ8LRyaG3DgAoPIUOVpzBbBYx4PZXI+/SIqYeY0SDt4Ne7Algnof8pZ+lQeuMZv++CUVsSSw5rFO2Wl27LQy7Jw2FgLM=; 5:SO86nBZdZnj+nS8YCUOgUpLOjbdK/mTxiRD9xioHWaEgPlJOQ/LqoQyB68d1SvnwXHq558H9B0gyKclFW3/KowWbdyJ+d+yIymZA/2C+VJvsFEJdRlUFAO/nMtdeeO3Md+Q027GXaemTDsoNZc9TFQ==; 24:uh/R5AgoiiDyUVdBBU2Dr3E6LBuk9zQ1uOybtumaaqBIDbd43zRoQCms0wv+79pobyq4bE103Hbv14fUhDQ2fm16GL9Gx+PA2WtwjYVqVZE=; 7:GOujF+FP2FVzq4rJAwZl4xYUWD2VVh4Envw7v4ukWgIQni0NcWevRDSQEJMiu5zcVlBuAUSb+ey86Q/VPORo+sVAtoiNNnLsvAwIWQLg3g6gg2u852O4vOquewa9yw5RCyeRcWQCm+/3F/lSpnLF8nnsAEyYgsrk/LoyeTTUNzU83n8r0nA62DxWZKKF4RsM9l9iAr+0rYrkjtxR3UuDBkandOd4RojEOQqEyscjVb+oOYZkbCxTStcIW3OxnPqN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2016 13:56:16.6740 (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.241]; Helo=[fihe3nok0735.emea.nsn-net.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB1951 X-Topics: patch Subject: [lng-odp] [PATCH] 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" <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> |
On 07/07/16 16:56, Matias Elo wrote: > Prefetch ethernet addresses. This is a no-op on odp-linux but improves > performance significantly on odp-dpdk implementation. > > Signed-off-by: Matias Elo <matias.elo@nokia.com> > --- > test/performance/odp_l2fwd.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c > index 164f7f5..cd4789f 100644 > --- a/test/performance/odp_l2fwd.c > +++ b/test/performance/odp_l2fwd.c > @@ -255,6 +255,10 @@ static inline void fill_eth_addrs(odp_packet_t pkt_tbl[], > > for (i = 0; i < num; ++i) { > pkt = pkt_tbl[i]; > + > + /* Prefetch ethernet addresses */ > + odp_packet_prefetch(pkt, 0, 12); > + _ODP_ETHHDR_LEN ? > if (odp_packet_has_eth(pkt)) { > eth = (odph_ethhdr_t *)odp_packet_l2_ptr(pkt, NULL); >
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 164f7f5..cd4789f 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -255,6 +255,10 @@ static inline void fill_eth_addrs(odp_packet_t pkt_tbl[], for (i = 0; i < num; ++i) { pkt = pkt_tbl[i]; + + /* Prefetch ethernet addresses */ + odp_packet_prefetch(pkt, 0, 12); + if (odp_packet_has_eth(pkt)) { eth = (odph_ethhdr_t *)odp_packet_l2_ptr(pkt, NULL);
Prefetch ethernet addresses. This is a no-op on odp-linux but improves performance significantly on odp-dpdk implementation. Signed-off-by: Matias Elo <matias.elo@nokia.com> --- test/performance/odp_l2fwd.c | 4 ++++ 1 file changed, 4 insertions(+) -- 1.9.1