From patchwork Thu Aug 7 12:48:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 35040 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9A3021137 for ; Thu, 7 Aug 2014 12:48:47 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id w10sf23565247pde.7 for ; Thu, 07 Aug 2014 05:48:47 -0700 (PDT) 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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=nckqocvwSnVweCV/EZHWwV9G0r5+u34EcRftNS/6Qg4=; b=PdRj6qjUQrIrsz4ygdg8pMp8DOrsqtcUMdyYgNxJrOLkki/JIRrdsBxUTfq90pmUI9 BGSyaG38JTk4XFvyMCVy4BGJl9he0rqVvh046kI22wDA8ycbGZ5F4UcM7S1LaPdkMkBw Hek8KTEKMMvs/ddmgDJQNFjyrYnvZUqWBTVNKSqdHhZBVB/uqv3nwLN8WKiHS5CtxM/z zNuE8yme/OB6K1tqzaUciKL8kqvJaD8Uz8fuQYn0sSHqrwAWT7//0h64ee4uIYGsyGwJ LuZwVpUVespPhphe2ViYfFicSVjycin2ERXCkJzZRttWItksi6U9ckbA+eH5d2b2LpCA 3WRA== X-Gm-Message-State: ALoCoQkYcbPHqOlac+D3n/kWcCb2jpgioF2NZPaIwBz+3mqCF/nz0uYgWAjZOM/1KwZY8EGOP/88 X-Received: by 10.66.158.193 with SMTP id ww1mr9087405pab.12.1407415727188; Thu, 07 Aug 2014 05:48:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.240 with SMTP id n103ls128861qgd.13.gmail; Thu, 07 Aug 2014 05:48:47 -0700 (PDT) X-Received: by 10.52.9.35 with SMTP id w3mr1840813vda.12.1407415727063; Thu, 07 Aug 2014 05:48:47 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id sb6si1716338veb.66.2014.08.07.05.48.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 05:48:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so6133129vcb.11 for ; Thu, 07 Aug 2014 05:48:47 -0700 (PDT) X-Received: by 10.52.141.76 with SMTP id rm12mr263653vdb.71.1407415726993; Thu, 07 Aug 2014 05:48:46 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp26992vcb; Thu, 7 Aug 2014 05:48:46 -0700 (PDT) X-Received: by 10.224.64.201 with SMTP id f9mr27677618qai.64.1407415726283; Thu, 07 Aug 2014 05:48:46 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id h10si6058224qch.15.2014.08.07.05.48.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Aug 2014 05:48:46 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XFN7d-0002GS-4b; Thu, 07 Aug 2014 12:48:45 +0000 Received: from mail-la0-f41.google.com ([209.85.215.41]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XFN7I-0002Ev-Nj for lng-odp@lists.linaro.org; Thu, 07 Aug 2014 12:48:24 +0000 Received: by mail-la0-f41.google.com with SMTP id s18so3503410lam.28 for ; Thu, 07 Aug 2014 05:48:18 -0700 (PDT) X-Received: by 10.152.115.242 with SMTP id jr18mr3896577lab.26.1407415698731; Thu, 07 Aug 2014 05:48:18 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-29-79.pppoe.mtu-net.ru. [91.76.29.79]) by mx.google.com with ESMTPSA id q8sm2032933laj.33.2014.08.07.05.48.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 05:48:18 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 7 Aug 2014 16:48:04 +0400 Message-Id: <1407415686-352-5-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1407415686-352-1-git-send-email-maxim.uvarov@linaro.org> References: <1407415686-352-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [IPC PATCH DISCUSSION 4/6] linux-dpdk: pass shm arg to odp_shm_reserve() 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: maxim.uvarov@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.220.180 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: Maxim Uvarov --- platform/linux-dpdk/odp_buffer_pool.c | 3 ++- platform/linux-dpdk/odp_packet_io.c | 3 ++- platform/linux-dpdk/odp_queue.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platform/linux-dpdk/odp_buffer_pool.c b/platform/linux-dpdk/odp_buffer_pool.c index de90275..6fbe7c7 100644 --- a/platform/linux-dpdk/odp_buffer_pool.c +++ b/platform/linux-dpdk/odp_buffer_pool.c @@ -72,7 +72,8 @@ int odp_buffer_pool_init_global(void) pool_tbl = odp_shm_reserve("odp_buffer_pools", sizeof(pool_table_t), - sizeof(pool_entry_t)); + sizeof(pool_entry_t), + ODP_SHM_THREAD); if (pool_tbl == NULL) return -1; diff --git a/platform/linux-dpdk/odp_packet_io.c b/platform/linux-dpdk/odp_packet_io.c index d8d127f..f82b277 100644 --- a/platform/linux-dpdk/odp_packet_io.c +++ b/platform/linux-dpdk/odp_packet_io.c @@ -55,7 +55,8 @@ int odp_pktio_init_global(void) pktio_tbl = odp_shm_reserve("odp_pktio_entries", sizeof(pktio_table_t), - sizeof(pktio_entry_t)); + sizeof(pktio_entry_t), + ODP_SHM_THREAD); if (pktio_tbl == NULL) return -1; diff --git a/platform/linux-dpdk/odp_queue.c b/platform/linux-dpdk/odp_queue.c index 554b8ea..d62b3e3 100644 --- a/platform/linux-dpdk/odp_queue.c +++ b/platform/linux-dpdk/odp_queue.c @@ -98,7 +98,8 @@ int odp_queue_init_global(void) queue_tbl = odp_shm_reserve("odp_queues", sizeof(queue_table_t), - sizeof(queue_entry_t)); + sizeof(queue_entry_t), + ODP_SHM_THREAD); if (queue_tbl == NULL) return -1;