From patchwork Mon Oct 31 08:52:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 80131 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2313244qge; Mon, 31 Oct 2016 00:59:51 -0700 (PDT) X-Received: by 10.55.15.95 with SMTP id z92mr21776342qkg.273.1477900791819; Mon, 31 Oct 2016 00:59:51 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b124si7334317qkg.291.2016.10.31.00.59.51; Mon, 31 Oct 2016 00:59:51 -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 5F7876098F; Mon, 31 Oct 2016 07:59:51 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 8FA0D608B5; Mon, 31 Oct 2016 07:54:28 +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 B93B361728; Mon, 31 Oct 2016 07:54:06 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id 8B1CE60889 for ; Mon, 31 Oct 2016 07:53:19 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id m193so22277714lfm.0 for ; Mon, 31 Oct 2016 00:53:19 -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=c0kYjyZ8CVaXraGM0oVmGBWQiDuKkURSz8SKVnsnVmtK5Yn/9fX/JOcE4T+ryY2Snq A5Hbq6XHTi2LgNrvqvNllalcZmrZICIwSNffn7354ZHy0RscZYxy+VQ0ecc2dcyJ2WJS bjPW+LmHxaYnJKIRwJE/+P4BGII3Mo1VTsyrxAa83qONf1vkpi6XTzOSuUKqDboNNUH/ PvOS6hTpSqJdqI/ENQ/IZXSE+hqg/q1mLs1tt1Wukj7bIFlGA6y+f+M7kRxWRjSx+zNg J2xvTJFncG/QuIwnimUn4fy1UGyc32DHZxPv4jgStmY7qOTez1Hn4XZ/HinuhGoc48OW TUDg== X-Gm-Message-State: ABUngvdBteI10WQ5tYDy1gWakYqlEuHGX0z/IRHqScLOBrS9bGFF+eOGh7o0s8ZUlkYc85umWM0= X-Received: by 10.25.41.203 with SMTP id p194mr799582lfp.108.1477900398359; Mon, 31 Oct 2016 00:53:18 -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 e15sm2651625lfg.32.2016.10.31.00.53.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Oct 2016 00:53:17 -0700 (PDT) From: Christophe Milard To: mike.holmes@linaro.org, bill.fischofer@linaro.org, lng-odp@lists.linaro.org Date: Mon, 31 Oct 2016 09:52:18 +0100 Message-Id: <1477903945-39693-7-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477903945-39693-1-git-send-email-christophe.milard@linaro.org> References: <1477903945-39693-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv6 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);