Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1432581lqz; Mon, 1 Apr 2024 06:25:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCO+j9Ri6ITCUyolwB4ucYb1YdvbUDy6tHKBwYfqHG/mWAFj+eRE1dXlsdaidiz9xUysDWByz8pwmpyX0VLp0L5ijtKEM/ADymYSgtLg== X-Google-Smtp-Source: AGHT+IEV3KgvPBO+/cWExqSPRJ1MYXKlDg9VP2RbI5/BdEi5g5ibknqW6H6la6S97fCjM8xvA2n8 X-Received: by 2002:a50:9519:0:b0:568:a226:6685 with SMTP id u25-20020a509519000000b00568a2266685mr11277795eda.8.1711977955307; Mon, 01 Apr 2024 06:25:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711977955; cv=pass; d=google.com; s=arc-20160816; b=tqOwmjj41IF5F0Vaw759+0bDQxXCwVONAfIuoFbGaZxsamRZ/icszYl1HNfWgRmOvY KvfiEh9H3K3TC2V9xTDQdZRWzlYr3Hh7XajayY7sCMyjPSPNmJcmKAmhx1T/ZUClAG7r a3qD92iY9ktcm9l0np+Y4auzwv0Vd56KlAAH1SAUfQQRhtqT0NC8O7pwYDUvCEr3aM03 rK73/yrz+UR7A6fuqD2Hzb4TW5ic3ZUElCxulgoSEFuW4BhlAcsup38Cpb7lLy7M3eXb tgpv1IVmFuGgRc0oLh9ebKMvEE8q1U+MXeczJ064LRc/Gph2pS5ZOG13dbsm/bshIYT8 PIfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=OlaVaK3XWYrd2e2aAbMD5Kp9Mp1xEJQ6GnbluLxKZVQ=; fh=/0b1uayxl6xObb+ppBuwyrMHN3i6f8LQGamT2h+wQt8=; b=p6zCAcsYFmXmvmHmO6mQrdKlsGWRlaUm8Fu8n8wxRB2bcridd/FCpXg8DAwI+9kY6x LMUlk+3k2XLQOEqqlLqp4031pc6SLtstWCtB6bHm/+fszvp52rN497SFnugpGvvvYCuV DM+eHGN9Ru5cpnGMpwP0AQIpD2NaR13GLOTm7aGS9qtZi3yyErPzZtm5RvPwtoe2Dpgj LrjxOIT+OsnhvT6CUjyzx6otjRWl/WdVjzVqxagJd8pISN/GKiBOP4nq3t9vAd/9aGLf m2XwX74/GALZ0EVbNwsVftxzpSBdjZhUZBF25rih2uWoZEXAuT9qy8sqpoKEp4P1wGTH iNdQ==; 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-126683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fd10-20020a056402388a00b0056c24dfd1c3si4557122edb.686.2024.04.01.06.25.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 06:25:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126683-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-126683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126683-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 0504C1F21E45 for ; Mon, 1 Apr 2024 13:25:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A23E3F9C8; Mon, 1 Apr 2024 13:25:47 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (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 534E621A0A; Mon, 1 Apr 2024 13:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711977947; cv=none; b=P75dn2XSo/r4EBpbBd4eCXL2TanevXJpPkrIqC6c3bOIU9amVSodGx3fNNGqz/voqYVBct62byHPNKW03OQbOOmQqfoyv1bgIiPNvfpr47vlrHt0tuv9Vf07rM13E4X/OI7T8KnVwV80SZXw5iReqvEmFtHkb4xMlb0OBXQZers= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711977947; c=relaxed/simple; bh=Kq6yKTpgbG14+4gjOm9LIhMP/yc++MC/zNdqyL6pyGc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=aTPoNTYSH7iEAdh7yjedISGBRwQa7ZSx8c5tPDuYxHm8KKyEkdJ9FQw9H8rQIqUo1zhUYbcOAhWrV0cpMlY6yF+QvLZUryPnz5FbpEzLD+qwBP4ZTHm/g3raGZvJiJbBFMmTvDt9g/HCUcNn9IolOrl7jYO+cSkq4d/FsHaKh9s= 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.255 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.174]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4V7Wsm4jzqz1QC24; Mon, 1 Apr 2024 21:23:08 +0800 (CST) Received: from kwepemi500006.china.huawei.com (unknown [7.221.188.68]) by mail.maildlp.com (Postfix) with ESMTPS id 608AD1401E9; Mon, 1 Apr 2024 21:25:40 +0800 (CST) Received: from [10.67.120.168] (10.67.120.168) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 1 Apr 2024 21:25:39 +0800 Message-ID: <1f786e1b-e8ff-1d6f-7c4d-89724eda6712@hisilicon.com> Date: Mon, 1 Apr 2024 21:25:39 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH for-next] RDMA/hns: Support DSCP To: Leon Romanovsky CC: , , , References: <20240315093551.1650088-1-huangjunxian6@hisilicon.com> <20240401114853.GA73174@unreal> Content-Language: en-US From: Junxian Huang In-Reply-To: <20240401114853.GA73174@unreal> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500006.china.huawei.com (7.221.188.68) On 2024/4/1 19:48, Leon Romanovsky wrote: > On Fri, Mar 15, 2024 at 05:35:51PM +0800, Junxian Huang wrote: >> Add support for DSCP configuration. For DSCP, get dscp-prio mapping >> via hns3 nic driver api .get_dscp_prio() and fill the SL (in WQE for >> UD or in QPC for RC) with the priority value. The prio-tc mapping is >> configured to HW by hns3 nic driver. HW will select a corresponding >> TC according to SL and the prio-tc mapping. >> >> Signed-off-by: Junxian Huang >> --- >> drivers/infiniband/hw/hns/hns_roce_ah.c | 32 +++++--- >> drivers/infiniband/hw/hns/hns_roce_device.h | 6 ++ >> drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 86 ++++++++++++++++----- >> drivers/infiniband/hw/hns/hns_roce_qp.c | 13 ++++ >> include/uapi/rdma/hns-abi.h | 9 ++- >> 5 files changed, 117 insertions(+), 29 deletions(-) > > 1. What is TC mode? TC mode indicates whether the HW is configured as DSCP mode or VLAN priority mode currently. > 2. Did you post rdma-core PR? Not yet. I was meant to wait until this patch is applied. Should I post it right now? Junxian > > Thanks