From patchwork Thu Aug 7 10:16:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 35024 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C32121137 for ; Thu, 7 Aug 2014 10:17:10 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id v1sf12321418yhn.4 for ; Thu, 07 Aug 2014 03:17:10 -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=74GwZ7vF+CPV/WQXsiAnlBavaFEzRuD0Ss2/XWWe7PE=; b=D3b0febcfgEZih/ZYVld3ZsIWVSfMBQLvRgKVlw79K4RTnWY83UMtqvwtaRzFenZsV WQq4n7v3UsRNUB7GJ4oGXoeoCQSh4B3gh6/yjcnKte68E4614o6Btg16rpTkpXHJaP2y S+/AkCrs6PxOck0n+u58l/vvTzHpQ3CRReTJVZfrYHCgEjSuKFR6fL0CvclenQ3wfLgV 8zo6g1UYpEN+wIOG/q9ogxmCirzXO7a0u5oMs2YcXNuHQansIkh4xKLeE24VMaH0+POg lUoLP9+ydPRMLR5NZKUBJlspolT708Y6nRel4tJWeEOas/UzECz4CRF7mbU2hWTIQ94w 1FHQ== X-Gm-Message-State: ALoCoQndhCglw207eupz3ZGtzRdt3YynAAd+xpOuG1cs0r22HCqxbA3VH38WY0vtmrOxf3B6O/AX X-Received: by 10.236.157.193 with SMTP id o41mr1083193yhk.6.1407406630350; Thu, 07 Aug 2014 03:17:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.196 with SMTP id l62ls101160qgf.83.gmail; Thu, 07 Aug 2014 03:17:10 -0700 (PDT) X-Received: by 10.52.61.136 with SMTP id p8mr1375157vdr.15.1407406630270; Thu, 07 Aug 2014 03:17:10 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id xl3si1602319vdb.37.2014.08.07.03.17.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 03:17:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so5999065vcb.33 for ; Thu, 07 Aug 2014 03:17:10 -0700 (PDT) X-Received: by 10.52.244.138 with SMTP id xg10mr1426540vdc.40.1407406630192; Thu, 07 Aug 2014 03:17:10 -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 tc5csp17217vcb; Thu, 7 Aug 2014 03:17:09 -0700 (PDT) X-Received: by 10.224.37.72 with SMTP id w8mr25976389qad.58.1407406629666; Thu, 07 Aug 2014 03:17:09 -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 n20si5522098qay.90.2014.08.07.03.17.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Aug 2014 03:17:09 -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 1XFKku-00067P-71; Thu, 07 Aug 2014 10:17:08 +0000 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XFKko-00066q-AR for lng-odp@lists.linaro.org; Thu, 07 Aug 2014 10:17:02 +0000 X-IronPort-AV: E=Sophos;i="5.01,817,1400050800"; d="scan'208";a="41601062" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw3-out.broadcom.com with ESMTP; 07 Aug 2014 03:28:53 -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 03:16:37 -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 03:16:37 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id AB42A9F9FD; Thu, 7 Aug 2014 03:16:36 -0700 (PDT) From: To: Date: Thu, 7 Aug 2014 15:46:21 +0530 Message-ID: <1407406581-10935-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] [PATCH 1/1] 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.174 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 | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 14ad4e8..da9891c 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -22,16 +22,21 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 # 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 +47,10 @@ 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 install T=x86_64-default-linuxapp-gcc EXTRA_CFLAGS="-fPIC" +# 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 + # If "conflicting types for skb_set_hash" error happens during dpdk # build, then please knock-off skb_set_hash function from kcompat.h as