From patchwork Thu Nov 24 08:24:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 83808 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp9417obn; Wed, 23 Nov 2016 23:32:31 -0800 (PST) X-Received: by 10.237.53.56 with SMTP id a53mr664102qte.85.1479972751185; Wed, 23 Nov 2016 23:32:31 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 188si21700534qkg.323.2016.11.23.23.32.30; Wed, 23 Nov 2016 23:32:31 -0800 (PST) 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 D015D62DBE; Thu, 24 Nov 2016 07:32:30 +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 74AD162E12; Thu, 24 Nov 2016 07:26:16 +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 9DC8162E07; Thu, 24 Nov 2016 07:26:08 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 4359862DC6 for ; Thu, 24 Nov 2016 07:25:04 +0000 (UTC) Received: by mail-lf0-f45.google.com with SMTP id b14so21585233lfg.2 for ; Wed, 23 Nov 2016 23:25:04 -0800 (PST) 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=Lg+3zdz40t0VLZI/I2AygYY0E59bBiEU2XQ4CWWZdlWpi+94oEvkQfjnDl1Vivm4c6 AvVlhg0Fg1op+11uZXR1naUBSdFtgr34Wpx+1l/MsKhNFJcom2SZL0w6cVBUnKTT4Sd9 rh/obITDXu2gCkGzzOUE0+AVDFdYYGndJH7Et9+rQFK2qnwIK7nZNEgph2vFFNn9ujGG S1O5NV0DjWDHEa7367f8NvwvhCJlEcBaMk8sgxlIDlXFF1kohlbte3EZ0eUsPcDQiaLv wL+eMzBBwah7lSAeQRe+7cWzJlmMuBwitArWE7I2bHGVozr3gocvBEKqWeX5jFJgsL2S F1VQ== X-Gm-Message-State: AKaTC03OxIQUei49hZSw/uJ4Td+TaIX1TLXG1ZqFYGxJ3jrU9GhPKVXm3nND8rhtmu44ivUozvQ= X-Received: by 10.25.32.19 with SMTP id g19mr391332lfg.162.1479972303058; Wed, 23 Nov 2016 23:25:03 -0800 (PST) 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 37sm7794110lfw.31.2016.11.23.23.25.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 23:25:02 -0800 (PST) From: Christophe Milard To: maxim.uvarov@linaro.com, mike.holmes@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Thu, 24 Nov 2016 09:24:25 +0100 Message-Id: <1479975872-4945-9-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479975872-4945-1-git-send-email-christophe.milard@linaro.org> References: <1479975872-4945-1-git-send-email-christophe.milard@linaro.org> Subject: [lng-odp] [API-NEXT PATCHv8 08/15] 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);