From patchwork Thu Feb 19 18:49:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44852 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1E8B621553 for ; Thu, 19 Feb 2015 18:50:34 +0000 (UTC) Received: by lamq1 with SMTP id q1sf1048823lam.0 for ; Thu, 19 Feb 2015 10:50:33 -0800 (PST) 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:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=zNGiJ9ht2hGY3dz4YBn4p3K+TD1LSUqQt473koXge5s=; b=mfft2uvDzcu1fZmovO+XvtpCSHPOb1RvP1QzZ8FJRQlZntNawDMg8B7NDlU8AdRrwp XT1zLYAC9D7WBdApkCW6IsYCB+6vv+McEQaC/+1LRMLQ47hI6quaO8jYSIMzHY6TgmJ0 bUfpaKd2z6+7SbjX1VlLhZXUj27emKTTbjHu+ASB7Fl3Rz5raaE+g1OQdPfOyU2NN3Zs E62y9n7NhZim9SUZDgwPZh0tYMuAXyoi7KLhFD1VuZ7ezldyt1RqqSkQQfdJKGor/6zS 2l3CDJXULU87mAmkJoia+8UOF2DjZWoP+FRR9baKFeVNWOv0xGrL4dEWuwZDsOskBcxz /V3g== X-Gm-Message-State: ALoCoQlyM7jrllLJVKFpOfH0wXoqfbkXkrFIqEMhwOPoaXxK0SSJyft+UrLWvp2JaIVzQJm7a0h4 X-Received: by 10.112.119.141 with SMTP id ku13mr799628lbb.7.1424371832951; Thu, 19 Feb 2015 10:50:32 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.227 with SMTP id b3ls166243lak.58.gmail; Thu, 19 Feb 2015 10:50:32 -0800 (PST) X-Received: by 10.152.21.100 with SMTP id u4mr5114636lae.41.1424371832768; Thu, 19 Feb 2015 10:50:32 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id uq7si16236351lbb.173.2015.02.19.10.50.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 10:50:32 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbvp9 with SMTP id p9so1781467lbv.0 for ; Thu, 19 Feb 2015 10:50:32 -0800 (PST) X-Received: by 10.152.116.18 with SMTP id js18mr5288087lab.106.1424371832498; Thu, 19 Feb 2015 10:50:32 -0800 (PST) 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.35.133 with SMTP id h5csp681612lbj; Thu, 19 Feb 2015 10:50:31 -0800 (PST) X-Received: by 10.140.38.197 with SMTP id t63mr14268774qgt.61.1424371830924; Thu, 19 Feb 2015 10:50:30 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id q130si17308571qha.79.2015.02.19.10.50.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 10:50:30 -0800 (PST) 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 1YOWBA-0001hM-6z; Thu, 19 Feb 2015 18:50:28 +0000 Received: from mail-ob0-f169.google.com ([209.85.214.169]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOWAz-0001ge-6e for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 18:50:17 +0000 Received: by mail-ob0-f169.google.com with SMTP id wp4so18063519obc.0 for ; Thu, 19 Feb 2015 10:50:12 -0800 (PST) X-Received: by 10.202.86.212 with SMTP id k203mr3793118oib.42.1424371812002; Thu, 19 Feb 2015 10:50:12 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id z184sm15375902oie.0.2015.02.19.10.50.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Feb 2015 10:50:11 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 19 Feb 2015 12:49:56 -0600 Message-Id: <1424371800-4249-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424371800-4249-1-git-send-email-bill.fischofer@linaro.org> References: <1424371800-4249-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 2/6] linux-generic: pools: rename odp_buffer_pool_init_global to odp_pool_init_global 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: bill.fischofer@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.182 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: Bill Fischofer --- platform/linux-generic/include/odp_internal.h | 2 +- platform/linux-generic/odp_init.c | 4 ++-- platform/linux-generic/odp_pool.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h index cd1adeb..b250ed6 100644 --- a/platform/linux-generic/include/odp_internal.h +++ b/platform/linux-generic/include/odp_internal.h @@ -38,7 +38,7 @@ int odp_thread_term_local(void); int odp_shm_init_global(void); int odp_shm_init_local(void); -int odp_buffer_pool_init_global(void); +int odp_pool_init_global(void); int odp_pktio_init_global(void); int odp_pktio_init_local(void); diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index cd8dc46..b00506d 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -37,8 +37,8 @@ int odp_init_global(odp_init_t *params ODP_UNUSED, return -1; } - if (odp_buffer_pool_init_global()) { - ODP_ERR("ODP buffer pool init failed.\n"); + if (odp_pool_init_global()) { + ODP_ERR("ODP pool init failed.\n"); return -1; } diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index 6bcb777..c07392f 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -62,12 +62,12 @@ void *pool_entry_ptr[ODP_CONFIG_POOLS]; /* Local cache for buffer alloc/free acceleration */ static __thread local_cache_t local_cache[ODP_CONFIG_POOLS]; -int odp_buffer_pool_init_global(void) +int odp_pool_init_global(void) { uint32_t i; odp_shm_t shm; - shm = odp_shm_reserve("odp_buffer_pools", + shm = odp_shm_reserve("odp_pools", sizeof(pool_table_t), sizeof(pool_entry_t), 0); @@ -87,7 +87,7 @@ int odp_buffer_pool_init_global(void) pool_entry_ptr[i] = pool; } - ODP_DBG("\nBuffer pool init global\n"); + ODP_DBG("\nPool init global\n"); ODP_DBG(" pool_entry_s size %zu\n", sizeof(struct pool_entry_s)); ODP_DBG(" pool_entry_t size %zu\n", sizeof(pool_entry_t)); ODP_DBG(" odp_buffer_hdr_t size %zu\n", sizeof(odp_buffer_hdr_t));