From patchwork Fri Aug 8 06:23:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 35099 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 61F7621137 for ; Fri, 8 Aug 2014 06:23:58 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id w10sf30486568pde.3 for ; Thu, 07 Aug 2014 23:23:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=UFfOs1QmQXBbHTarmWR4cNknlyK079lWWmEgy+0akrM=; b=anl1MvVklcIIrIvgu6BXu8M7swC1yazaIXqBnKNmOoiEikmfhzhOKXcjz3MT/P6gCH JCHqJn3OoNZawVMXFdtW9DuB5ZQq5/5vSor++2VH5A7C6PfzSD0y1iS2rvnwTX1yH4FM U3GdgjUsShUmQfrfhB+DRCKNOQ+O+vU5IlHlhEnXaRjmSS4CMyyb2odjg4RdcOrxPZFK n3H+GpPNsRbjnBHoZYaFkI+EYYd8wjrS7HvsbM5YpVE7wrlBnY2XqiCZD4s3gssMTeB9 8oUvWVrTE6J8QZUXxqPCAVhd/1I7KdxiDY+oC7x19PVnZkG2bIew7bLlY/8o6JfvEUD7 ecHg== X-Gm-Message-State: ALoCoQmmidPyzUkZKSUVpCJue5jNMn/3tnUz0J2tlF3g6QOGOndHMfgnXDj6UvZZoASWkFXZJtI6 X-Received: by 10.66.141.70 with SMTP id rm6mr837493pab.23.1407479037659; Thu, 07 Aug 2014 23:23:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.48 with SMTP id m45ls423303qgd.18.gmail; Thu, 07 Aug 2014 23:23:57 -0700 (PDT) X-Received: by 10.221.44.69 with SMTP id uf5mr20414231vcb.4.1407479037527; Thu, 07 Aug 2014 23:23:57 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id gm7si2584891vec.53.2014.08.07.23.23.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 23:23:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so7632535vcb.4 for ; Thu, 07 Aug 2014 23:23:57 -0700 (PDT) X-Received: by 10.220.79.68 with SMTP id o4mr20350250vck.38.1407479037418; Thu, 07 Aug 2014 23:23:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp95640vcb; Thu, 7 Aug 2014 23:23:56 -0700 (PDT) X-Received: by 10.140.32.134 with SMTP id h6mr20308804qgh.49.1407479036791; Thu, 07 Aug 2014 23:23:56 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id j8si9025931qcd.48.2014.08.07.23.23.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Aug 2014 23:23:56 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XFdam-0003WE-4L; Fri, 08 Aug 2014 06:23:56 +0000 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XFdah-0003W9-Fk for lng-odp@lists.linaro.org; Fri, 08 Aug 2014 06:23:51 +0000 X-IronPort-AV: E=Sophos;i="5.01,823,1400050800"; d="scan'208";a="41904680" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 07 Aug 2014 23:35:49 -0700 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 7 Aug 2014 23:23:45 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.174.1; Thu, 7 Aug 2014 23:23:45 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id E283E9F9F9; Thu, 7 Aug 2014 23:23:44 -0700 (PDT) From: To: Date: Fri, 8 Aug 2014 11:53:29 +0530 Message-ID: <1407479009-11982-1-git-send-email-venkatesh.vivekanandan@linaro.org> X-Mailer: git-send-email 1.8.1.2 MIME-Version: 1.0 X-Topics: patch Subject: [lng-odp] [PATCHv2] Update ODP-DPDK README X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: venkatesh.vivekanandan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Venkatesh Vivekanandan - export RTE_SDK and RTE_TARGET before compiling ODP - Added a link to DPDK's how to compile - new commands for odp_l2fwd and pktio - cleanup Signed-off-by: Venkatesh Vivekanandan --- platform/linux-dpdk/README | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 14ad4e8..ac0c4b8 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -16,22 +16,29 @@ $ git clone http://92.243.14.124/git/dpdk ./ # we support only 1.6.0r2 of dpdk for now $ git tag -l -- will list all the tags available $ git checkout -b 1.6.0 tags/v1.6.0r2 -# Please refer dpdk.org website for more details on how to build dpdk. +# Please refer to http://dpdk.org/doc/intel/dpdk-start-linux-1.7.0.pdf for +# more details on how to build dpdk. This might change in future, so please +# watchout for dpdk.org website for latest docs. # Best effort is done to provide some help on dpdk cmds below for Ubuntu, # where it was compiled and tested. # Please refer "How to setup and compile DPDK" section in this document # To compile ODP with linux-dpdk + +$ export RTE_SDK= +# For example +$ export RTE_SDK=/root/dpdk +$ export RTE_TARGET=x86_64-default-linuxapp-gcc +# RTE_TARGET is the configuration used while building DPDK + $ cd $ ./bootstrap -$ ./configure --with-platform=linux-dpdk --with-sdk-install-path= -# For example -$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=/root/dpdk/build +$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=$RTE_SDK/$RTE_TARGET $ make -# Commands to test -l2fwding app - sudo ./test/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2 -loopback app - sudo ./test/packet/odp_pktio -i 0,1 -m 0 -c 2 +# App commands to test +l2fwding app - sudo ./example/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2 +loopback app - sudo ./example/packet/odp_pktio -i 0,1 -m 0 -c 2 -i 0,1 - interface number -m 0 - burst mode @@ -42,8 +49,11 @@ How to setup and compile DPDK: $ cd # This has to be done only once. -# Following command will generate build dir as ./build in -$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC" +$ make config T=x86_64-default-linuxapp-gcc O=x86_64-default-linuxapp-gcc +# set CONFIG_RTE_BUILD_COMBINE_LIBS=y in .config file +# Note: if non-intel SFP's are used in IXGBE, then set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y in .config file +$ make install T=x86_64-default-linuxapp-gcc EXTRA_CFLAGS="-fPIC" + # If "conflicting types for skb_set_hash" error happens during dpdk # build, then please knock-off skb_set_hash function from kcompat.h as