From patchwork Tue Aug 5 13:19:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 34950 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2DEC620523 for ; Tue, 5 Aug 2014 13:20:11 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 142sf2805187ykq.8 for ; Tue, 05 Aug 2014 06:20: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=cEihgc4GlZ91Oo1TRzINV3AdycOI29IAjR1WIzo8k7Y=; b=WuJVq4d8kEGXYALwKjl4sJoQF7Qq5Ll9FV2nBlHR6Q8TK4pflTFmgPSrL78DMb/sFi NACj8sr6zfKm0W1cMqrWwi2lSEFU2NlBvf+dbc+Eik4cdcwsqs8Mm5ythwvVuKitoHyo baZtmtZJPAYZcfnLcgN6mUD+nk2U/3I5XGa5PrncaPHc1mK+ZGJ+wj2fDyzFnudUlrff 2IvZsfjgRyKaAFyxfxI4v/oYdmbDNnGvIEShy5eKxvDZzFOAbLvlZYYMbDVrNUj76rfm oUKESGgEVaNlvmDiR16VxA6wg0KgFp+yMMl7dBPtcRJvKfYn2IyQcuH31xuMCiT5v+rI ChXQ== X-Gm-Message-State: ALoCoQkofI0Y7pCDnEY5Cng38IpgK9hShnqjJpXR/jD/P3IETWYn6t7+BUZvEyhiQWWFw5Cx+ubw X-Received: by 10.224.103.135 with SMTP id k7mr1962627qao.6.1407244810873; Tue, 05 Aug 2014 06:20:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.229 with SMTP id c92ls335686qgf.34.gmail; Tue, 05 Aug 2014 06:20:10 -0700 (PDT) X-Received: by 10.52.239.6 with SMTP id vo6mr1652721vdc.59.1407244810755; Tue, 05 Aug 2014 06:20:10 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id wv11si1058416vcb.35.2014.08.05.06.20.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Aug 2014 06:20:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so1419432vcb.38 for ; Tue, 05 Aug 2014 06:20:10 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr2008003vcb.48.1407244810388; Tue, 05 Aug 2014 06:20: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 tc5csp388314vcb; Tue, 5 Aug 2014 06:20:09 -0700 (PDT) X-Received: by 10.140.92.13 with SMTP id a13mr5298867qge.88.1407244808555; Tue, 05 Aug 2014 06:20:08 -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 m1si2787032qat.80.2014.08.05.06.20.07 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Aug 2014 06:20:08 -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 1XEeet-0001ul-It; Tue, 05 Aug 2014 13:20:07 +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 1XEeeo-0001u3-ML for lng-odp@lists.linaro.org; Tue, 05 Aug 2014 13:20:02 +0000 X-IronPort-AV: E=Sophos;i="5.01,804,1400050800"; d="scan'208";a="41375640" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw3-out.broadcom.com with ESMTP; 05 Aug 2014 06:31:55 -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; Tue, 5 Aug 2014 06:19:56 -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; Tue, 5 Aug 2014 06:19:56 -0700 Received: from localhost.localdomain (unknown [10.131.61.80]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 87AE09F9F7; Tue, 5 Aug 2014 06:19:55 -0700 (PDT) From: To: Date: Tue, 5 Aug 2014 18:49:28 +0530 Message-ID: <1407244768-8475-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 without sdk-install-path 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.179 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 - Updated Makefile.am with necessary PLAT_CFLAGS and AM_LDFLAGS when sdk-install-path is not specified. - Updated README with, * Steps to compile odp without specifying sdk-install-path, while there give the DESTDIR for DPDK. * new commands for odp_l2fwd and pktio * cleanup Signed-off-by: Venkatesh Vivekanandan --- platform/linux-dpdk/Makefile.am | 3 +++ platform/linux-dpdk/README | 29 ++++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am index 4aa568f..cd0d591 100644 --- a/platform/linux-dpdk/Makefile.am +++ b/platform/linux-dpdk/Makefile.am @@ -16,6 +16,9 @@ PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/arch PLAT_CFLAGS += -I$(SDK_INSTALL_PATH)/include/exec-env AM_LDFLAGS += -L$(SDK_INSTALL_PATH)/lib +else +PLAT_CFLAGS += -include rte_config.h +AM_LDFLAGS += -L../../lib endif AM_CFLAGS += $(PLAT_CFLAGS) diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 14ad4e8..4fc24c1 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -21,17 +21,30 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 # where it was compiled and tested. # Please refer "How to setup and compile DPDK" section in this document -# To compile ODP with linux-dpdk +# TO COMPILE ODP WITH LINUX-DPDK +# if user wish to specify --with-sdk-install-path, then execute below cmds $ 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=/root/dpdk/x86_64-default-linuxapp-gcc +$ make + +# if user doesn't wish to specify --with-sdk-install-path, then execute below cmds +$ cd +$ ./bootstrap +$ ./configure --with-platform=linux-dpdk +$ cd +$ cp -r x86_64-default-linuxapp-gcc/include/* ./include/ +$ make +# This will fail saying libintel_dpdk.a is not found +$ cp x86_64-default-linuxapp-gcc/lib/libintel_dpdk.a ./lib/. +# ./lib directory gets created only during first make $ 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 +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 +55,14 @@ How to setup and compile DPDK: $ cd # This has to be done only once. -# Following command will generate build dir as ./build in +# if user wish to specify --with-sdk-install-path during odp compilation, execute below cmd $ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC" +# if user doesn't wish to specify --with-sdk-install-path during odp compilation, execute below cmd and a series of steps to be followed during odp compilation +$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC" DESTDIR= +# For example +$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC" DESTDIR=/root/odp + +# Note: if non-intel SFP's are used in IXGBE, then CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y has to be specified in command line # If "conflicting types for skb_set_hash" error happens during dpdk # build, then please knock-off skb_set_hash function from kcompat.h as