From patchwork Wed Jan 11 08:45:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 121816 X-Patchwork-Delegate: rasland@nvidia.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5A035423AA; Wed, 11 Jan 2023 09:45:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C323E40691; Wed, 11 Jan 2023 09:45:38 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id 4AF104014F for ; Wed, 11 Jan 2023 09:45:37 +0100 (CET) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4B1BE5C01A5; Wed, 11 Jan 2023 03:45:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 11 Jan 2023 03:45:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1673426735; x=1673513135; bh=zH KWDP5e0cNS8qmqMnEJYrT+SGQxYVmP3fuwIjQRS2c=; b=p6Var6dNW89eIe+cYc oQQTugctxsIE9XjljvIIrjfEgfRz/aNSmfgwpZcGRaO0B8E32MwNu2UFI/38Bn44 BUKokJo1cPFSxsVKCoOQJ5w8KRJmAkUvBJYUEGaqejLluUXVeB6m28zbWw037Ufl 1ozPS8hJoYOb8chvQKYameZw1ysZ+qMveHuw9ROAKka/Y+bkmHZWb+6RmXv2i7yj +hV8QaMbHVxo+DBoW8QA+NBxMkOHP/OOhRuwLDb36iaBEErsksD1nEz0b8gb1cFT VxW0byM1/4aNf9eGshLgzhsr8X/kFYtl6WLBiaNff975Ctcv6BsYK5rFB9jvgUwY oiag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1673426735; x=1673513135; bh=zHKWDP5e0cNS8 qmqMnEJYrT+SGQxYVmP3fuwIjQRS2c=; b=nOEA2tk7VhLXaznzj6PCCt/+w/DxD 3M9bjzhhHo6N0/fOanAWCmhYBmnRoDEdN8V4Yns+k6/nZcyophYpgqIv4PZQxaMO 9cTyCtK42vQ2NIGke169XnOzm9L5b0NZKYqDOQV5ccolq3nwDgukUbQu/0mx9eLL raVz8UCbURLA1Jf8nutTOYsuFOARakDbRYGauZ7uepc8FT47zPPzuRuuTvoUfrh8 hh/k6ctz/U4ycR0BchkIZS+OHxS4VV2O2WbJXTluKIjyikj09j4prSthaUSgaAY3 V4jz69kBA/tfSN3sTWaluF8BrOtqZFxIbGKoOS4o2B2j2gTTRX05YA9Wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrleefgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeetfeeiteefkeetueejudevhfehudevkedugfdtfeetjeethefg feduudffveelheenucffohhmrghinhepghhithhhuhgsuhhsvghrtghonhhtvghnthdrtg homhdprhgvrggumhgvrdhmugdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonh drnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Jan 2023 03:45:34 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: alialnu@nvidia.com, bruce.richardson@intel.com, Matan Azrad , Viacheslav Ovsiienko Subject: [PATCH v2] doc: update recipe for static rdma-core in mlx guides Date: Wed, 11 Jan 2023 09:45:27 +0100 Message-Id: <20230111084527.1255775-1-thomas@monjalon.net> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221208111646.1487459-1-thomas@monjalon.net> References: <20221208111646.1487459-1-thomas@monjalon.net> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org With recent versions of rdma-core, it becomes important to install the library after its compilation. If including rdma-core library from its build directory, some non-standard compiler tricks are used. When using an install directory for rdma-core, DPDK compilation is fine. While at it, disabling unneeded pyVerbs and man pages. Signed-off-by: Thomas Monjalon --- v2: reword commit log --- doc/guides/nics/mlx4.rst | 3 ++- doc/guides/platform/mlx5.rst | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/mlx4.rst b/doc/guides/nics/mlx4.rst index 924ce6f64b..c6279f51d0 100644 --- a/doc/guides/nics/mlx4.rst +++ b/doc/guides/nics/mlx4.rst @@ -209,8 +209,9 @@ Current RDMA core package and Linux kernel (recommended) - Starting with rdma-core v21, static libraries can be built:: cd build - CFLAGS=-fPIC cmake -DIN_PLACE=1 -DENABLE_STATIC=1 -GNinja .. + CFLAGS=-fPIC cmake -DENABLE_STATIC=1 -DNO_PYVERBS=1 -DNO_MAN_PAGES=1 -GNinja .. ninja + ninja install .. _`RDMA core installation documentation`: https://raw.githubusercontent.com/linux-rdma/rdma-core/master/README.md diff --git a/doc/guides/platform/mlx5.rst b/doc/guides/platform/mlx5.rst index 3cc1dd29e2..5784b9a87b 100644 --- a/doc/guides/platform/mlx5.rst +++ b/doc/guides/platform/mlx5.rst @@ -162,8 +162,9 @@ https://github.com/linux-rdma/rdma-core It is possible to build rdma-core as static libraries starting with version 21:: cd build - CFLAGS=-fPIC cmake -DIN_PLACE=1 -DENABLE_STATIC=1 -GNinja .. + CFLAGS=-fPIC cmake -DENABLE_STATIC=1 -DNO_PYVERBS=1 -DNO_MAN_PAGES=1 -GNinja .. ninja + ninja install NVIDIA MLNX_OFED/EN