From patchwork Tue Dec 9 13:02:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatesh Vivekanandan X-Patchwork-Id: 42049 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 74D1325E75 for ; Tue, 9 Dec 2014 13:03:07 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id d49sf712700eek.0 for ; Tue, 09 Dec 2014 05:03:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:date:message-id:from :to:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:content-type:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=HsU8wZ8HiM1vftfIngauBbTLW/h/z+LolyLHC1YTqhg=; b=Dhl9NCf+SLB8h9BIyEm0Nv+0QzU839xVFxuUq3ba8zMuVFgSYAfeAKrWpHw7wuP0Uo 1LIxJjv4WYeRzBwI2tlvDNpJgmYdzRHgEdPKqB4xZaLdW0JQ3NanfBvQS4XCjlCFfUqT U4PTJKqYRpt5in7Dyc+PG4AuNSyUdUI4s1AZ1WRBQ60KkMiAbjo7Asr3+w+dHqHG/rK3 zq6MzpaJ3qTEjkC6LMnlspx18bWTvdKPRN4x+wPsftnuy+p2a9Ee8LZv3q7k4xGS87P2 6TwyV7HmyLnl6eKSoqyJy7pT9dwuk+zW3FGR8k7Qh75j1m/vQjSYdYoq7nU9RiYuhqMX MNcg== X-Gm-Message-State: ALoCoQnQMbNLCYJN5B+er/wIBUlxyEmXJ9Rr+eMBFupni5KcM469wRREdoXbi6cTLNtqHtzZDs/9 X-Received: by 10.180.85.72 with SMTP id f8mr4435280wiz.0.1418130186536; Tue, 09 Dec 2014 05:03:06 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls32691lao.83.gmail; Tue, 09 Dec 2014 05:03:06 -0800 (PST) X-Received: by 10.152.205.74 with SMTP id le10mr21481435lac.96.1418130186343; Tue, 09 Dec 2014 05:03:06 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id rd1si1268827lac.70.2014.12.09.05.03.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Dec 2014 05:03:06 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so433662lbv.21 for ; Tue, 09 Dec 2014 05:03:06 -0800 (PST) X-Received: by 10.152.21.66 with SMTP id t2mr21350418lae.27.1418130186198; Tue, 09 Dec 2014 05:03:06 -0800 (PST) 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.112.184.201 with SMTP id ew9csp747775lbc; Tue, 9 Dec 2014 05:03:05 -0800 (PST) X-Received: by 10.140.49.107 with SMTP id p98mr4968803qga.20.1418130184237; Tue, 09 Dec 2014 05:03:04 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 69si1133045qge.37.2014.12.09.05.03.03 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 09 Dec 2014 05:03:04 -0800 (PST) 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-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XyKRR-0007yX-0Z; Tue, 09 Dec 2014 13:03:01 +0000 Received: from mail-qa0-f42.google.com ([209.85.216.42]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XyKRK-0007yQ-T1 for lng-odp@lists.linaro.org; Tue, 09 Dec 2014 13:02:54 +0000 Received: by mail-qa0-f42.google.com with SMTP id j7so323813qaq.29 for ; Tue, 09 Dec 2014 05:02:49 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.229.7.138 with SMTP id d10mr5238545qcd.18.1418130169340; Tue, 09 Dec 2014 05:02:49 -0800 (PST) Received: by 10.140.90.51 with HTTP; Tue, 9 Dec 2014 05:02:49 -0800 (PST) Date: Tue, 9 Dec 2014 18:32:49 +0530 Message-ID: From: Venkatesh Vivekanandan To: lng-odp-forward Subject: [lng-odp] RFC linux-dpdk support for DPDK 1.7.0 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.217.176 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 Hi All, DPDK changed its way of loading the driver from 1.7.0. We can support this change in ODP in two ways. 1. Wrap intel_dpdk archive with --whole-archive/--no-whole-archive in all odp applications OR 2. Compile DPDK with shared lib option enabled and load intel_dpdk as shared lib with ODP. Currently option 1 doesn't look feasible. Looking out for solution. For option 2: Change given below is needed to pass the dpdk's lib path to all the applications when odp is compiled for linux-dpdk. Is this acceptable?. May be, this is useful for other platforms as well. Thanks, Venkatesh. diff --git a/configure.ac b/configure.ac index 2ae22f1..e7ee713 100644 --- a/configure.ac +++ b/configure.ac @@ -146,7 +146,7 @@ AC_SEARCH_LIBS([timer_create],[rt posix4]) ########################################################################## # distribute the changed variables among the Makefiles -AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt" +AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt -R$SDK_INSTALL_PATH/lib" AC_SUBST([LIBS]) AC_SUBST([AM_CFLAGS])