From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id ADE75A0471 for ; Fri, 19 Jul 2019 20:11:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D0A895B3E; Fri, 19 Jul 2019 20:11:37 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id E12545905 for ; Fri, 19 Jul 2019 20:11:35 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id f20so5570561pgj.0 for ; Fri, 19 Jul 2019 11:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mgZZbtMkCaGhzv6OhDLTKfcmmeNVYQTi06hjt5tPpcM=; b=PHa1HPbdg0xAMVvjA6U4Fusw9HpB4DC3WN67kF3sFDnJh8D/nb6+cZg6SLEM0571Dz Kfw7krWY5w4STgQoLD1BitGPOCbhwh6kQCbPaZORE8CLBmq1cs2zJxm04aT+dnzPyOeA bP8ezuNFXo8nC+NpdO6y71ufpIGRKws4Rc3GvnJJYEvqepmf4xEBb3SJoLlRkCkVrqMr Fomq+NBwnWp+EBLRBcP5dDj3th4dn2l+7DyjTXg8uGatGVenTvROmFofY4PNr0y+UK3w tJfZsjfclOE6nYKFtlBb27kGJgg6E6omfEoQfGM46LBFHpPUtO0lBSEokOtdKRTTDEpC UNrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mgZZbtMkCaGhzv6OhDLTKfcmmeNVYQTi06hjt5tPpcM=; b=VFQSdN+ZtJMKz1wUI2XMTR9p9ebe2ZEQ4O4nnieJghn99kxOGB+Ii1DNe1RvYinV24 YkApKwriA1IpDvugSNQiWH3KqBSfmVQ5t03Jdtyd/OnT1OEDciRZPBNoeqFKU9xvINHy UNSDVVyMv5nP2izOYaiYrVs4HHGV4Fyivwuib51R5joWI1M/zEG1HrywzdV8qwXOdzt/ MLzP86//oeIrvmHR2xFQNprhHTjBf6adbLbY2NQtMBgtvgBYE0N71OP0VZ+gARE/B1Hg tNsvSNnN4BR0mwIF6+h3Zg/bBMEn3kPahp5ILtrfxDkmZxqu/MSachVTGi7mCIg0hiGM kDRg== X-Gm-Message-State: APjAAAWS/JpDlrwl7HFtMPOoUGaikpZr0YgTGmkI1jICcFXBgaTevXBM l/h9zoWrKq0DfEQNuSKddXU= X-Google-Smtp-Source: APXvYqyVCzQOhoEICHLTC5FuHJV6YU4BXUQTNeiDqVWQdK78Ekkz9BRYjOccI12ta2X5PRhyXQOW4g== X-Received: by 2002:a65:6448:: with SMTP id s8mr55809710pgv.223.1563559894979; Fri, 19 Jul 2019 11:11:34 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u128sm35470433pfu.48.2019.07.19.11.11.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 19 Jul 2019 11:11:34 -0700 (PDT) Date: Fri, 19 Jul 2019 11:11:28 -0700 From: Stephen Hemminger To: Bruce Richardson Cc: thomas@monjalon.net, dev@dpdk.org, stable@dpdk.org Message-ID: <20190719111128.2d0aba3a@hermes.lan> In-Reply-To: <20190716084423.GB561@bricha3-MOBL.ger.corp.intel.com> References: <20190715234136.3526-1-stephen@networkplumber.org> <20190715171912.7c179f43@hermes.lan> <20190716084423.GB561@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, 16 Jul 2019 09:46:04 +0100 Bruce Richardson wrote: > I don't think the position of these is going to be the cause here, the more > likely cause is that the pci bus driver - and all other drivers - are not > linked into apps for shared library builds. You always need to pass "-d" > parameter to load drivers at init time (or have them installed in the > correct driver path). For example, for me with a shared library build the > following gives a no ports error: > > sudo ./build/l2fwd -c F00000 -- -p 3 > > while this succeeds and runs fine > > sudo ./build/l2fwd -c F00000 -d $RTE_SDK/$RTE_TARGET/lib/librte_pmd_i40e.so -- -p 3 Application should never have to use -d to force driver load! The purpose of all the pmdinfo, and probing logic is to not do this.