From patchwork Wed Feb 18 20:02:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44796 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6C04B21579 for ; Wed, 18 Feb 2015 20:03:20 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf2778428wiw.0 for ; Wed, 18 Feb 2015 12:03:19 -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=JSpxgRdrhCPjqNPHK1qUpModdFlchpj1FCP/7vApP5Z8NTUVQZ+Gh59qENKbN8xMBu YEmN61qSMdA5ujnaL56+jQUYp0FWnJjo9OlwpIxGZaqrw3slSm4qus+KiStVGUkl/GSl Iiay8Usu9V0b7/7nObNKc46A4MWfgkGSTrH1xESg9I83V5mlcCXFXtydmcs30m2xeh+M x7hlYTKbiI3JRFCiSIau9xH7lPH6Y/j6bbn1/diKUxy5pVz1NQarPsMqjKz/yX7Lyi2T JSrHdH2MGz3MzvB/YgQt36naHbpeoQ4EFtromkcBEG/Dex5O2yI1lZZ9ISHha+omoq/4 Mcww== X-Gm-Message-State: ALoCoQmo9enGS0VxU7G/QmhVIWiR7LnDFXTvsyNWVwvtYzOnEpICWO6+VLWXrLre8RuXI8QJxR+y X-Received: by 10.112.167.98 with SMTP id zn2mr146977lbb.6.1424289799629; Wed, 18 Feb 2015 12:03:19 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.139 with SMTP id dg11ls15187lac.62.gmail; Wed, 18 Feb 2015 12:03:19 -0800 (PST) X-Received: by 10.112.53.137 with SMTP id b9mr1054364lbp.66.1424289799420; Wed, 18 Feb 2015 12:03:19 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id uq7si14067093lbb.173.2015.02.18.12.03.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 12:03:19 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by labhz20 with SMTP id hz20so3549141lab.0 for ; Wed, 18 Feb 2015 12:03:19 -0800 (PST) X-Received: by 10.112.114.230 with SMTP id jj6mr961658lbb.112.1424289798973; Wed, 18 Feb 2015 12:03:18 -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 h5csp52304lbj; Wed, 18 Feb 2015 12:03:18 -0800 (PST) X-Received: by 10.170.84.134 with SMTP id b128mr1103140yka.82.1424289797655; Wed, 18 Feb 2015 12:03:17 -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 o10si22457472qgd.14.2015.02.18.12.03.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Feb 2015 12:03:17 -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 1YOAq2-0004sZ-81; Wed, 18 Feb 2015 20:03:14 +0000 Received: from mail-ob0-f178.google.com ([209.85.214.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOApq-0004mM-0c for lng-odp@lists.linaro.org; Wed, 18 Feb 2015 20:03:02 +0000 Received: by mail-ob0-f178.google.com with SMTP id uz6so6359468obc.9 for ; Wed, 18 Feb 2015 12:02:56 -0800 (PST) X-Received: by 10.202.230.67 with SMTP id d64mr714175oih.8.1424289776740; Wed, 18 Feb 2015 12:02:56 -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 fi4sm13672102obb.16.2015.02.18.12.02.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Feb 2015 12:02:56 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 18 Feb 2015 14:02:44 -0600 Message-Id: <1424289767-16347-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424289767-16347-1-git-send-email-bill.fischofer@linaro.org> References: <1424289767-16347-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 2/5] 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.54 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));