From patchwork Fri Feb 13 23:13:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44681 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 4F3F82153D for ; Fri, 13 Feb 2015 23:14:14 +0000 (UTC) Received: by lams18 with SMTP id s18sf13504259lam.1 for ; Fri, 13 Feb 2015 15:14:13 -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: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=Bo76X+y11UwWAHMhTnhHBkO2l7hXFtYIzZdz6MrI+mCbu2MVu1HgjnNoBbZ8cbUEPN cf/t+3a0m7kzkvAF5Ng4Wrr+62+pv+g+lt2xiPJuG0ukzaVd2RRjaZWGPCxidzPRsmqc /xBD82KNIXRRPCSSwckQ07MDKZbJ/Eu5aGmscIxaajxD7j4dcDkvrnsSEy+BzaeK3Ea3 YCqd5fvD5t97F7cnndsEUY8VddsTb18J16VsUc64nDKsjnVi46jHJLQiBhC17GqDds07 b1h1X2UwTDt5nNmFTv530LhsgngY+IvQB6kxYn1yaBx9p2thhWfHxMCq1uD1OyOuYNJX iJPg== X-Gm-Message-State: ALoCoQk/BpgzkXkGx5kwxiZGr7f0fdV1dsIjmeigUryO9H+4SW6In1M/s2DG/6lHEc1MYSDd/+l5 X-Received: by 10.152.28.71 with SMTP id z7mr1696067lag.7.1423869252993; Fri, 13 Feb 2015 15:14:12 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.66 with SMTP id i2ls389260lah.23.gmail; Fri, 13 Feb 2015 15:14:12 -0800 (PST) X-Received: by 10.112.64.2 with SMTP id k2mr10765618lbs.54.1423869252704; Fri, 13 Feb 2015 15:14:12 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id c6si589178lbn.158.2015.02.13.15.14.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Feb 2015 15:14:12 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lams18 with SMTP id s18so19359050lam.13 for ; Fri, 13 Feb 2015 15:14:12 -0800 (PST) X-Received: by 10.152.45.100 with SMTP id l4mr10422558lam.112.1423869252400; Fri, 13 Feb 2015 15:14:12 -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 h5csp161411lbj; Fri, 13 Feb 2015 15:14:11 -0800 (PST) X-Received: by 10.140.102.100 with SMTP id v91mr28237706qge.29.1423869250961; Fri, 13 Feb 2015 15:14:10 -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 63si1005828qhw.119.2015.02.13.15.14.09 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Feb 2015 15:14:10 -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 1YMPR1-0005f5-Rx; Fri, 13 Feb 2015 23:14:07 +0000 Received: from mail-pa0-f51.google.com ([209.85.220.51]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YMPQv-0005eR-8r for lng-odp@lists.linaro.org; Fri, 13 Feb 2015 23:14:01 +0000 Received: by mail-pa0-f51.google.com with SMTP id eu11so21814313pac.10 for ; Fri, 13 Feb 2015 15:13:55 -0800 (PST) X-Received: by 10.66.141.5 with SMTP id rk5mr19250233pab.112.1423869235880; Fri, 13 Feb 2015 15:13:55 -0800 (PST) Received: from localhost.localdomain ([210.177.145.245]) by mx.google.com with ESMTPSA id v2sm7692452pdo.69.2015.02.13.15.13.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Feb 2015 15:13:55 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 13 Feb 2015 15:13:55 -0800 Message-Id: <1423869235-422-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCHv2 2/4] 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.215.44 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));