From patchwork Fri Oct 9 12:59:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 54700 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 409CE22FFC for ; Fri, 9 Oct 2015 13:00:45 +0000 (UTC) Received: by wijq8 with SMTP id q8sf3074729wij.1 for ; Fri, 09 Oct 2015 06:00:44 -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:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=O81nSWBtlKqQoCHJGiy5k+CyrHZbLYCemf8Lrp6c2n0=; b=AKCjU455Ui1BBpXwaMhFH66sl+v0eLoVQUYwiDnIqrDekQnlrFAS/WQ12WUMjs8HYP alPK130mu1N+lsPVHuSIdL43OWJbHgInnauzBplh2+KYWqGdAyHy9a2UrShluVntj5Ax x8nYUSX7iFqLj6dZyunmt1Pl0hGrYeHhSxa/YazHjcmjWaxwjUIG1uOLtTXEzHTNf2T9 vI+rb9zSN0uPB/7NrEepL2OaGvK+0GzY126iPrwv8UsVwgfTC/k8/YwolLqKI32MOeHk RjGv89AdG7HT7aFo1Na8NUTTLi3/iL+JrONbdLRFDIUy/PHUFOlEVb0+/kjSI1kpPEjE oxAw== X-Gm-Message-State: ALoCoQntv8p0ApdJXEwYHMGjPAN1S9GaUaT8jd1yltZuXUtc3cova8zF1o4d0Q/WM/aMwZZ+ZEJu X-Received: by 10.180.188.211 with SMTP id gc19mr1902736wic.6.1444395644567; Fri, 09 Oct 2015 06:00:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.168.83 with SMTP id r80ls276673lfe.75.gmail; Fri, 09 Oct 2015 06:00:44 -0700 (PDT) X-Received: by 10.25.146.193 with SMTP id u184mr4240430lfd.50.1444395644415; Fri, 09 Oct 2015 06:00:44 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id r134si1150573lfd.0.2015.10.09.06.00.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 06:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbbwt4 with SMTP id wt4so79824986lbb.1 for ; Fri, 09 Oct 2015 06:00:44 -0700 (PDT) X-Received: by 10.112.146.104 with SMTP id tb8mr6679304lbb.35.1444395644192; Fri, 09 Oct 2015 06:00:44 -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.59.35 with SMTP id w3csp1193785lbq; Fri, 9 Oct 2015 06:00:43 -0700 (PDT) X-Received: by 10.107.162.81 with SMTP id l78mr14195277ioe.176.1444395642977; Fri, 09 Oct 2015 06:00:42 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f77si2489131ioi.34.2015.10.09.06.00.42; Fri, 09 Oct 2015 06:00:42 -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 4007D61A3F; Fri, 9 Oct 2015 13:00: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=-2.6 required=5.0 tests=BAYES_00, 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 CE92B61A37; Fri, 9 Oct 2015 12:59:22 +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 584C1619B2; Fri, 9 Oct 2015 12:59:13 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by lists.linaro.org (Postfix) with ESMTPS id 2D42C61817 for ; Fri, 9 Oct 2015 12:59:12 +0000 (UTC) Received: by lbbwt4 with SMTP id wt4so79775662lbb.1 for ; Fri, 09 Oct 2015 05:59:11 -0700 (PDT) X-Received: by 10.112.161.138 with SMTP id xs10mr6326533lbb.47.1444395551050; Fri, 09 Oct 2015 05:59:11 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id h196sm271039lfg.21.2015.10.09.05.59.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Oct 2015 05:59:10 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 9 Oct 2015 15:59:06 +0300 Message-Id: <1444395547-13968-4-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444395547-13968-1-git-send-email-maxim.uvarov@linaro.org> References: <1444395547-13968-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv4 3/4] linix-generic: _odp_pri account 64 bits 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@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.217.174 as permitted sender) smtp.mailfrom=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 _odp_pri returns uint64_t value but actually accounts only 32 bit. In my case that lead to return the same value for printed packets with additional handle bits. Signed-off-by: Maxim Uvarov --- platform/linux-generic/include/odp/plat/strong_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp/plat/strong_types.h b/platform/linux-generic/include/odp/plat/strong_types.h index a53d763..843e2d2 100644 --- a/platform/linux-generic/include/odp/plat/strong_types.h +++ b/platform/linux-generic/include/odp/plat/strong_types.h @@ -25,7 +25,7 @@ #endif /** Internal macro to get value of an ODP handle */ -#define _odp_typeval(handle) ((uint32_t)(uintptr_t)(handle)) +#define _odp_typeval(handle) ((uint64_t)(uintptr_t)(handle)) /** Internal macro to get printable value of an ODP handle */ #define _odp_pri(handle) ((uint64_t)_odp_typeval(handle))