Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1816996lqz; Mon, 1 Apr 2024 20:04:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhf56nHOriTZ+ZiS7rOnK6jWHn21ml4mHXugRAI3+f/kVszLFYcVzpCBD9yw8YejZzOCEHR7poBKkP8Pa6AD0hWT+68mzl/i1lpEt7/g== X-Google-Smtp-Source: AGHT+IE5uVPIVA/bU53RGRzvmo3wEVMpxIl5tSsbedEwvvXF44umYcRofjuMd7HOcC4equdn584c X-Received: by 2002:a05:6a20:a10e:b0:1a5:7437:53b4 with SMTP id q14-20020a056a20a10e00b001a5743753b4mr16055691pzk.26.1712027051704; Mon, 01 Apr 2024 20:04:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712027051; cv=pass; d=google.com; s=arc-20160816; b=l0+eggLc02s3oqiBgRBc8yRbo5HlonwDGapPzYqGREmKs/L2B/HfUOz/EMkk+Iou4o 5cgBRbZB15quiytH6g9qw+w5svWXcbiIQs/rjW/kRAekZE7yngP33s+nifO+okJT6MdX 7V0DnI2nMA/kL3nlv9LH8fKUUrGdfeWQR0Q8+rl/mHTaLlCCuYgjJAvU2Q0yK1bPwZAx PQDLwQBS3igKlmrV4TlF7amq2sHwWsHBRG7SJOYKqwrlXsb5yxNsAXSPXRga9tVtgc1Z 5zM49v06gYhYUQiT6fFRVbqFQiKPXiA120J4TIk4mum9nKi7usY1l4Pc+kaBOPD3m/Vp fznQ== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=kgXouq/ha0w6rN2UVoAL9Ca4UBzRyC4KUuaRI81r5+U=; fh=/0b1uayxl6xObb+ppBuwyrMHN3i6f8LQGamT2h+wQt8=; b=W2urIq6PjVghYS2DQpUv03GWQQZBJ7vi7pO5zg830wNWd9HY4/9PbppqjYs3UAvay5 zZVsmEmGkpr+wj5Cjle28e0iRuVnP1gz7E3GBPIIS8PF/jVmKm2nq7b7hbRN3zV6Sw8j EC1fEGP9Sj5zIHeAU3J+PMJ/nOx5XdqSIUId+sOvTBS/il8lLjWHYoE9GqpiD2D6R3Hr 7MB2rBM0PfuKi03AwkV3fAM6o+agfzFDu3klrUpTsVjhD55qozhZg4N9JnCECZYQeQAN Rt6h46Q1HsQBV/u6I8xrNrzfJABDDP6uZXQ5mMFD9igfaQW2UEcVVxMtsUf/8rlYLSgS mYnA==; 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-127322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h12-20020a056a00230c00b006ead9671db5si10590607pfh.56.2024.04.01.20.04.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 20:04:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-127322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127322-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 5A24DB250B9 for ; Tue, 2 Apr 2024 02:56:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 957B515E8B; Tue, 2 Apr 2024 02:55:55 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 9C6131171A; Tue, 2 Apr 2024 02:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712026555; cv=none; b=Dx/CG7wouFZpjZqJd1/RxwO3Rpa13ZHUFsB49eu4ORsnft3SgtkZroMKxl09Cnccg7jGG1FVmVzi5l/2+xJoX1kuxCA2V+fb4jUyFoRC98VqzSToPHO5HI/bDAK1KcEPbQzGKWFiarjs+vfO3YCVrAB2072uREJbd1pgv7XAgVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712026555; c=relaxed/simple; bh=0EzUwmjHLXlEJyvY/QgsJrzv5lndfqtai08FctYwwJE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ml51/aIJNct8Y6lZOALEksZ9LwCTHBlqC71pwtm0RBWd0OdNznGKd90k2I/cLxDWzjABFweTy2dDJX2F0RHsqYJdnotU8wTxEaaB83dEyZ8oo7OticWuslYFW6NYXFMebveiXZ8s0NhsdLSFhZBxABR0TymgkNJIORas6mDDw88= 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.187 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.105]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4V7sr82VT7zwR42; Tue, 2 Apr 2024 10:52:56 +0800 (CST) Received: from kwepemi500006.china.huawei.com (unknown [7.221.188.68]) by mail.maildlp.com (Postfix) with ESMTPS id BFD591402C6; Tue, 2 Apr 2024 10:55:42 +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; Tue, 2 Apr 2024 10:55:42 +0800 Message-ID: <9bfc0185-dbd3-3511-23f2-983312c04f39@hisilicon.com> Date: Tue, 2 Apr 2024 10:55:41 +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 Content-Language: en-US To: Leon Romanovsky CC: , , , References: <20240315093551.1650088-1-huangjunxian6@hisilicon.com> <20240401114853.GA73174@unreal> <1f786e1b-e8ff-1d6f-7c4d-89724eda6712@hisilicon.com> <20240401181204.GC11187@unreal> From: Junxian Huang In-Reply-To: <20240401181204.GC11187@unreal> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500006.china.huawei.com (7.221.188.68) On 2024/4/2 2:12, Leon Romanovsky wrote: > On Mon, Apr 01, 2024 at 09:25:39PM +0800, Junxian Huang wrote: >> >> >> 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? > > Yes, for any UAPI changes, we require to have rdma-core PR. > > Thanks > PR has been posted. Thanks, Junxian >> >> Junxian >> >>> >>> Thanks