From patchwork Fri Dec 9 19:50:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 87552 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp485224qgi; Fri, 9 Dec 2016 11:50:58 -0800 (PST) X-Received: by 10.55.103.80 with SMTP id b77mr70238739qkc.142.1481313058153; Fri, 09 Dec 2016 11:50:58 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o45si20807362qtc.298.2016.12.09.11.50.57; Fri, 09 Dec 2016 11:50:58 -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 C631062C36; Fri, 9 Dec 2016 19:50:57 +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 CC93D62C37; Fri, 9 Dec 2016 19:50: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 D977262C39; Fri, 9 Dec 2016 19:50:28 +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 F149C60D81 for ; Fri, 9 Dec 2016 19:50:26 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id c13so7186047lfg.0 for ; Fri, 09 Dec 2016 11:50:26 -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=2eUcTccTvLBpanUCqJ+AV9NaDgdiBNnrb7ypfKa094c=; b=TQ6CZWzk0A79RynqH3zafsCTBoGs7VHJ8ZZwr4JzuSe6cgaRl7nZbD/WB7KIK6QQ6U 66yuQ6ONrqLGQtacdWq04SUY0i6JCgL8+1U17rYHRBrVhjMMC1lyMvcHD0P0/NGWHSw0 d/RxW8iPE5xshrOHUEADfrTEZwP+dePEOuEJSGsKLVOG5oxbm7r3285mzCLBaOKGgO2y pwYRCKpXO9HoxLUBOfcLK66pJfs4//69Jhrwg3kWD0H3kJm8/Kr3xKXrc1ZO+j5YoHkN V6rUyrkbfX5z0mDRtxncwN3L9yy37mtwSm+LbxoFVyhwTQ09VuTHEAVkoL2+8AAnZoQW kGlw== X-Gm-Message-State: AKaTC01azbvn6T+TkPGMpFWrZOHNfdwAaP4fmUBIMcwKSsm41hOn9tf11dzH16alolPoDvBfYyM= X-Received: by 10.25.209.73 with SMTP id i70mr20890905lfg.24.1481313025378; Fri, 09 Dec 2016 11:50:25 -0800 (PST) Received: from localhost.localdomain (ppp91-77-165-188.pppoe.mtu-net.ru. [91.77.165.188]) by smtp.gmail.com with ESMTPSA id l137sm1065776lfb.7.2016.12.09.11.50.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Dec 2016 11:50:24 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 9 Dec 2016 22:50:02 +0300 Message-Id: <1481313005-9281-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1481313005-9281-1-git-send-email-maxim.uvarov@linaro.org> References: <1481313005-9281-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [API-NEXT PATCH 1/4] linux-gen: pktio ipc: ring changes 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" Make rings visible by other processes. Signed-off-by: Maxim Uvarov --- platform/linux-generic/pktio/ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.1.250.gff4ea60 diff --git a/platform/linux-generic/pktio/ring.c b/platform/linux-generic/pktio/ring.c index cc84e8a..aeda04b 100644 --- a/platform/linux-generic/pktio/ring.c +++ b/platform/linux-generic/pktio/ring.c @@ -160,7 +160,7 @@ _ring_create(const char *name, unsigned count, unsigned flags) odp_shm_t shm; if (flags & _RING_SHM_PROC) - shm_flag = ODP_SHM_PROC; + shm_flag = ODP_SHM_PROC | ODP_SHM_EXPORT; else shm_flag = 0;