From patchwork Mon May 30 13:37:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 68844 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1411716qge; Mon, 30 May 2016 06:37:31 -0700 (PDT) X-Received: by 10.140.129.82 with SMTP id 79mr26811338qhb.28.1464615451280; Mon, 30 May 2016 06:37:31 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x3si17954477qkx.216.2016.05.30.06.37.30; Mon, 30 May 2016 06:37:31 -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 A6C41617CA; Mon, 30 May 2016 13:37: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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED 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 77A0C61736; Mon, 30 May 2016 13:37:26 +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 E4BAC617BB; Mon, 30 May 2016 13:37:24 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id E181061678 for ; Mon, 30 May 2016 13:37:23 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id w16so60256422lfd.2 for ; Mon, 30 May 2016 06:37:23 -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; bh=N4BIsBQrGDglthS6swlmro98byfe//AkjjwnO5lIJsg=; b=H+d9JAu9g5vR2vzZGth2CVUddUxq7WdTciMezWwyw+VnhoWMVRIdv0JCG2GN83I3ZQ Lur03Q+k9/VoiqxlEHAt7eNCD5xrKtThT/4C0IuQj5//hZTy8p9W7Z0cvJAdWUuHkYjq tP/YiZWwlgzQoRCfLi0L1krbrhm89sQ5tKgnbo6SbWyStxZlWEy5CaSR9VEzRUWAXdQS Eu5mAJuEsZwRfyE1zSOoupVh5LxgPn85uPvFYSW52ygJH3zkcpX5YVRrNphWEhH+FhZq ZdnFBDgqOoINZlOP5ymdww01ZrEj17Js4y/eEMh0WIvVSHbh8mhqkOh4U9cwGjkW/BsL w5pA== X-Gm-Message-State: ALyK8tJ3/Ngu5gLSw1bnfcrAAQcv/Kmj/asGKbnDNsjO1CHSTnpXl9ETSJjskGrivCApx3HpJbY= X-Received: by 10.25.8.7 with SMTP id 7mr8935843lfi.201.1464615442197; Mon, 30 May 2016 06:37:22 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-173-31.pppoe.mtu-net.ru. [91.77.173.31]) by smtp.gmail.com with ESMTPSA id ml8sm224923lbc.24.2016.05.30.06.37.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 May 2016 06:37:21 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 30 May 2016 16:37:14 +0300 Message-Id: <1464615434-29333-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Cc: Petri Savolainen Subject: [lng-odp] [PATCH] linux-generic: sched: do not allocate sheduler info in shm area 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Patch: 637a482 linux-generic: schedule: clean interface towards pktio Broke ipc pktio work. Restore this chunk back. Idea here the following that 2 processes roll in the same name space instance and should not overlap each other shared memory files. There is no reason in putting sheduler internal structures to shared memory. Signed-off-by: Maxim Uvarov Cc: Petri Savolainen --- platform/linux-generic/odp_schedule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 1adc545..78fe9a7 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -22,6 +22,7 @@ #include #include +#include odp_thrmask_t sched_mask_all; @@ -165,7 +166,7 @@ int odp_schedule_init_global(void) params.buf.num = NUM_SCHED_CMD; params.type = ODP_POOL_BUFFER; - pool = odp_pool_create("odp_sched_pool", ¶ms); + pool = _pool_create("odp_sched_pool", ¶ms, 0); if (pool == ODP_POOL_INVALID) { ODP_ERR("Schedule init: Pool create failed.\n"); return -1;