From patchwork Wed Feb 12 01:59:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 65745 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 8AEB0A0530; Wed, 12 Feb 2020 02:59:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B470929CB; Wed, 12 Feb 2020 02:59:52 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 012872952 for ; Wed, 12 Feb 2020 02:59:51 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2D08A21533; Tue, 11 Feb 2020 20:59:51 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 11 Feb 2020 20:59:51 -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=fvyBdJw9X1 10+xLzUj+6NsfaXHgW+wtxJrokUKXzUlc=; b=cQ183aGZx1qprXF2IHUt07M62s 9rZ54RrpQox3853sJ+zFQWqTsRLtn7ooe92w0Dnd3RxP80GPsDVklzwDnuYpDJ5X xQQYbkZBroTP6UCMzjZSM5Ky1IUqvWOdIxPRQk+2d0rV/y3fpUN54tu4wlUMcJ/v lfB+h39OsBXbmi8sg= 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=fvyBdJw9X110+xLzUj+6NsfaXHgW+wtxJrokUKXzUlc=; b=HrxJ9a6B hZvN0vo7dJXBzw8jHtSlcJHsFCkCubDjmc6CUdAdnZzBPf7isY6JWRgqbPJszN6I Af+n1C8sT0JpYnTjO2dsBbpZpZgmG9+7dUPpiRpBW9tlwEuV2iaKr6MxVlhYQPmE Z9coWQviF1YZwff6Qtlg0V1Sv7sMIH7I6UMNAh8xJehQnqU2QuEY990KOqqpZETI zK5s62LCjY54zBGthVQZ1YCyeDwmDFh5gNQxFGU6FVVTLaufSHcZvJGPQAEy/E/q T4AaxLMkZhT+e3s4M+qdC7G3ve4iWBoYNDke5sYo2Ex8zRg0QbUiENDihhmhTuNg VA+IaI0+/bEfug== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieeggdefgecutefuodetggdotefrodftvf 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 3534C328005E; Tue, 11 Feb 2020 20:59:50 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: bruce.richardson@intel.com Date: Wed, 12 Feb 2020 02:59:38 +0100 Message-Id: <20200212015944.3037000-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 v4 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 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(-)