From patchwork Wed Sep 17 23:05:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 37553 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F2DE22054D for ; Wed, 17 Sep 2014 23:06:43 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id n12sf24818wgh.9 for ; Wed, 17 Sep 2014 16:06:43 -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=lKdS7RIkNE/Aqgwv1yeuMTeS09Fnh8kOYcBaFf+r6VQ=; b=UdKXl6QGQfWMlMAuqdpGNz18Kj1Nmvx+YxE9gqsxm5DZz4IMuQj1n5hsyr2Q5ZXe3L JoRwo8e/JJgjWiRcEEaSEesLXLaacpTD2PU/MtaNFeGL1Um7OH5NKHe157AZ3yoho/2C TlOkVtc5NqpeFiwV3XpdEKNco1gi55/B5R7ISGxToNNJ4E1hku6jKKzliooO6+riytY1 LZsjkNURVurlg7gKzU9u+4W1cvx/fRf0rOAb/UIfaF4+ax5CmxrNw3tLns14so0U3Jal XzgDjgeg3TSADcvp2gGb0rgprP5uaUDj9TBMbNypD0blSLhm3aJ7kMct8Vd/FlpgEVvu BNrQ== X-Gm-Message-State: ALoCoQmhYh5sK3y5uZvdg23Gkp3iysU5/zvl7vBkylgCN0VsTGuRBNg0LNW8ruQ7jWuJ65Hw7g6W X-Received: by 10.112.48.41 with SMTP id i9mr1055lbn.22.1410995203070; Wed, 17 Sep 2014 16:06:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.12 with SMTP id ci12ls147534lad.48.gmail; Wed, 17 Sep 2014 16:06:42 -0700 (PDT) X-Received: by 10.152.18.130 with SMTP id w2mr622490lad.89.1410995202925; Wed, 17 Sep 2014 16:06:42 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx.google.com with ESMTPS id k3si17376881lbd.26.2014.09.17.16.06.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 16:06:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id w7so63908lbi.17 for ; Wed, 17 Sep 2014 16:06:42 -0700 (PDT) X-Received: by 10.152.163.66 with SMTP id yg2mr832444lab.38.1410995202784; Wed, 17 Sep 2014 16:06:42 -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.112.130.169 with SMTP id of9csp668023lbb; Wed, 17 Sep 2014 16:06:41 -0700 (PDT) X-Received: by 10.224.8.131 with SMTP id h3mr896816qah.35.1410995200277; Wed, 17 Sep 2014 16:06:40 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id gq6si24188596qcb.14.2014.09.17.16.06.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 17 Sep 2014 16:06:40 -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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XUOJ4-0005gn-R5; Wed, 17 Sep 2014 23:06:38 +0000 Received: from mail-pd0-f172.google.com ([209.85.192.172]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XUOIk-0005fR-7d for lng-odp@lists.linaro.org; Wed, 17 Sep 2014 23:06:18 +0000 Received: by mail-pd0-f172.google.com with SMTP id v10so73696pde.31 for ; Wed, 17 Sep 2014 16:06:12 -0700 (PDT) X-Received: by 10.70.40.229 with SMTP id a5mr527081pdl.17.1410995172688; Wed, 17 Sep 2014 16:06:12 -0700 (PDT) Received: from localhost.localdomain (70-35-38-154.static.wiline.com. [70.35.38.154]) by mx.google.com with ESMTPSA id f1sm17894333pdn.62.2014.09.17.16.06.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 16:06:11 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 18 Sep 2014 03:05:56 +0400 Message-Id: <1410995157-6905-4-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1410995157-6905-1-git-send-email-maxim.uvarov@linaro.org> References: <1410995157-6905-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 3/4] dpdk: add shared memory reserve flag 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.217.172 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 dpdk shares same headers with linux-generic for odp_shm_reserve(), add also flag to function calls. Signed-off-by: Maxim Uvarov --- platform/linux-dpdk/odp_buffer_pool.c | 3 ++- platform/linux-dpdk/odp_packet_io.c | 2 +- platform/linux-dpdk/odp_queue.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/platform/linux-dpdk/odp_buffer_pool.c b/platform/linux-dpdk/odp_buffer_pool.c index 805ce68..894f8dd 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), + 0); 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 3124175..ea06520 100644 --- a/platform/linux-dpdk/odp_packet_io.c +++ b/platform/linux-dpdk/odp_packet_io.c @@ -55,7 +55,7 @@ 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), 0); if (pktio_tbl == NULL) return -1; diff --git a/platform/linux-dpdk/odp_queue.c b/platform/linux-dpdk/odp_queue.c index 554b8ea..5d4522a 100644 --- a/platform/linux-dpdk/odp_queue.c +++ b/platform/linux-dpdk/odp_queue.c @@ -98,7 +98,7 @@ 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), 0); if (queue_tbl == NULL) return -1;