From patchwork Fri Oct 28 15:16:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 79937 Delivered-To: patch@linaro.org Received: by 10.80.142.83 with SMTP id 19csp1236331edx; Fri, 28 Oct 2016 07:24:28 -0700 (PDT) X-Received: by 10.233.223.132 with SMTP id t126mr12797922qkf.107.1477664668058; Fri, 28 Oct 2016 07:24:28 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 42si8526841qky.239.2016.10.28.07.24.27; Fri, 28 Oct 2016 07:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8518260D48; Fri, 28 Oct 2016 14:24:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 4997660D30; Fri, 28 Oct 2016 14:18:31 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id CF27961EF8; Fri, 28 Oct 2016 14:18:25 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id 20C3861071 for ; Fri, 28 Oct 2016 14:17:17 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id f134so52979662lfg.2 for ; Fri, 28 Oct 2016 07:17:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Jqx+GTE9ifrU1glwkJ59W8UBcDL0QJzyFc2chCRhU4E=; b=jSIBBoNvpfn7kBG/aKBcrQr+/ZiELJWHbBjH0jXoZDS96SAKTBYdWFUB0veqdpLWKv dqINayHZwKlwQ396aESOIc6V8pc8v9xYmsoQ/e0S0Asg60WSd+cQ9tsJqdbz8wX7MuAF GAPeETjzxiEK6yZv9fkqiADTyibmCaZQlyj25+/RIYCnnvYQv+nyKZYbu/7iihzsSsYG kt9RNO2NRb8eVn4CDJYUmEjslWCefGcnjle0+H8IWiLoFaB65lYiCNxgiJq5Em7MhRLn a0tIyBXwzTtZetnHttaqMid7cb64F54YcpvqkgDPKCgPMZKggQU7coytBVhLkOz3LNWH AF7g== X-Gm-Message-State: ABUngvel/O1B4q/ByNrYG1rWpDEzdmrHFe0T4BMxTShzz6bBszwIHu/RAaTkcwJe4FJHHFipMWM= X-Received: by 10.25.37.20 with SMTP id l20mr10689553lfl.88.1477664235647; Fri, 28 Oct 2016 07:17:15 -0700 (PDT) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-76-66.cust.bredband2.com. [83.233.76.66]) by smtp.gmail.com with ESMTPSA id 92sm2102619lfu.6.2016.10.28.07.17.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Oct 2016 07:17:14 -0700 (PDT) From: Christophe Milard To: petri.savolainen@nokia.com, mike.holmes@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Fri, 28 Oct 2016 17:16:19 +0200 Message-Id: <1477667786-19330-7-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477667786-19330-1-git-send-email-christophe.milard@linaro.org> References: <1477667786-19330-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv5 06/13] linux-gen: shm: new ODP_SHM_SINGLE_VA flag implementation X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" This flag guarentess the unicity the the block address on all ODP threads. The patch just exposes the _ODP_ISHM_SINGLE_VA flag of the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- platform/linux-generic/odp_shared_memory.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c index 9e916e9..2377f16 100644 --- a/platform/linux-generic/odp_shared_memory.c +++ b/platform/linux-generic/odp_shared_memory.c @@ -43,6 +43,7 @@ odp_shm_t odp_shm_reserve(const char *name, uint64_t size, uint64_t align, /* set internal ishm flags according to API flags: */ flgs |= (flags & ODP_SHM_PROC) ? _ODP_ISHM_EXPORT : 0; + flgs |= (flags & ODP_SHM_SINGLE_VA) ? _ODP_ISHM_SINGLE_VA : 0; /* all mem reserved through this interface is requested to be locked: */ flgs |= (flags & _ODP_ISHM_LOCK);