From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f173.google.com (mail-wr0-f173.google.com [209.85.128.173]) by dpdk.org (Postfix) with ESMTP id 1528E2C01 for ; Fri, 10 Mar 2017 13:56:31 +0100 (CET) Received: by mail-wr0-f173.google.com with SMTP id u108so64270067wrb.3 for ; Fri, 10 Mar 2017 04:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=WsUHICCQgkfrJaIovlDkronvExTCOcqsZ63Yx/Zo//c=; b=CEiWf71cQapYCq1KtTl0i04CYmfZLSRRK07UX7b45K0BqJN+1FPUvtqsEPQMSF7bov 8IrczzZc7KdEOD/s9GOpvh3C3/GAElVr3V9CA0XMNqRdVQh7X+AjcNZJKyQPoxEkuHK4 0DH4jnKUuEc14Gp8kW2qBjr4UAAVcnuSGZijwHtuZ070XZRllnKa09sv4IIWY0g64xVf 0EhNYdQT6BKjkv3aKg/qmS7/frt+BQx2tAXWPyK2+O3LSdTBlSy/XwubT5JuKIDCj+JY TkzB3vZm3KX4dA3idCJTjKoke0/q9J33oqJbXrxiHDQI7f+8ewU4lhNN3yvikk0mUhgM eMvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=WsUHICCQgkfrJaIovlDkronvExTCOcqsZ63Yx/Zo//c=; b=Oo0n5Ornacelvf+MHjzTJhXMUlVRuJQVthG63uTmj8MrAQ3ipJM/uwADQ1H+j5bDTC 822x02YL+hwk4NF+x6m44biW+TlCIywpLIyHmvLonXGzbPYqNZEAjINs9sIAKP5A9O31 jPfnwiyt1JWHq5ON2T3rS8WZIHphQfB3rQ5kiEIZg3lh0pXsBG0ChhSVtBhEWPc0Jy5R ggGr+LoeN/Mfn2e7dOAiJF+kxzhbRSPCLqbaEzjZMkfmc4Pj628zUx04lsu47UimKGS4 l1yIvyBn63eMQPWB8MysyeG1J8mb+ES41kWlvKyyGTcn7wqCE1fbiN1yXpg2lmEBMAyB vqCw== X-Gm-Message-State: AMke39kVmtO4skC9EqqWF7iPKls0uw7+Qo6IgXLYEyo6NyzMmqG/0pbtG3H4tEoLkAFSH1Bp X-Received: by 10.223.160.143 with SMTP id m15mr17384185wrm.116.1489150590797; Fri, 10 Mar 2017 04:56:30 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id k195sm3252633wmd.7.2017.03.10.04.56.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Mar 2017 04:56:30 -0800 (PST) From: Thomas Monjalon To: zhaozhanxu Cc: dev@dpdk.org Date: Fri, 10 Mar 2017 13:56:29 +0100 Message-ID: <2831820.tJVZXKyIra@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com> References: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] app/pdump: fix pdump can't find the driver when compiled dpdk to shared libraries X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 12:56:31 -0000 2017-03-03 17:27, zhaozhanxu: > When I compiled dpdk With configuration "CONFIG_RTE_BUILD_SHARED_LIB=y", > I get error message "EAL: no driver found for net_pcap_rx_0" and > "EAL: Driver cannot attach the device (net_pcap_rx_0)" by running pdump. > So I add library librte_pmd_pcap.so. [...] > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) > + _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lrte_pmd_pcap > +endif The idea of having drivers as shared libraries is to use them as plugins. We are not going to link the applications with every drivers. Instead we load them explicitly with -d option. Someone should document it in http://dpdk.org/doc/guides/linux_gsg/build_sample_apps.html#running-a-sample-application Any volunteer?