From patchwork Mon Aug 11 10:16:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 35202 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7456720540 for ; Mon, 11 Aug 2014 10:17:12 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf36342052obc.0 for ; Mon, 11 Aug 2014 03:17:12 -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=rxOHe125fQEKeSTz3uoOwq26q5LToQin2IauNMewxPA=; b=UFwqCKxS/ovwLAz0lm19LScYLjrHBxdaLmBsZ1ecWITIF/FBKoIDoR7o+dAUUZN9Z4 z3L3VXceSUaOU4qpJ64aUOSMn01H5zeglHaYEyKMR0SEM+pFmDvK3ZEk5hV0oacWbdeI +epeEzNFST1MYr+ApVcVk0sGy42qJBKKbO4LmXXe/FcI0oorA9vrZfvk33UNdu7s5hMI 2+yMDiDGOyTYpV1mIY0JuJuZhmiNiAODT3SEiMZtgCGcpP3IRV1uV3NPXWrhPXCyCa3X I25aVoo9BrYENvo7wcz/UA/3NXiCdlMl1itv3o0WzMcHRpuPHQHjyRRQDVKqzUvTycZ1 i9pQ== X-Gm-Message-State: ALoCoQlFZDdNoxmRyEVnlJfNsDzhdzQkF26s11JCDZPnrPfXXmmKGu8AorsnVgfEklZmb6ogOVgl X-Received: by 10.50.80.111 with SMTP id q15mr10589994igx.0.1407752232097; Mon, 11 Aug 2014 03:17:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.119 with SMTP id e110ls1282451qge.43.gmail; Mon, 11 Aug 2014 03:17:12 -0700 (PDT) X-Received: by 10.52.12.229 with SMTP id b5mr336974vdc.52.1407752232011; Mon, 11 Aug 2014 03:17:12 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id wk17si6276307vcb.9.2014.08.11.03.17.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Aug 2014 03:17:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so11232887vcb.15 for ; Mon, 11 Aug 2014 03:17:11 -0700 (PDT) X-Received: by 10.52.97.233 with SMTP id ed9mr18493465vdb.16.1407752231911; Mon, 11 Aug 2014 03:17:11 -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 tc5csp152794vcb; Mon, 11 Aug 2014 03:17:11 -0700 (PDT) X-Received: by 10.224.166.68 with SMTP id l4mr14701279qay.0.1407752231341; Mon, 11 Aug 2014 03:17:11 -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 b7si20675878qab.106.2014.08.11.03.17.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 11 Aug 2014 03:17:11 -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 1XGmf7-0005HS-DQ; Mon, 11 Aug 2014 10:17:09 +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 1XGmf2-0005HK-FY for lng-odp@lists.linaro.org; Mon, 11 Aug 2014 10:17:04 +0000 X-IronPort-AV: E=Sophos;i="5.01,840,1400050800"; d="scan'208";a="42145785" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw2-out.broadcom.com with ESMTP; 11 Aug 2014 03:29:27 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 11 Aug 2014 03:16:58 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.174.1; Mon, 11 Aug 2014 03:16:58 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 5258B9F9F7; Mon, 11 Aug 2014 03:16:57 -0700 (PDT) From: To: Date: Mon, 11 Aug 2014 15:46:50 +0530 Message-ID: <1407752210-2892-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] [PATCHv3] Updated 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.170 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 - new commands for odp_l2fwd and pktio - cleanup Signed-off-by: Venkatesh Vivekanandan --- platform/linux-dpdk/README | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 14ad4e8..e4b7edd 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -16,22 +16,28 @@ $ 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 for more details on how to build +# dpdk. Getting started guide for Linux might be of help. # 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 +48,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