From patchwork Fri Aug 8 06:15:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 35098 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66AC521137 for ; Fri, 8 Aug 2014 06:17:14 +0000 (UTC) Received: by mail-oi0-f72.google.com with SMTP id a141sf18339282oig.11 for ; Thu, 07 Aug 2014 23:17:14 -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=FXiSrlj/7MI4rguJbqgjYll36dcfvjaCVJpsBnedV4CQocHxhR2xbs7hLttCN/HTu3 lSRP74w2ykV7eAA5mtGB+aayq1mb6hPvf0QAMm/3/ZR5pMqz0pQPW5a84U+fY5Y8TDVI d4nGzkOWqmke28ljgEFUX4Cp6EqGmDYOqKh1h7OZl3yes9TR3Z8xoxaufrLiz0lkwiCw LSDX8AkxNYh63IacBgkTS+KEswxafvKPU3Oqcy4HOiXs94Vu2mTnl0E8chaXAZeFinWe beK7TMXjKLmgqLkloAmIo4/sXK3VuBTsoN74EtYGFnyaxPZbtpYlP5XEAH/qQ+vg2S6L dpuA== X-Gm-Message-State: ALoCoQlqDWsIJb9vHNouXgReFs4XvJPzxys9AdXLvlvsj2peDR2qvfeRcmvZJe9vWlFBzWteFYTO X-Received: by 10.43.64.202 with SMTP id xj10mr4061285icb.0.1407478633890; Thu, 07 Aug 2014 23:17:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.103 with SMTP id u94ls386327qgd.46.gmail; Thu, 07 Aug 2014 23:17:13 -0700 (PDT) X-Received: by 10.220.2.136 with SMTP id 8mr20230859vcj.17.1407478633788; Thu, 07 Aug 2014 23:17:13 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id bc7si2573699vec.98.2014.08.07.23.17.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 23:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ik5so7771603vcb.34 for ; Thu, 07 Aug 2014 23:17:13 -0700 (PDT) X-Received: by 10.220.122.132 with SMTP id l4mr144517vcr.41.1407478633658; Thu, 07 Aug 2014 23:17:13 -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 tc5csp95230vcb; Thu, 7 Aug 2014 23:17:13 -0700 (PDT) X-Received: by 10.224.127.131 with SMTP id g3mr35555844qas.0.1407478633009; Thu, 07 Aug 2014 23:17:13 -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 x10si5390497qar.30.2014.08.07.23.17.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Aug 2014 23:17:12 -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 1XFdUF-0003OR-FZ; Fri, 08 Aug 2014 06:17:11 +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 1XFdUA-0003OG-97 for lng-odp@lists.linaro.org; Fri, 08 Aug 2014 06:17:06 +0000 X-IronPort-AV: E=Sophos;i="5.01,823,1400050800"; d="scan'208";a="41904132" 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:29:05 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) 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:16:59 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Thu, 7 Aug 2014 23:17:00 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id D741E9FD96; Thu, 7 Aug 2014 23:16:11 -0700 (PDT) From: To: Date: Fri, 8 Aug 2014 11:45:55 +0530 Message-ID: <1407478555-11882-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] ODP-DPDK README update 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.175 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