From patchwork Thu Sep 14 15:00:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112565 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp845869qgf; Thu, 14 Sep 2017 08:05:18 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDfpBH52E/ImBxq2FhzzPcD8UKPElA51HAVBAH3E2JDXiknBrkcAX43qx0ScIW8LWNrAu4K X-Received: by 10.55.76.150 with SMTP id z144mr3076281qka.351.1505401352460; Thu, 14 Sep 2017 08:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505401352; cv=none; d=google.com; s=arc-20160816; b=gTVUa901EBH8YuGttvLv7HCeRY7owvpsa64cZfpLlMFhyJIk2dopuG5iFT34KgCA65 axi5Kg90mlAjgNBNNWzdurt9//w6LdfgZYQqM8lT23orNrMCpjTpvLW6ld78szrcr5Z4 pe2CfjJnu3vFnjH/Uj4ADht/1Doy7oWjElmsC+UwQvbhJoBSkTInYMg9pgIbf0oSzTVp CcL/wzqWDUUWw/uzGZDCTOpLqkziOTaQkaoAdF1vSbXJ9Zfu91rDaScVKTSpl+SIVVmW vdD6P3vfseW65bnLbbHfCQfHIa5T/cvQvVjE9d0GIYMgeTp/4DryX/sxZJue9YHdfvaN bHjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=+Vk4HxlLQyyU+mB6MR7tx+9I+xgcmZqvx5prP4QK80s=; b=dc1kB3p3WYKZ3XX615YAB98TDiFbxE2lw+rDY/AkRKaFHWx0YrXTqEZtadATDjUbHS Rcvm4hHhsLcKJRshQeQc52ag2tnHCmGreWvLYZekcJAzi7CKCEfW7ZMIqKfKa53iJcCf vRCW79VuY65ewR1638RZk0VzW9asGuOYTAEX/7t0OpW86D1U5/HHddgChEYMVWqgXvqF OfqbvnF9sTeGv8umx+ukynK3ypvQbsq4gb2niZYSAkgPL3FUW+diNTiVU8O1yls84iLQ v1Uga4g5VLWP+9qURAHzv63XkgqA4LuMQo5QZetYg+z+mBApDpy0wsVTfCHVOLUBcQ5p INkg== ARC-Authentication-Results: i=1; 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 sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i132si17563192qke.166.2017.09.14.08.02.31; Thu, 14 Sep 2017 08:02:32 -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 sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id C08AC62C60; Thu, 14 Sep 2017 15:02:31 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 A9A006097D; Thu, 14 Sep 2017 15:00:37 +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 8B719608C0; Thu, 14 Sep 2017 15:00:23 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 46FFE60889 for ; Thu, 14 Sep 2017 15:00:22 +0000 (UTC) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward100p.mail.yandex.net (Yandex) with ESMTP id D25175102B21 for ; Thu, 14 Sep 2017 18:00:20 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id hHpPtcWYfC-0KauQujO; Thu, 14 Sep 2017 18:00:20 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id gNZkqRzw9k-0K7WCoPX; Thu, 14 Sep 2017 18:00:20 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 14 Sep 2017 18:00:03 +0300 Message-Id: <1505401213-7265-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> References: <1505401213-7265-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v11 2/12] helper: chksum: odph_chksum returns value in network byte order 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" From: Dmitry Eremin-Solenikov All examples and usecases assumed network byte order for odph_chksum() return value. Instead of changing this convention, rather document that odph_chksum returns value in network byte order. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 160 (bala-manoharan:api_sched_order_lock) ** https://github.com/Linaro/odp/pull/160 ** Patch: https://github.com/Linaro/odp/pull/160.patch ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1 ** Merge commit sha: 438a3bab5df9c05dc06f0b4e4b22c0a7db0864fd **/ helper/include/odp/helper/chksum.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/include/odp/helper/chksum.h b/helper/include/odp/helper/chksum.h index 520e92753..1bf950c8b 100644 --- a/helper/include/odp/helper/chksum.h +++ b/helper/include/odp/helper/chksum.h @@ -40,7 +40,7 @@ typedef enum { * @param buffer calculate chksum for buffer * @param len buffer length * - * @return checksum value in host cpu order + * @return checksum value in network order */ static inline odp_u16sum_t odph_chksum(void *buffer, int len) {