From patchwork Wed Feb 12 22:07:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 65767 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5FABEA0534; Wed, 12 Feb 2020 23:07:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E259B1BDF8; Wed, 12 Feb 2020 23:07:14 +0100 (CET) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by dpdk.org (Postfix) with ESMTP id 41C27A3 for ; Wed, 12 Feb 2020 23:07:13 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 26924FA0; Wed, 12 Feb 2020 17:07:12 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 12 Feb 2020 17:07:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=y4VWPnLEgZ Hs6J53J/wZ1lelSOGb7UhWvpA/ah3mAOE=; b=l188Bb6flcnmgH89rMC6X38LZv VSFp2aNEFkTrTWrOSD/lCmJMCKbQc4aZv1hTXf9iJStFeN0c8dUwB8c9DKw+cQiP C/x8f4VhGito/txs7adI4fn8GClMrt9uFVxsACe+du1UBhZT7NyRfHgLp96hpI5p mEoO2hyujtRSGJz60= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=y4VWPnLEgZHs6J53J/wZ1lelSOGb7UhWvpA/ah3mAOE=; b=u8hOy/Rw gYxP9hy01vfEJ2GNEvoqcw1vOn3XiH9tdvjYHzgIR0a5LuwPTgtHk9wWWW6uBXxe oualhwk75rDrfy1eeh9bEu+9LhG9cVg41nnRxPJk7XutKmqde2k/lItTkV2ak68u ztvRHzJglj+PzsouxMshcpYyessrBQS8nQrVldKc3ah4UtW92Pma2X4BL+xhk8ij ysHpHAK6YZZKHlY5zjUip3reRrSTfR+OfVz0OfL6E5QcFOEHyIQJpdJwRniJMjwU 07fTEFVj8gN8AjyU7QzVznMGUBGdSqRTzW94x38dYIudhF4dcpWHDuSNi4cTzmfL becFGnIRbf8IAw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieeigddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshes mhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 0ED183060717; Wed, 12 Feb 2020 17:07:10 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: bruce.richardson@intel.com Date: Wed, 12 Feb 2020 23:07:02 +0100 Message-Id: <20200212220708.492297-1-thomas@monjalon.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116071656.1663967-1-thomas@monjalon.net> References: <20200116071656.1663967-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v5 0/6] mlx ibverbs linking in meson 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" This is the follow-up of the feature I added one year ago: static linkage of libibverbs in mlx PMDs. The first implementation was focused on "make". This second round does the same with "meson". With the meson option ibverbs_link, only the mode "shared" was working correctly. This patchset adds the mode "static" and fixes the mode "dlopen". changes in v5: - fix build if pkg-config/pkgconf is missing (e.g. Windows) changes in v4: - fix lib ordering - simplify conditions by using subdir_done() changes in v3: - get cflags with pkg-config invocation - drop addition of global variable hidden_deps - remove overlinking in dlopen mode changes in v2: - split mlx patch for normal addition and workarounds - fix ldflags for ibverbs installed in a standard directory - fix libs order leading to undefined references - add doc for hidden_deps - improve explanations in commit logs Thomas Monjalon (6): drivers: cleanup meson build variable net/mlx: add static ibverbs linkage with meson buildtools: get static mlx dependencies for meson net/mlx: workaround static linkage with meson net/mlx: rename meson variable for dlopen option net/mlx: fix overlinking with meson and glue dlopen buildtools/meson.build | 2 + buildtools/options-ibverbs-static.sh | 11 +- doc/guides/nics/mlx4.rst | 4 + doc/guides/nics/mlx5.rst | 4 + drivers/common/mlx5/meson.build | 314 ++++++++++++++------------- drivers/net/ipn3ke/meson.build | 17 +- drivers/net/mlx4/meson.build | 154 +++++++------ drivers/raw/ifpga/meson.build | 23 +- meson_options.txt | 4 +- 9 files changed, 286 insertions(+), 247 deletions(-)