From patchwork Mon Oct 6 10:23:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Barbu X-Patchwork-Id: 38361 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F14EB202E7 for ; Mon, 6 Oct 2014 10:24:07 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id y10sf2564336wgg.10 for ; Mon, 06 Oct 2014 03:24:07 -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: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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=XgZ9+b4TkW2bpp+jTk2O8NUris6ZAvooOKX8lTmom94=; b=CezKmE/+pwbXI0nzPCYatjyBlycCMWGuSCCMIC82UCs5HDE2FaLY8IQtHMdEAdrwpP czR6+stxOkZyav3GI2vzUQ4UehNFazdo6nIKDlNn5x5vtq5lP/Uv7FuZCO8cyxSXqnOZ vFSByIu0legmLJY+v41qhefKjKZnmEXv53sU6Tiv0aXa4o1Ex9ut92UWUuU5Ll87uqar PO0YmXtXjZXCf5QNwWzQ+LYUgsmiOHCjTlTQALYjdy9NwCojS+ge3/4QKjZdB+AYMMCs YPKuMUv1pt7Aw6no4N0ezN2ngQBAbwCZe46FqN/BMiEGtSQcviWJlVwsSygD64jbYK1d n2Sw== X-Gm-Message-State: ALoCoQmtAcCrICpSuw7qkNtwnk5O/XfvquMIG8y2C5oY1rybrYqTToUFOpSVCpob073MIssQxFP5 X-Received: by 10.112.158.73 with SMTP id ws9mr26117lbb.22.1412591047144; Mon, 06 Oct 2014 03:24:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.65 with SMTP id 1ls540833las.63.gmail; Mon, 06 Oct 2014 03:24:06 -0700 (PDT) X-Received: by 10.112.150.170 with SMTP id uj10mr23040958lbb.72.1412591046606; Mon, 06 Oct 2014 03:24:06 -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 q9si23180380lag.92.2014.10.06.03.24.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Oct 2014 03:24:06 -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 mail-la0-f41.google.com with SMTP id pn19so4127234lab.28 for ; Mon, 06 Oct 2014 03:24:06 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr24227190lad.40.1412591046521; Mon, 06 Oct 2014 03:24:06 -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.130.169 with SMTP id of9csp157250lbb; Mon, 6 Oct 2014 03:24:05 -0700 (PDT) X-Received: by 10.140.94.151 with SMTP id g23mr26310509qge.6.1412591045171; Mon, 06 Oct 2014 03:24:05 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 89si16573830qgx.59.2014.10.06.03.24.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 06 Oct 2014 03:24:05 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xb5SV-0004w5-Fq; Mon, 06 Oct 2014 10:24:03 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xb5SG-0004vK-IF for lng-odp@lists.linaro.org; Mon, 06 Oct 2014 10:23:48 +0000 Received: by mail-lb0-f182.google.com with SMTP id z11so3986837lbi.27 for ; Mon, 06 Oct 2014 03:23:42 -0700 (PDT) X-Received: by 10.152.204.43 with SMTP id kv11mr24283407lac.25.1412591022234; Mon, 06 Oct 2014 03:23:42 -0700 (PDT) Received: from cipriantemp.enea.se (sestofw01.enea.se. [192.36.1.252]) by mx.google.com with ESMTPSA id d9sm5575882lbp.49.2014.10.06.03.23.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Oct 2014 03:23:41 -0700 (PDT) From: Ciprian Barbu To: lng-odp@lists.linaro.org Date: Mon, 6 Oct 2014 13:23:20 +0300 Message-Id: <1412591001-6850-3-git-send-email-ciprian.barbu@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1412591001-6850-1-git-send-email-ciprian.barbu@linaro.org> References: <1412591001-6850-1-git-send-email-ciprian.barbu@linaro.org> X-Topics: patch Subject: [lng-odp] [lng-odp-dpdk][PATCH 2/3] linux-dpdk: Fix ODP_BUFFER_POOL_INVALID and ODP_BUFFER_INVALID X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ciprian.barbu@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 Signed-off-by: Ciprian Barbu --- platform/linux-dpdk/include/api/odp_buffer.h | 2 +- platform/linux-dpdk/include/api/odp_buffer_pool.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-dpdk/include/api/odp_buffer.h b/platform/linux-dpdk/include/api/odp_buffer.h index 9ea1ed8..b2fbc76 100644 --- a/platform/linux-dpdk/include/api/odp_buffer.h +++ b/platform/linux-dpdk/include/api/odp_buffer.h @@ -32,7 +32,7 @@ extern "C" { typedef unsigned long odp_buffer_t; -#define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */ +#define ODP_BUFFER_INVALID (unsigned long)(-1L) /**< Invalid buffer */ /** diff --git a/platform/linux-dpdk/include/api/odp_buffer_pool.h b/platform/linux-dpdk/include/api/odp_buffer_pool.h index 4b75cf5..382f4f0 100644 --- a/platform/linux-dpdk/include/api/odp_buffer_pool.h +++ b/platform/linux-dpdk/include/api/odp_buffer_pool.h @@ -27,7 +27,7 @@ extern "C" { #define ODP_BUFFER_POOL_NAME_LEN 32 /** Invalid buffer pool */ -#define ODP_BUFFER_POOL_INVALID (0xffffffff) +#define ODP_BUFFER_POOL_INVALID (unsigned long)(-1L) /** ODP buffer pool */ typedef unsigned long odp_buffer_pool_t;