From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34335C55ABD for ; Sun, 15 Nov 2020 11:24:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB5DB223FB for ; Sun, 15 Nov 2020 11:24:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="sqhoK5wP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbgKOLYa (ORCPT ); Sun, 15 Nov 2020 06:24:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:50238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726859AbgKOLYa (ORCPT ); Sun, 15 Nov 2020 06:24:30 -0500 Received: from localhost (thunderhill.nvidia.com [216.228.112.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2A8FE223C7; Sun, 15 Nov 2020 11:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605439469; bh=ZwxMi2PMAK2F2W5ObkiFvDQGGAku0poaFKie8gvuLlE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sqhoK5wPh22lqu17h8xntG8wZvd0v4DZDOc2zSM2f2Lfg5sO/1a90HuZRkknB4jMP tMCL/qwQcwZkLVp7Ng1E65qoeT4xhKgJsTy5qSmfl9nEzi0lrjqE1MDr2G2UCHcIWU DchthfCbiwLciP2uIqHdujKp4gat7aXIFp5Cjhcs= Date: Sun, 15 Nov 2020 13:24:25 +0200 From: Leon Romanovsky To: "Manikarnike, Vasuki" Cc: "linux-rdma@vger.kernel.org" Subject: Re: librdmacm: cleanup/reinit API? Message-ID: <20201115112425.GE47002@unreal> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Mon, Oct 12, 2020 at 10:38:50PM +0000, Manikarnike, Vasuki wrote: > Hello, > > I notice that librdmacm does not have a reinit/deinit/cleanup API. > I'm looking for ucma_cleanup(), sort of the opposite of ucma_init(). > > The first call to rdma_get_devices() from the application calls ucma_init() if required. > ucma_init() builds the list of devices, and subsequent library calls use this list. > > We'd like to issue a full chip reset on a Mellanox CX-5 adapter by using the 'mlxfwreset' tool, > and we'd like to do this without requiring our application to be restarted. It is supported with this already merged PR. https://github.com/linux-rdma/rdma-core/pull/750 Thanks