From patchwork Fri Feb 13 20:34:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44676 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 E62FE2153D for ; Fri, 13 Feb 2015 20:35:08 +0000 (UTC) Received: by lamq1 with SMTP id q1sf12840376lam.0 for ; Fri, 13 Feb 2015 12:35:07 -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=chAjYW0dp2JtPwmz5ibtddMss8DU5bvEGZEAXo0E61fwmVznAnkZIbwN9dyffkuiiV iYH3dy+mgsmYCyDnurVK5ds9O4Cwx3ngglgkZrd9pEf0JrO8qfWckhgQUeRaF5prBPba ANKMFrELakrnYGspC20DDYKc/BgGxYns83QHgk2r4OQBH/nyVsETrDOLFQqYSHX1Duqs 5bPurOEf/zybc7vBd77JFqGJ3+xybn368JXvrp9Vb0b+7Do8oPxNYoeCeRD8AY/9W+No +HafDxVCtsMcZpYjdHUvfoCe+hEfVwGEtPrNdv65enzL78huDr6ddta8EEP9emgLho2e mKlA== X-Gm-Message-State: ALoCoQn8E1GwMQaaU9Xc3Xnbgw0D9+CiU/iKIArDOAp/kPQHc18ZNcEVCInxqK1e1RooVVI0lPLl X-Received: by 10.112.131.106 with SMTP id ol10mr1650909lbb.20.1423859707876; Fri, 13 Feb 2015 12:35:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.134 with SMTP id c6ls349184lag.103.gmail; Fri, 13 Feb 2015 12:35:07 -0800 (PST) X-Received: by 10.112.77.137 with SMTP id s9mr10220100lbw.55.1423859707716; Fri, 13 Feb 2015 12:35:07 -0800 (PST) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id rb6si613472lbb.8.2015.02.13.12.35.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Feb 2015 12:35:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id w7so17698974lbi.10 for ; Fri, 13 Feb 2015 12:35:07 -0800 (PST) X-Received: by 10.152.8.33 with SMTP id o1mr10253522laa.56.1423859707307; Fri, 13 Feb 2015 12:35:07 -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 h5csp92519lbj; Fri, 13 Feb 2015 12:35:06 -0800 (PST) X-Received: by 10.140.108.9 with SMTP id i9mr7033582qgf.73.1423859705636; Fri, 13 Feb 2015 12:35:05 -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 ju7si4031686qcb.40.2015.02.13.12.35.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Feb 2015 12:35:05 -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 1YMMx3-00059F-BH; Fri, 13 Feb 2015 20:35:01 +0000 Received: from mail-pd0-f175.google.com ([209.85.192.175]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YMMwx-00058x-Kr for lng-odp@lists.linaro.org; Fri, 13 Feb 2015 20:34:55 +0000 Received: by pdjz10 with SMTP id z10so21638048pdj.0 for ; Fri, 13 Feb 2015 12:34:50 -0800 (PST) X-Received: by 10.66.97.68 with SMTP id dy4mr18263890pab.148.1423859690244; Fri, 13 Feb 2015 12:34:50 -0800 (PST) Received: from localhost.localdomain ([210.177.145.245]) by mx.google.com with ESMTPSA id k3sm7501271pde.79.2015.02.13.12.34.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Feb 2015 12:34:49 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 13 Feb 2015 12:34:49 -0800 Message-Id: <1423859689-9536-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH 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.217.179 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));