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=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 4CCA5C4338F for ; Mon, 2 Aug 2021 16:36:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C51D61050 for ; Mon, 2 Aug 2021 16:36:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbhHBQgK (ORCPT ); Mon, 2 Aug 2021 12:36:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:46000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhHBQgK (ORCPT ); Mon, 2 Aug 2021 12:36:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D01761029; Mon, 2 Aug 2021 16:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627922160; bh=jH10d1NY8ybX3b76wQNdz4Y+qT0osXyymVh2QtvmmJk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pPKU5/H6qHDa7SSJjAhjoT29pdJuuWvH2YH1Q8tVPoAANyY+CovW+lNwSSRnDpS87 eYSH9JDxKhXY2BP0jvNDHJGJ7rVMSwu2KIOXGlt9mVvL3lM2EQAz/8b7V4MJVw9a5p 0TKborM52kx6UAorc+nqJjKntWMKwLYcIMwSFFmWtuD27YaD//phVPy8ofN5HRnm4T /+MOyxj57HylkOcosSbbdvaJA8vqRqCZj5V0xqFJLZ2x4iflPxs1n7kGGUcvDha0qN MvDVFKWm2+ZU6m4z9m5pW5/tsYc44VE7dV0flDDp7Mbj+nqbht5B6re5YuPWfK9s1J MbnbILSqqDw8A== Date: Mon, 2 Aug 2021 19:35:55 +0300 From: Leon Romanovsky To: Haris Iqbal Cc: Jack Wang , RDMA mailing list , Bart Van Assche , Doug Ledford , Jason Gunthorpe , Md Haris Iqbal , Gioh Kim Subject: Re: [PATCH for-next 09/10] RDMA/rtrs: Add support to disable an IB port on the storage side Message-ID: References: <20210730131832.118865-1-jinpu.wang@ionos.com> <20210730131832.118865-10-jinpu.wang@ionos.com> 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, Aug 02, 2021 at 04:31:01PM +0200, Haris Iqbal wrote: > On Mon, Aug 2, 2021 at 9:30 AM Leon Romanovsky wrote: > > > > On Fri, Jul 30, 2021 at 03:18:31PM +0200, Jack Wang wrote: > > > From: Md Haris Iqbal > > > > > > This commit adds support to reject connection on a specific IB port which > > > can be specified in the added sysfs entry for the rtrs-server module. > > > > > > Example, > > > > > > $ echo "mlx4_0 1" > /sys/class/rtrs-server/ctl/disable_port > > > > > > When a connection request is received on the above IB port, rtrs_srv > > > rejects the connection and notifies the client to disable reconnection > > > attempts. A manual reconnect has to be triggerred in such a case. > > > > > > A manual reconnect can be triggered by doing the following, > > > > > > echo 1 > /sys/class/rtrs-client/blya/paths//reconnect <...> > > > > And maybe Jason thinks differently, but I don't feel comfortable with > > such new sysfs file at all. This part is much more important and should be cleared before resending. > > > > Thanks