From patchwork Thu Feb 19 13:38:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44837 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5EECA21572 for ; Thu, 19 Feb 2015 13:38:39 +0000 (UTC) Received: by wesq59 with SMTP id q59sf5097008wes.2 for ; Thu, 19 Feb 2015 05:38:38 -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=DTuKseoqn+KkwOfEs9s6sDxfXNcaGVLzlnTr1J13ygqRZVJYlyRwxLDAVxEbg+thIv vTJxZEjXCkE7IB2nP+DUOn9Ps9rLa61lrKIxuDc0s7de3mnpGlw/6OhqrBrVNCJLXRh3 gI4PYb/l5EeqyDfehTWqSMXVODmh8F5ZhuE6VG4BqasdcK/U8f/MqKTRr1ArFNEMW7aH m2CagLMio0vRzRTVQI59Ezaub/ToRSzv3JQf0ztTI86WwaZ8lAEo/5afJp5zKkmCu3R3 9YJo+SwazbcZ2IXbxZYkcQoHEVjPscklK7uOE5F5TKLaJ66elI+d+9MrxCfXGtWUOAUT RGrQ== X-Gm-Message-State: ALoCoQkrhZwZVKQ2Bn4IljWilDeX/fXI8AKm8nH7UavReNloHNpecODKZtD9RE6K/ijtL+dO7TaG X-Received: by 10.152.28.137 with SMTP id b9mr589567lah.8.1424353118552; Thu, 19 Feb 2015 05:38:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.71 with SMTP id i7ls145909lai.44.gmail; Thu, 19 Feb 2015 05:38:38 -0800 (PST) X-Received: by 10.152.5.6 with SMTP id o6mr3983681lao.59.1424353118291; Thu, 19 Feb 2015 05:38:38 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id n3si14772574lah.45.2015.02.19.05.38.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 05:38:38 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labms9 with SMTP id ms9so7587509lab.10 for ; Thu, 19 Feb 2015 05:38:38 -0800 (PST) X-Received: by 10.152.22.67 with SMTP id b3mr3783609laf.117.1424353118199; Thu, 19 Feb 2015 05:38:38 -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 h5csp497156lbj; Thu, 19 Feb 2015 05:38:37 -0800 (PST) X-Received: by 10.140.104.228 with SMTP id a91mr11880695qgf.46.1424353116835; Thu, 19 Feb 2015 05:38:36 -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 f110si7569581qgf.106.2015.02.19.05.38.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 05:38:36 -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 1YORJJ-0003N9-C3; Thu, 19 Feb 2015 13:38:33 +0000 Received: from mail-ob0-f172.google.com ([209.85.214.172]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YORJ8-0003MZ-KE for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 13:38:22 +0000 Received: by mail-ob0-f172.google.com with SMTP id nt9so14335841obb.3 for ; Thu, 19 Feb 2015 05:38:17 -0800 (PST) X-Received: by 10.60.48.98 with SMTP id k2mr2929749oen.49.1424353097323; Thu, 19 Feb 2015 05:38:17 -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 r83sm14906414oif.28.2015.02.19.05.38.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Feb 2015 05:38:16 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 19 Feb 2015 07:38:04 -0600 Message-Id: <1424353087-14302-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424353087-14302-1-git-send-email-bill.fischofer@linaro.org> References: <1424353087-14302-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 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.42 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));