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 B2BEEA0471 for ; Tue, 16 Jul 2019 01:41:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9AAAA2E81; Tue, 16 Jul 2019 01:41:50 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 1F26A2C18 for ; Tue, 16 Jul 2019 01:41:46 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id s1so2149407pgr.2 for ; Mon, 15 Jul 2019 16:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TZQJvPTbpRFT+Dy2aelLp+km3z0bj0bVmepSsHuInEo=; b=uEX5571Sxg4DGgEYhdk1IaJJ0r60nNKxNvOv+TaFARXF8XhUlywhGVUaPR2sH6vI2i RT2r7YgrkjPNoeoYlc0j6gwxgppaCtDzr852417Cc65R3x3PZH5D6XH4H6GnKC5RsH0C kWm0AMS+U9tb1eJN8YMVbupYvDZzFpI4EYw4xonfLWGWjSLOFyP2B9v3V7Dd9/64sbi0 Awa29OgmPxNpoJQjRTH55x2FHhWbglnnUphhsoh+ovkyW+9uRIGip8zyM2EpHxT3hUM2 w8epKWyaqn6K+yhlEFBOf195GA8Ek2lMa/MCPIeFvEVtey70+7OtEwtBXWGHbxAPcwUA 5sTg== 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:mime-version :content-transfer-encoding; bh=TZQJvPTbpRFT+Dy2aelLp+km3z0bj0bVmepSsHuInEo=; b=ghlSNMZAKxtCSdKaDMlQ/iXornXOBRlLYH2aKuQ3uXhxEuIb6+VgZV2UPJ8k24d+mx cjtuvlHTMJ/aEV1dRKbkAVGV0ivH+HrIWrMHvIzZaAQtWkjd6A5uANDAWXlYMD33zoae hXkH+0cFEHjLeBj6Q0zl51lniSK0dSvidx2nXeA3sqdI4FN9mu6rMmcTXyyGSzRPI3EQ 6zr67NsG+o3to/34uo6P27BRP2iGOfFZjAvnOihyGB2Siab/QWHPapd7idWKsI6KUG3v qpdfFYw/WToQyxWkdVyiqqfnZ2d8CWpXOYTG0r+r0wctdFrnC37F8IplyFTWB3OSQ5A2 eZLQ== X-Gm-Message-State: APjAAAU4p7YEVAa7yLZ5m4Zj+dR6c/0f7qRYbiaSKsy1i4WvL8yJqdyr IhO+I5I4/cNP+A2RtCFzaAA= X-Google-Smtp-Source: APXvYqxAe3F2f9N08lV0CUBT3CsITZdFdGx6dcgV7tablyQ2SIAInjqlHSkJ3G/tf4a83Tjfd7UocA== X-Received: by 2002:a17:90a:3590:: with SMTP id r16mr32513059pjb.44.1563234106175; Mon, 15 Jul 2019 16:41:46 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id z2sm16509347pgg.58.2019.07.15.16.41.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 16:41:45 -0700 (PDT) From: Stephen Hemminger To: thomas@monjalon.net Cc: dev@dpdk.org, Stephen Hemminger , stable@dpdk.org Date: Mon, 15 Jul 2019 16:41:36 -0700 Message-Id: <20190715234136.3526-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] pci: fix missing pci bus with shared library build X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" If DPDK is built as a shared library, then any application linked with rte.app.mk will not find any PCI devices. When the application is started no ethernet devices are found. This is because the link order of libraries on the command line matters. And PCI is before EAL. That causes there to be no dependency on PCI so linker ignores linking the library. Swapping the order fixes this. Fixes: c752998b5e2e ("pci: introduce library and driver") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- mk/rte.app.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index a277c808ed8e..470b92e4d73e 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -90,8 +90,8 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_STACK) += -lrte_stack _LDLIBS-$(CONFIG_RTE_DRIVER_MEMPOOL_RING) += -lrte_mempool_ring _LDLIBS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_MEMPOOL) += -lrte_mempool_octeontx2 _LDLIBS-$(CONFIG_RTE_LIBRTE_RING) += -lrte_ring -_LDLIBS-$(CONFIG_RTE_LIBRTE_PCI) += -lrte_pci _LDLIBS-$(CONFIG_RTE_LIBRTE_EAL) += -lrte_eal +_LDLIBS-$(CONFIG_RTE_LIBRTE_PCI) += -lrte_pci _LDLIBS-$(CONFIG_RTE_LIBRTE_CMDLINE) += -lrte_cmdline _LDLIBS-$(CONFIG_RTE_LIBRTE_REORDER) += -lrte_reorder _LDLIBS-$(CONFIG_RTE_LIBRTE_SCHED) += -lrte_sched -- 2.20.1