Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp30202rdb; Wed, 7 Feb 2024 19:56:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHb/MZrzUIc1SpRcZ6SxFe+9g/uurMgeXDCod5eRbThOdgdcuyCZpx/6umHe9GX28kylerg X-Received: by 2002:adf:f748:0:b0:33b:1d2a:4f7c with SMTP id z8-20020adff748000000b0033b1d2a4f7cmr5083672wrp.30.1707364561808; Wed, 07 Feb 2024 19:56:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707364561; cv=pass; d=google.com; s=arc-20160816; b=ZVxz3AqodneTl+ISe0SQipkqd9p0TbHRX5Aw/3KBxo4fb6xOHeZ56TCgfgiG3/rSsl HhtqJv8K4UdwKaazsv0Q9RzJGLGIqbxk3PZf4xIJWE3sDZpUCTNumT/aY5k/6RYlD48d rgjgleCY0h2+bZXq3aPdbvCE1MKVVWhnVV7osnRspQvg+T5VCeuy04e/Wv5//ej/p10b GabnTVC5VHkTlW4BkPZ/0VhnCNZSiaKsj1krWtULnE5uqbj2KoueUMY2mklUxiLUbRtr ZtFAFyrCHH9dAZvdWhBTHkJToCGbOF3MxwxSlZx18OPshBSpv5Ei39ogIA4AI83NZRTS zEBw== 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=zQeafrKcdTfqz5qhblijUU40NlbfMfugTDSMblomlyw=; fh=g8tKOkd8LbIDLmNcnODmV/6RGoLJn8Fuyg4/Ohn937o=; b=dnEYdpWIlEUujSfUmUqI6hjt8Qe4yHabuLTP9JLIc3k/o1viJl3hSbzRCFnh/BNm8f uUZdnIAZuSxueArgn2kkGr1RrLybTkavX/7H/Lfa9f3rs/59Uvo4N35M6wam2IAa7Wot vq0ukQJnsMK/phrJdB8NzteRfS8lGx8ecZ2BV6eZIwLKJ5juvWy2M1pJPuEn0pcxN53X dM6pnXPgfA8uOYA9aXtkzhN3JYFa9xZ91AFaiXZcTPqY0cUmilcrI+ADb/nHGOZ+XKCE ScqAtOC24Xb6ZdYkc8DJmTlcBhJbKtzgIsxNc71vDLCTKUegHdfeLDxV/ahnETApCnEJ GtQA==; 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-57452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57452-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; AJvYcCXcpnVVx9QaDQguwnOBKneiOR1oPF7Gc+KlTb/ALsyiuWgBm7Vo7HAbNjDXbU8+qF8/Dd3Rl3zlJBpn+S0IpBxBPnAEIknyu14Hu4vxXQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c21-20020a17090603d500b00a3aea76e2c5si387105eja.6.2024.02.07.19.56.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:56:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-57452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57452-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8A4AB1F22C94 for ; Thu, 8 Feb 2024 03:56:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 213452E834; Thu, 8 Feb 2024 03:54:54 +0000 (UTC) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (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 6094C2D054; Thu, 8 Feb 2024 03:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707364493; cv=none; b=ureHA9Uc5gigyFYTxRBhNLD3d5HyyiM6RIGsiEAtnjTe8kENVFwm2FZPeTZ7sj0pVfiGMo7Anh2kKwWcL8u50063/XcPFBsg9g5BCv8SPG2x+Kj8w9cGQ9fyXgyo//yvKMCXJ4Cfu+cpq9/vWZJZdLzAN9rQU1z4SKlOARycOYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707364493; c=relaxed/simple; bh=8gQe+a5VMwbGZUZID4MLAbdx2ZQzKKCTGHEnuvMsOOY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qLTwZJg2+9A7JpLGxT+rH5nnIWnGfDEg8viR2whN6Dsfc1FO7mMn/ghitwc/1TfztMUUKfVw0koJlPD0pRsh/mCVyr2JufYLqPK0gxzW4oZ4lSZVCOH+YelotzEuNkNIBnABUyjFHdIcCHKq7CRlPcmKVt2GGheSUogHdg5QuzU= 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.32 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.163.44]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4TVjlt0jQNz1vtL0; Thu, 8 Feb 2024 11:54:18 +0800 (CST) Received: from kwepemi500006.china.huawei.com (unknown [7.221.188.68]) by mail.maildlp.com (Postfix) with ESMTPS id 82A1614051C; Thu, 8 Feb 2024 11:54:46 +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; Thu, 8 Feb 2024 11:54:45 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH v2 for-next 0/2] RDMA/hns: Support configuring congestion control algorithm with QP granularity Date: Thu, 8 Feb 2024 11:50:36 +0800 Message-ID: <20240208035038.94668-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: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500006.china.huawei.com (7.221.188.68) Commit 27c5fd271d8b ("RDMA/hns: The UD mode can only be configured with DCQCN") adds a restriction that only DCQCN is supported for UD QPs, but at the same time introduced other problem mistakenly. Patch #1 reverts the previous modification and fixes the algorithm issue for UD by configuring congestion control algorithm with QP granularity. Patch #2 adds support for userspace configuring congestion control algorithm with QP granularity. v1 -> v2: * Not only revert but also fix the UD algorithm issue in patch #1. Junxian Huang (1): RDMA/hns: Support userspace configuring congestion control algorithm with QP granularity Luoyouming (1): RDMA/hns: Fix mis-modifying default congestion control algorithm 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