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 93DAEA046B for ; Mon, 22 Jul 2019 20:34:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04C421BF30; Mon, 22 Jul 2019 20:34:42 +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 267F11BE90 for ; Mon, 22 Jul 2019 20:34:41 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id w10so18073937pgj.7 for ; Mon, 22 Jul 2019 11:34:40 -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=lKdTeHZiStgbX5Aax96MJs4mkqCOSMknZ0/2DyBKSYE=; b=NABk25gr0+elzusXy5l1efwtyPtJqSvlLOYR+tSQq83tY6NFbeWOVZpHb5iF/+FwDx UBNlBNxT4milQR1oL21Ce8hkiUyWsy8EbxUjIb2z9ti/wZy4pBfby6s03jzFyPlXOWCp AL4gDrtIaYrdA5z4MyMk2RxcDzh5LJ56JQLnHWD/y8cBb5Kfff866whXPrZ/GOWlkA39 ldAK9KN6+qELkw/gAb1U+kFv5jjZdufaDLPoaacPT9KKWmSpLu6iV2cD8VGosoeZjQMj ecy4bGNFvEVnhPKdoGBaEsYqhpwBEHrIhN5nf0bs5G9s19cZyD2ikMktey+CBeOmfHx1 Rksg== 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=lKdTeHZiStgbX5Aax96MJs4mkqCOSMknZ0/2DyBKSYE=; b=uOXxnc2MA+ZU9f/YvIEGITuvpXXWa6estNXSSFWvQoNDkpe9UdhUEATVJUDKpM6L60 aBTmAOtQ+csarVLNZXHGACeGRdo2hhn0ebYqL9DLRoj4+7SDE3upPkJYfWb7/GKoq17g mthogQS3VFb4fln0gJ7Sb8RnYuqInDocc/PEco2vWcZfziDT3BVUOOkzPCDjiMBwoQtW DhpgGK1zzAfTJfD9Bt5EnZEqkaPdsMkm3YFeU2T2+Udb162wfQgMerkyr/tuM7NZdeDW gjsFa9TfVVCNiOqThMk9LsRY2k+3+jWeXEM8MvGMwMMhlFi7sGZq0CoTmTUXW2MpiuSA fCCg== X-Gm-Message-State: APjAAAUN7ruOVXYzvU4YX8jwHAORXurhYMbnMfhMKPMQxlmpe7a7zxYh wwnNgBGPgRnzhLnvObgucVA= X-Google-Smtp-Source: APXvYqwy49HodmF0aV7F5jPqeNMFIjhVG/X+FUFYeDTy9TsZrwtJIjjM9JT/ZAFzm7d5WqPp0iiUhA== X-Received: by 2002:a63:4612:: with SMTP id t18mr63722572pga.85.1563820480167; Mon, 22 Jul 2019 11:34:40 -0700 (PDT) Received: from xps13 ([167.220.105.181]) by smtp.gmail.com with ESMTPSA id o130sm64827578pfg.171.2019.07.22.11.34.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jul 2019 11:34:40 -0700 (PDT) Date: Mon, 22 Jul 2019 11:34:37 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: Bruce Richardson , dev@dpdk.org Message-ID: <20190722113437.3c509e0b@xps13> In-Reply-To: <4987111.cxvgFvst8F@xps> References: <20190715234136.3526-1-stephen@networkplumber.org> <3107061.JzsCpgzbfO@xps> <20190722101316.33121639@xps13> <4987111.cxvgFvst8F@xps> 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 Mon, 22 Jul 2019 19:31:08 +0200 Thomas Monjalon wrote: > 22/07/2019 19:13, Stephen Hemminger: > > Thomas Monjalon wrote: > > > Are the constructors run on dlopen of the bus driver? > > > > Yes, constructors are run on dlopen. > > But application should not have to ask DPDK to dlopen the bus devices. > > > > The core principle is that dynamic build of DPDK should act the same as old > > statically linked DPDK. Otherwise, the user experience is even worse, and all > > the example documentation is wrong. > > OK, this is where I wanted to bring the discussion. > You are arguing against a design which is in DPDK from some early days. > So this is an interesting discussion to have. > Do we want to change the "plugin model" we have? > Or do we want to simply drop this model (dlopen calls) > and replace it with strong dynamic linking? I argue that examples should work the same with dynamic linking. This used to work before the break out of the bus model, so it is a bug. For distributions, this also matters. Linking with -ldpdk which is a linker script should work.