Received: by 2002:a05:6500:1b8a:b0:1ef:a0f1:aef6 with SMTP id df10csp15092lqb; Sun, 10 Mar 2024 03:00:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWv71WGV7pKlI/bllVd1MCDidWLWiM34QIQBQVOO4ePCABr9yNsj+rNwC36BK/aM5lkXpgS4/J4Ss3qlVGLaa7RrxdUh3xXXRIOD6oNLw== X-Google-Smtp-Source: AGHT+IEKYVT+MRawMhpWhSTeSGEB+cOgA0HSN6zYuXyo9dpNhy0H9L2fgwiA3p4dxymWS+Qhto50 X-Received: by 2002:a05:622a:201:b0:42e:eba3:5ef3 with SMTP id b1-20020a05622a020100b0042eeba35ef3mr6461349qtx.59.1710064840033; Sun, 10 Mar 2024 03:00:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710064840; cv=pass; d=google.com; s=arc-20160816; b=q/cAMPYDWBsUlinMv8by/1NVTSJAO7v/QXKh0NsL4S3gkyKfDi3TAf7sDM+v8fDt56 A8d914ptle7rG3nW58VZ21f/yg0JqBSyJDfLkSGh54HkdIytvgCMk22nmGdPEWY/McsG H7RVnVxAiqSLU6NOfccFXzRbwIXoDIkcRIw4Gs4cR/lHLmRO43bAceKcto5OTkniHije hXiM08ZbkEmyvzETSRuHRpEjZQgyqDBcFkVKZojQxSFFItegWQ6w7GZoXHwBLgfYnga+ QMvYN3/y8ePb51Og8N7sIcRoljdbscoX4QdJxyIjv1VLYi4+rmEysYOXYcgdCYu2+rjO v1tA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gpnbsb1wBF+gCmklbynf4Nm2EP0+4aTkhHfdH3b+K5k=; fh=DQ4iYRSMLAEi5vZHJLJxXHYGayqB3vG83MXII+z0OHs=; b=vdupXH+c96m8rNHXCwgdDevu4DRe/t06armx92gck/0fuZW0NKxaiFD2r+ygwCIo1N Vv0E/lYaz4li3DPcLOTDlhiuyb/5XRfAWYtVWZAXh+R9qakWhoZjmR/2HyX9czYIuMsY kxeN2Ict62tuglBvbvmkUFQtxXCnHlUHOxzNnWs1T5fwMwoIrCA2gPS6i+fZhh+2ZiKj Dhym8G5Uw2yC3iOhAXJTiShqtnlspiSxL5MVjYfqhPNmtxtFHsYgL0mzjegJRYzOwr7H raXodIYslDS/WLD9QEsMCjh0bAD55Yvn/LiB1Jq8qju3xo/6Z9lHZswq26Lh4FiLY/AR 5YhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ngcoceyg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u8-20020a05622a010800b0042eecd552dbsi3150391qtw.559.2024.03.10.03.00.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 03:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ngcoceyg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98172-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98172-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BA8251C20D23 for ; Sun, 10 Mar 2024 10:00:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F8D21EB52; Sun, 10 Mar 2024 10:00:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ngcoceyg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43C521DDD6; Sun, 10 Mar 2024 10:00:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710064832; cv=none; b=sL9dUym1sZa5dERJSrZ2nW2kXZrbTc7WaULhLceWWnHr05KBn55UHYl/jaUyzGqhyEk0EFDLkExwrRIMOS2kNbv0WqLb6chHzCF7soAaisj+D7y5bjtowQ5M11RfF4A7KSKpMToIU+DZZoq7UKEqM5nnuDcpJmxfKP+VI8AaPhQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710064832; c=relaxed/simple; bh=PbfF8xS4zOPWpBWQGpm7wUS2lrqSxKxSFbPCwoNQc0Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j6zyqeUxdCDYpmjpD2Zop3fflYNb9DB6l+Opz4S2ZfP9HYTwD0FZfj13ZyO9hLpZf5bIoSzWQfok5aQzSSyuB1Z3x3YKl+fNb0kVi1oOppmPZwbjP4jy0Lr9QrAxpz8OfmxvXv+a51Z6qeFkmWGzDj1/0GK7JiwxS5tm8A3pQuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ngcoceyg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39044C433C7; Sun, 10 Mar 2024 10:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710064831; bh=PbfF8xS4zOPWpBWQGpm7wUS2lrqSxKxSFbPCwoNQc0Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NgcoceygpKJizGvoNZOdd2oOtOQw3MB0P5LzSX5lHMGnuG2QMCMzMOpiLZAInIawb IYjdinW3Jjvp9BBin1OjTMZhA7uzwbCQZmCEUlCkuxWFSKBFMyXBN0SRK7NZV3bvYf /f048sZSA+kvzn0ngRW+KQS5FLC7C961j39KJaJcRUgFe7zFwycIzy8NYT+gSk/nAa nsVMXqNiXcybT8aGfzHTpLXj9UIWss4UVQ8mrXDZ08yAdGUv51HrQ4XzSde4zV6Bc+ 77UrK7PaeF3Ud3eqIhDmwsH3Yt+OhPvwnaCH7bpvYBb5+Rrp7NOKIjFxfO4ETeBXGT J53DeAugBfN0A== Date: Sun, 10 Mar 2024 12:00:27 +0200 From: Leon Romanovsky To: Junxian Huang Cc: jgg@ziepe.ca, linux-rdma@vger.kernel.org, linuxarm@huawei.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH for-next] RDMA/hns: Support congestion control algorithm parameter configuration Message-ID: <20240310100027.GC12921@unreal> References: <20240308105443.1130283-1-huangjunxian6@hisilicon.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240308105443.1130283-1-huangjunxian6@hisilicon.com> On Fri, Mar 08, 2024 at 06:54:43PM +0800, Junxian Huang wrote: > From: Chengchang Tang > > hns RoCE supports 4 congestion control algorithms. Each algorihm > involves multiple parameters. Add port sysfs directory for each > algorithm to allow modifying their parameters. Unless Jason changed his position after this rewrite [1], we don't allow any custom driver sysfs code. [1] https://lore.kernel.org/all/cover.1623427137.git.leonro@nvidia.com/ > > Signed-off-by: Chengchang Tang > Signed-off-by: Junxian Huang > --- > drivers/infiniband/hw/hns/Makefile | 2 +- > drivers/infiniband/hw/hns/hns_roce_device.h | 20 ++ > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 59 ++++ > drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 132 ++++++++ > drivers/infiniband/hw/hns/hns_roce_main.c | 3 + > drivers/infiniband/hw/hns/hns_roce_sysfs.c | 346 ++++++++++++++++++++ > 6 files changed, 561 insertions(+), 1 deletion(-) > create mode 100644 drivers/infiniband/hw/hns/hns_roce_sysfs.c Thanks