From patchwork Thu Nov 12 12:36:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 56429 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp394996lbb; Thu, 12 Nov 2015 04:46:45 -0800 (PST) X-Received: by 10.140.100.203 with SMTP id s69mr15803880qge.47.1447332404991; Thu, 12 Nov 2015 04:46:44 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v86si11301802qkv.59.2015.11.12.04.46.44; Thu, 12 Nov 2015 04:46:44 -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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 8B51261D79; Thu, 12 Nov 2015 12:46:44 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 7715362003; Thu, 12 Nov 2015 12:38: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 A719561D7E; Thu, 12 Nov 2015 12:38:00 +0000 (UTC) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by lists.linaro.org (Postfix) with ESMTPS id 415E561D7E for ; Thu, 12 Nov 2015 12:36:42 +0000 (UTC) Received: by lbblt2 with SMTP id lt2so34255254lbb.3 for ; Thu, 12 Nov 2015 04:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Cjx6hDxUznkdYhw1XGRfIqtHbg4Mxqn9FAi6Y9xZ7WE=; b=NZY7ug7/U/RQEWSiCNmpmOBU5sj0re43L8vE7SBXcwbD8nFE9Bjv9NJvkLpOwY/L5p PtcCVrP45Gt68twmYwWB13tjdwiSwzPTiG09MSiX5wbaV33qIvHJ9oTtiZKRwbWlzWsk 8KkRwbEgGb44Qgr+PRMlCwz0Upg9hKZQ/K9s2GOFmPqnYmqVczIh/ihm72kECp3g9dfg hB9LaxijW8AFd6GIPqWNbRrmD83DvrSP4zt43dlBK2gAAAu1WltXJzVBMJgtMUd8jFl0 5AvMKLbKZmDq0LvgfOsuEB6OLtahYUpNzdzVkjLtYr96UoJeaPflYM6Kmc9BHgdLz+WE qPDQ== 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=Cjx6hDxUznkdYhw1XGRfIqtHbg4Mxqn9FAi6Y9xZ7WE=; b=LQ/Nwc+wQ690vqhIWz9vVChOLW2oE4abLdWq0pB2J2oVbR2axpjfO4FPLuqLe/nh8E 7FzKhI+FIuPD4rVaAJ9s6GLg2Tzxhvc418ZYRCWC9V/fl/+iPRgYl05tSq92CicTPHw4 ZqMUq7JFz++iLnHccqF2SsZlLSihuK0PzzkwNJNzNuKlxSiqS8YiWMOx9Z19kas9ChSy hnE4RnEKuEAZHrGljQjLq27ewzz5/0jGC5y/h9BoBd4wt9qaobkC2dBtZbxqyi6rxGB4 ++e8OugchfWPgY90X9S3pj7IIVIXpMCyzHRXWhi3xvoOtzxZzy7Ctq/Iqyrh9Zh0sKxY 5sog== X-Gm-Message-State: ALoCoQlRXDMSi2sxx60PTpJpz7ul/lIpRRpNfn9FdUlnya7YcniZdN3U3ZuWN8qbjdCBgLCMnsmM X-Received: by 10.112.151.7 with SMTP id um7mr7285221lbb.16.1447331801156; Thu, 12 Nov 2015 04:36:41 -0800 (PST) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id u12sm2227179lbk.45.2015.11.12.04.36.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 04:36:40 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 12 Nov 2015 15:36:26 +0300 Message-Id: <1447331786-13461-10-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447331786-13461-1-git-send-email-maxim.uvarov@linaro.org> References: <1447331786-13461-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv13 9/9] linux-generic: ipc pktio: add description 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" Add description for ipc pktio. Signed-off-by: Maxim Uvarov --- platform/linux-generic/pktio/ipc.README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 platform/linux-generic/pktio/ipc.README diff --git a/platform/linux-generic/pktio/ipc.README b/platform/linux-generic/pktio/ipc.README new file mode 100644 index 0000000..a76975d --- /dev/null +++ b/platform/linux-generic/pktio/ipc.README @@ -0,0 +1,22 @@ +/* Copyright (c) 2015, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +IPC pktio for linux-generic (over shm) + +* Propose + IPC pktio is used to do fast packet exchange between processes. In current implementation + pools are shared between processes and odp ring is used for sending pointers for packets + as offset in the pool decoded in odp_packet_t bits. + +* Usage + Please refer to current examples. In general in both processes you need initialization + with same pool and pktio name parameters. + +* Limitations + - for now only 2 processes supported. (will updated in future). + - both processes has to be on same node and able to mmap() the same shared memory. + - fake mac address (same as for loop). + - mtu is only limited by pool settings.