From patchwork Thu Mar 24 10:31:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 64297 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp547408lbc; Thu, 24 Mar 2016 03:33:00 -0700 (PDT) X-Received: by 10.55.79.79 with SMTP id d76mr9315396qkb.76.1458815580585; Thu, 24 Mar 2016 03:33:00 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g131si5958613qhd.79.2016.03.24.03.33.00; Thu, 24 Mar 2016 03:33:00 -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 Received: by lists.linaro.org (Postfix, from userid 109) id 3DC2D61893; Thu, 24 Mar 2016 10:33:00 +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 05B39618D0; Thu, 24 Mar 2016 10:32:07 +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 7705561828; Thu, 24 Mar 2016 10:31:38 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id C30A061893 for ; Thu, 24 Mar 2016 10:31:33 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id o73so30945773lfe.0 for ; Thu, 24 Mar 2016 03:31:33 -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=M6muqfWerQcrtICx6QSoxUWVz0YPI45iCkLL2rUI86Q=; b=CcBaWawFGt5i+iQrxHQK1EmMh+lY1JdrcB0oE7v8WrGDiD+UNX9J/+lXIS3y5SJ673 BSDZWEh/jfnNbsNWrXz1H3UcRZP5jt+Du/Bd8fCNxtCZB6S9j0EMS+5fwM1p0CsYbkmI UJ9Ascn+IS5INC95WxxW3XvBdc6A6AL1G35XeohlFyG5QkLO4qWzJHexrTgEJUdR4VhU qhK9SKAVg02/YGe5x7jystxm3rMwCBKjjS1V2eIvDrIKt2IWUdEiTc8iryeyKv3QI1eY K84JbaDbtPQa8czaDgcFeJc4CWGeBVHhpC/zAhIgC7y/Gyo1MtLyXs2KKV+cSc7T5GKt 2V/Q== X-Gm-Message-State: AD7BkJK3NGeQgyxnSA1jRV4YlnXNMS4GnU6Qk7L71Yx0T6OjGowrzJIyYdPFgIZ9s8kDUGRBt7k= X-Received: by 10.25.16.198 with SMTP id 67mr3086943lfq.53.1458815492588; Thu, 24 Mar 2016 03:31:32 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-172-79.pppoe.mtu-net.ru. [91.77.172.79]) by smtp.gmail.com with ESMTPSA id i9sm1064263lfe.31.2016.03.24.03.31.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Mar 2016 03:31:31 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 24 Mar 2016 13:31:27 +0300 Message-Id: <1458815487-8076-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1458815487-8076-1-git-send-email-maxim.uvarov@linaro.org> References: <1458815487-8076-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 2/2] DEPENDENCIES: take a note about scripts/build-pktio-dpdk 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" Signed-off-by: Maxim Uvarov --- DEPENDENCIES | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index 9fee177..e2eae38 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -76,7 +76,7 @@ Prerequisites for building the OpenDataPlane (ODP) API --with-openssl-path=/home/user/src/install-openssl-aarch64 $ make -3.3 Netmap (optional) +3.3 Netmap packet I/O support (optional) Netmap accelerated ODP packet I/O. @@ -155,29 +155,19 @@ Prerequisites for building the OpenDataPlane (ODP) API netmap kernel module is loaded. If socket I/O is desired instead, it can be activated by setting the environment variable ODP_PKTIO_DISABLE_NETMAP. -3.4 DPDK (optional) +3.4 DPDK packet I/O support (optional) Use DPDK for ODP packet I/O. -3.4.1 Building DPDK + Note: only packet I/O is accelerated with DPDK. Use + https://git.linaro.org/lng/odp-dpdk.git + for fully accelerated odp dpdk platform. + +3.4.1 Building DPDK and ODP with DPDK pktio support DPDK packet I/O has been tested to work with DPDK v2.2.0. - # Checkout DPDK code - $ git clone http://dpdk.org/git/dpdk - $ cd dpdk - $ git checkout v2.2.0 - - # Make and edit DPDK configuration - $ make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc - $ cd x86_64-native-linuxapp-gcc - $ sed -ri 's,(CONFIG_RTE_BUILD_COMBINE_LIBS=).*,\1y,' .config - # To use I/O without DPDK supported NIC's enable pcap pmd: - $ sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config - $ cd .. - - # Build DPDK - $ make install T=x86_64-native-linuxapp-gcc EXTRA_CFLAGS="-fPIC" + Follow steps in ./scripts/build-pktio-dpdk 3.4.2 Setup system @@ -191,14 +181,7 @@ Prerequisites for building the OpenDataPlane (ODP) API 512 x 2MB hugepages. All this can be done with the DPDK setup script (/tools/setup.sh). -3.4.3 Building ODP - - $ cd - $ ./bootstrap - $ ./configure --with-dpdk-path=/x86_64-native-linuxapp-gcc - $ make - -3.4.4 Running ODP with DPDK I/O +3.4.3 Running ODP with DPDK pktio ODP applications will try use DPDK for packet I/O by default. If some other I/O type is desired instead, DPDK I/O can be disabled by setting the