From patchwork Mon Jul 18 15:26:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 72209 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp173287qga; Mon, 18 Jul 2016 08:27:06 -0700 (PDT) X-Received: by 10.36.69.205 with SMTP id c74mr50477452itd.47.1468855626326; Mon, 18 Jul 2016 08:27:06 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n128si9951607itn.9.2016.07.18.08.27.05; Mon, 18 Jul 2016 08:27:06 -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 68870687EA; Mon, 18 Jul 2016 15:27:05 +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 8F4B768791; Mon, 18 Jul 2016 15:27:01 +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 23D4668796; Mon, 18 Jul 2016 15:26:52 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id DA4576807A for ; Mon, 18 Jul 2016 15:26:50 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id b199so134608261lfe.0 for ; Mon, 18 Jul 2016 08:26:50 -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=NInPlbI3CvO9ceiYSUTecfh0sN/Qfvgd/OMHwe4dROM=; b=AzeXfLZA9nLR5sqtrP41YRoN2sgLk6kUdEH6YxBFRIFgwPgM6QAQnanZcRXbuwD5vM e8+u39jpWY/y24HrhmrqPp/vRsJgsXk6s9lAntZeyDQbi/PchLgpPzXpd7bvI2Q6bgXX ISrz+9rhsKx/zIyxvVZHmWVMTyKMEg03QXjP4v4MNgD0PT3eTtAzGaamP2a0uJHA9Zz3 rtbpgPYjwFXCeAr995q/gN/VGxRFcGzlD7mIjijYmZNcC18x0gok2VzxT+pxb4XgXbva KKqzJyaaphVUOaL6ZH9P2NyTQ6GyS9Ndz25lLKu8haez32RDZUmJOlA1MMi1qKrpEDoj MDYg== X-Gm-Message-State: ALyK8tJZBWGONe30eSkx6Pnbq3C8fKL0HoRcsCNRBJ49EfSMrhzsCAXfJGFbzrcudpvU2bZ0I9s= X-Received: by 10.25.35.19 with SMTP id j19mr13823401lfj.106.1468855609668; Mon, 18 Jul 2016 08:26:49 -0700 (PDT) Received: from localhost.localdomain ([83.220.239.97]) by smtp.gmail.com with ESMTPSA id 29sm4527478lfu.43.2016.07.18.08.26.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jul 2016 08:26:48 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 18 Jul 2016 18:26:43 +0300 Message-Id: <1468855603-10352-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCH] linux-gen: scope ipc shared memory for packet pools only 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" Instead of placing all allocation to shared memory, place only packets pool. Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.1.250.gff4ea60 Reviewed-by: Mike Holmes diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index ec6d86a..a9c64f9 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -462,7 +462,8 @@ odp_pool_t odp_pool_create(const char *name, odp_pool_param_t *params) { #ifdef _ODP_PKTIO_IPC - return _pool_create(name, params, ODP_SHM_PROC); + if (params && (params->type == ODP_POOL_PACKET)) + return _pool_create(name, params, ODP_SHM_PROC); #else return _pool_create(name, params, 0); #endif