From patchwork Tue Jul 14 12:25:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Badicioiu X-Patchwork-Id: 51106 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2493622A24 for ; Tue, 14 Jul 2015 12:26:09 +0000 (UTC) Received: by lagw2 with SMTP id w2sf2387825lag.3 for ; Tue, 14 Jul 2015 05:26:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=O85PQg/GQrSoXzs5I2WJGxya83h7Yd0In26fdQLw0UE=; b=VNXRJQiDlWNP8uROuvCU1H2K2NGowPPFqIvk4li7iznXsEJSb97oyGhvVI+it7DD1z j1ItGPBIeQHCCOQUc0PNG3JwmkAQCAemfC7qUmtjtRnEtUAW1khrJ6vmmsNFlW5IZy7L acWmrk+0U8wHYwWWPJJN0uBqiRPGN4jodQF98xmBHVLnEvLhC0mMxYZft/lZu0EcfjuC 9Be+Gyyn7AXebbgglL64dBfPVfWgV5mQmFAhTHsLyOoN+kGWY8qYaIO80MNuDsLcTvqJ MoWd3FDLbtk5fN6s3lHrZQXkchV4L8W8of86ZqxnGY+2LvDSfNzVZVTZCeNxIW7AdJWz t7+w== X-Gm-Message-State: ALoCoQm6gSD69COu1bPlYDjiFNAZOwral1h5vIiddp8KuZnD5MtDjwhw67q60+iujLvL/8IWx3lC X-Received: by 10.112.138.2 with SMTP id qm2mr21408484lbb.19.1436876768090; Tue, 14 Jul 2015 05:26:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.235 with SMTP id r11ls42575lal.108.gmail; Tue, 14 Jul 2015 05:26:07 -0700 (PDT) X-Received: by 10.152.181.34 with SMTP id dt2mr37137090lac.84.1436876767745; Tue, 14 Jul 2015 05:26:07 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id ax10si793364lbc.94.2015.07.14.05.26.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 05:26:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagw2 with SMTP id w2so5002625lag.3 for ; Tue, 14 Jul 2015 05:26:07 -0700 (PDT) X-Received: by 10.152.42.177 with SMTP id p17mr37280414lal.29.1436876767637; Tue, 14 Jul 2015 05:26:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2351129lbb; Tue, 14 Jul 2015 05:26:06 -0700 (PDT) X-Received: by 10.55.20.72 with SMTP id e69mr22497682qkh.63.1436876766518; Tue, 14 Jul 2015 05:26:06 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 80si840119qkv.36.2015.07.14.05.26.05; Tue, 14 Jul 2015 05:26:06 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 75B536181E; Tue, 14 Jul 2015 12:26:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 4772861836; Tue, 14 Jul 2015 12:26:01 +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 607C761805; Tue, 14 Jul 2015 12:25:59 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0093.outbound.protection.outlook.com [157.56.111.93]) by lists.linaro.org (Postfix) with ESMTPS id C6E1C617FC for ; Tue, 14 Jul 2015 12:25:58 +0000 (UTC) Received: from BY2PR03CA011.namprd03.prod.outlook.com (10.255.93.28) by BN1PR0301MB0722.namprd03.prod.outlook.com (10.160.78.141) with Microsoft SMTP Server (TLS) id 15.1.213.14; Tue, 14 Jul 2015 12:25:58 +0000 Received: from BY2FFO11FD022.protection.gbl (10.255.93.4) by BY2PR03CA011.outlook.office365.com (10.255.93.28) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Tue, 14 Jul 2015 12:25:57 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 192.88.168.50 as permitted sender) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD022.mail.protection.outlook.com (10.1.15.211) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Tue, 14 Jul 2015 12:25:57 +0000 Received: from fsr-fed1364-15.ea.freescale.net (fsr-fed1364-15.ea.freescale.net [10.171.81.144]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t6ECPtkG026154; Tue, 14 Jul 2015 05:25:56 -0700 From: To: Date: Tue, 14 Jul 2015 15:25:49 +0300 Message-ID: <1436876749-14412-1-git-send-email-alexandru.badicioiu@linaro.org> X-Mailer: git-send-email 1.7.3.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130813503574894845; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD022; 1:GPH057Y0JmVDUK6Yx4z13b8cZ/PhB7E/FpgowDswbuIC5oqrGQDyyTtwwFrOfzTCVzES/Eak371+Ig6TbIQG/hYZ1qoLzVinKfaZlwzCeojI/0b9oxi1A3ng8QGrAL7trMQdnWu3fYif3OLOyXYzC3v6qa2kNYV2ahunQIu8j/w7SU6xRD7DRuY9OhCQkICYm2vxxLjNJE9bHYK0JEtcjLodzF59C7/3jjEa9J/5nsqMyom0Vu8G+gm/Z6PjVcpaMxAMGQKZqZtYi9OioIwoMKZ2/bcErqDi6a6KcxWDgZdrDzvw98PEjzMaxnFRZLjWd2yZNvqHUtnM9jjpRVbBiVb9wqGVGBw/Yow8rlYxHEmi5cUMioAGl/1nFMedDKBRBDx1sMSz5kjVFRTeqE5H1tZoaac1QllfzGBpD9UF4E1RqFKBZ5jJhEsllqsMxTdsfobKzBfBoOAqj49rm6DmDQ== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(199003)(189002)(106466001)(19580405001)(19580395003)(104016003)(46102003)(6806004)(50226001)(33646002)(47776003)(50986999)(189998001)(86362001)(110136002)(5001960100002)(77156002)(5001920100001)(87936001)(105596002)(50466002)(2351001)(62966003)(5003940100001)(77096005)(48376002)(86152002)(229853001)(92566002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0722; H:tx30smr01.am.freescale.net; FPR:; SPF:SoftFail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0722; 2:N2NLnD9F0CjUeFIDcParRhzwgyt8PM/kWLsibr3tzDfsLroz2WmnZQ8ldsPEWCZ9; 3:ZJ9pap/BLbssbv6DaRYdkWN93BgG90IaN73hzQ8kFWf5J5u2zIioa0994DDrWFKadHf9/gIv3UXzIdo6llNZ02+RqiFwkweq1DEgX+szIKpWx8JQsmMH1zcOUijRRxFntHxwERN6nMttCkqolqx1Wbha0mC5HA1sxoLIoezf0XT6VA5keR1QJADEWTm0xo1xrLjASJmwRL5FFn1UFanQxCHZQ/P+CXBj67jK8wx3BeI=; 25:+I9b1savFsorzUX/9DSyUE0wNpXBH/foaq9CChU6R32/DRHYQLO3jTe9asPNPEGanHirk1GTCqNbD2AP2bYPppQLKmX327FF/nmz+GaPVIuD2nbX4LmNWHF7YtkI8bBfjiVgMnTtmu5LqB1NJwntUfe+JuCqKn0dfNs2X5HRcXdE1QyP9wVAsVPaEeQY+pDGASlD+wrCHw2ZQ+L93tnuXEicbloSBsc02IbHDQOvMVg=; 4:O7j7yiOdVP2gFBUUOfD4QeUqbHmCBuLURKl/jMRJrFokZqRyytvvVAKTuKnb5w6COOnVT6m5fKSqnYf/P7QHaxMML0/9Fzq1oS+VLyMUyQgkKNex9FV3qVbFAKEDObcA0rT+Q6SgZl2NSwoCXFvDJr6mg11X+W1+ABKEFrVaoVQuRsGfexFhTuaBQZLxJDitDvyZI6+kUU1uZVhw8y9lepNnixGetJojPeoSpcoHTZXAGunTi2SLPkEipVbh57+TbLJihc6qfK4H7sJw3s/M58eEzhFbQE2d342t07YEfV8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0722; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BN1PR0301MB0722; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0722; X-Forefront-PRVS: 0637FCE711 X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0722; 23:7Mwm/Wcu+kDq0l46920dwNfV+7/LKhhNVkTWpucw8JtFlX9/ZQ7j4YuwLL0uX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qHV2OT7MgjISMh548cXKhUkdk+t7wqE7uI6U3I3gayPe4Ww6CJb8QYh6H2oDqKMfF4zlTBDrKi6E9PaJQWbsiOw0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2015 12:25:57.3022 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0722 X-Topics: patch Subject: [lng-odp] [PATCH v1] examples: ipsec: fix inner IP checksum computation X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alexandru.badicioiu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu Reviewed-by: Bill Fischofer --- example/ipsec/odp_ipsec_stream.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c index a140d36..9c4d682 100644 --- a/example/ipsec/odp_ipsec_stream.c +++ b/example/ipsec/odp_ipsec_stream.c @@ -268,7 +268,7 @@ odp_packet_t create_ipv4_packet(stream_db_entry_t *stream, inner_ip->frag_offset = 0; inner_ip->src_addr = odp_cpu_to_be_32(stream->src_ip); inner_ip->dst_addr = odp_cpu_to_be_32(stream->dst_ip); - inner_ip->chksum = odp_chksum(inner_ip, sizeof(inner_ip)); + inner_ip->chksum = odp_chksum(inner_ip, sizeof(*inner_ip)); data += sizeof(*inner_ip); }