From patchwork Wed Feb 7 03:29:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junxian Huang X-Patchwork-Id: 20036 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1977955dyb; Tue, 6 Feb 2024 19:33:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk+8vJN3OhMoCiSPVl0YZmoU3azGU6Bc3J1T94nKGj2iDIZdGn94gM3W7nvVUzSwhhFKxw X-Received: by 2002:a05:6870:d606:b0:218:f846:7030 with SMTP id a6-20020a056870d60600b00218f8467030mr5297346oaq.31.1707276825782; Tue, 06 Feb 2024 19:33:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707276825; cv=pass; d=google.com; s=arc-20160816; b=dgxP9z0R2sm2w+RcM9rnV3f3N56MtSrrmvpms8swqYfTb12TRlhb4p+/YyDYFyLvvk nqPN1b60gQjnL7rPc81rKNus8NCsI1/xRGqMv7WSilu/z+MyFEMQ173FgiVMBLaRJ26T WNW8L9unmxyU90jfbCNvRU6ofqhnVFss7qwa42PskaUhYmlKRIG2+aN4FyvuhJ0BRVmT Z34MXyCzFkj7beW6yKe+Clfhg3COUwyo9RrhHQe22uaxIaplNnhyMuJGwQ3zjN4P8WMe Z6dYmyYac8hbANIPXdlVadVuBEuDU1LrNtPWOKzIC3Xhv38q9XXyvbm7zoH7SzU9mM7a pw7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=ryg8TuZs79esf30decE8NFf397f33kQL2G3FzSldHNk=; fh=fK64DJ3c+TwkfcGk3bJ4dEtvenZh0dGHHCK2JE05Ykw=; b=qvZ7ZnpXeUf4Iou/rJkl2e3NTlCFkO0wl+j/rgYRf9ZWSGJ7wzlz4NE0/Tkqq8h4Zq jZH/v6H1/vNa311gTKd1zZVPrsNFxHioRB3NxOaKtBDSLloANtDbVLgXO+HK85ciAFlw ROH4XPNhl1Pw+Zt3pysfSRmjvvWHRzFPHylUEgkLuH1MKEXCJsXbugJd/jP2gIU8uckT L6Ee2mmW4gu05Z0POiZwGSgxsUnqxdhS0ryeBbT0EGNL8XgUOj/FGMojMhxlExp4hU3V kw0OPJJKZUTqkcL3bEyoabbFQU1huzpp36AiN8UGK5weljGtxjam5tiFYxIpFb3kMjer 9E/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hisilicon.com dmarc=pass fromdomain=hisilicon.com); spf=pass (google.com: domain of linux-kernel+bounces-55895-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55895-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com X-Forwarded-Encrypted: i=2; AJvYcCWI6lFXNo+tBFTmLtSWpS4sX9r9w+EoG0b5l+X9+asgRvan/coGuxAhsgzmnTIFcHuTfnf8OS3lbjc3/FNsTcCt5wAL2A== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bo5-20020a056a02038500b005d8b2b582dfsi478825pgb.837.2024.02.06.19.33.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 19:33:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55895-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=hisilicon.com dmarc=pass fromdomain=hisilicon.com); spf=pass (google.com: domain of linux-kernel+bounces-55895-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55895-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 87BB828DD64 for ; Wed, 7 Feb 2024 03:33:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 064CA12E47; Wed, 7 Feb 2024 03:33:24 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 6F6B1101CF; Wed, 7 Feb 2024 03:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707276802; cv=none; b=fp7pckNcKAvR0vnhzHTJWcP3zeB1MZgDN/EdH6+qre9YeZfMSZ053jS0ozLLIn4hxB586E2K4fD2+1lDIUvVNb0EyuqKO3uzBxN4T11IXp5b2okTjA94nRz735cGc2uYPeRKXbTvzxANKzPbiavvk1RZkRiVM5yEeM4jbENaltM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707276802; c=relaxed/simple; bh=DFEuQkmh3iC8Rt5IU5gJZWJ6GZEyZRD+JKcJbIgSEBo=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=YDuBaPfJBJ/gvy1zWSsY5nbRwm0F95R39uhR1s3EKmUy/2lgTYeOwUNatr2+ceLADvWLZXPcx3SheTwWFPJ79xZqeTiYhSTklOEXSDfM7L72zK8iqxO4hyxpXu7XZG8+kJXwH/sy5cnWsCNuHCc2C+Gr1Aa5YURXT+uChZUJtM0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hisilicon.com; spf=pass smtp.mailfrom=hisilicon.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hisilicon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hisilicon.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TV5Hr5b19z29lWB; Wed, 7 Feb 2024 11:31:20 +0800 (CST) Received: from kwepemi500006.china.huawei.com (unknown [7.221.188.68]) by mail.maildlp.com (Postfix) with ESMTPS id 2071B140113; Wed, 7 Feb 2024 11:33:17 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 7 Feb 2024 11:33:16 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-next 0/2] RDMA/hns: Support configuring congestion control algorithm with QP granularity Date: Wed, 7 Feb 2024 11:29:08 +0800 Message-ID: <20240207032910.3959426-1-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500006.china.huawei.com (7.221.188.68) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790209504930749293 X-GMAIL-MSGID: 1790209504930749293 Patch #1 reverts a previous bugfix that was intended to add restriction to congestion control algorithm for UD but mistakenly introduced other problem. Patch #2 adds support for configuring congestion control algorithm with QP granularity. The algorithm restriction for UD is added in this patch. Junxian Huang (1): RDMA/hns: Support configuring congestion control algorithm with QP granularity Luoyouming (1): Revert "RDMA/hns: The UD mode can only be configured with DCQCN" drivers/infiniband/hw/hns/hns_roce_device.h | 26 +++++--- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 18 ++---- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 3 +- drivers/infiniband/hw/hns/hns_roce_main.c | 3 + drivers/infiniband/hw/hns/hns_roce_qp.c | 71 +++++++++++++++++++++ include/uapi/rdma/hns-abi.h | 17 +++++ 6 files changed, 118 insertions(+), 20 deletions(-) --- 2.30.0