Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp64725rdh; Tue, 6 Feb 2024 19:47:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXFs73YycOrZCQYZBRkTqIAFOSkUq64jvcdJKJs7SpizRAU/5KOu9RbB+bbtBCcspJUDeU X-Received: by 2002:a17:902:dac4:b0:1d9:c876:b840 with SMTP id q4-20020a170902dac400b001d9c876b840mr4559914plx.2.1707277635816; Tue, 06 Feb 2024 19:47:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707277635; cv=pass; d=google.com; s=arc-20160816; b=QYNRt8bYQDuYgH+OuDVSoF6uob5ZJT6sDgHM9ysiNnQndBXrSY+VlVjPbjW86xN2ys HY/9iLFI/Yepj/RMN2usfNzgysInhYth2YYU0SZ/mbQDKttY3AKnWTHbnYmvEA4xxXKy mzLKdVwvviWURXAmjCVng28fz/mEcM6NOfqDhu9CS/L/VQgq8QCmyojU9r8ZF2jGGcyU lHhB/62jB1kt7TEK0vt2a71hHXeHo5dugiklyNXEUPNjUa4CYRaJ+wO+uT6ANF52DClc DBmYGBeHhTWYnYN2wwKKlVfi7XxmrTF/owlxrPy32j82O2sTDl41FeLbcRG6w0qJuiBD bVyg== 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=R1+3rYSOioEKQ9kAekPYSELKMrzZrNUDmgAw/IjLb7s=; b=F+aeAiu43XCoytl9RnQYCWTCM+fZakBHTl97veSNHljtr0jg3f9mztKKKUHTunNHEN 7khC8KYpx1WHD5hpUeUrZt5O4cHqnfdyZBHSq8y+QsIpBdc8YCGzcIRbCdNOxwtIkyKu tE/GNV2n/CMuqKr9N8sB27WNdBOnpQ3+R1/zPxTPmMj07jxq6D3bPbh8ClGKX8oCXgJS Lf26Oitk3PlSVoyXMvMcaxbCUYaeOD0osoZaF4ta2CuqMI1rEN0zZGIOjfs49GYDusRH MIt1BTxvB1FOaOECR1hgK8D7avLN5mhYdyR1Xxv/G1jcXQVjtcSRV1OuYy0CFXqVSx7a 1gag==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com X-Forwarded-Encrypted: i=2; AJvYcCVKl/Ywyqa20WTN4xoe0/RQR9qdkqoKKGLKjMfsfGZO63Q+cwL48bDKvlkV7mzMmeTqJJZ4MOTM2/i0nGjYTdMXIgWtKuKHqRaXtX8xQQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m20-20020a170902f21400b001d952ae03fcsi541512plc.602.2024.02.06.19.47.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 19:47:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55895-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8F5C1B2999C for ; Wed, 7 Feb 2024 03:33:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0E1C101DA; Wed, 7 Feb 2024 03:33:22 +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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500006.china.huawei.com (7.221.188.68) 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