Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1379603lqz; Mon, 1 Apr 2024 04:49:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2f3DdlhjRGUUSB/5JuC9MQyAEApqAHXC1NXHtK2kaKngx5bq2b11hEP65TsWXBn4avf1kqAVzlPPJ13wPT7vhZhUs871plNI2/Ssk6Q== X-Google-Smtp-Source: AGHT+IHPFqjNBf3vM0B61opU1H3lp2Ct2y8k6MZtygmXhAOKQU95GvO09DQIyRRb9xfHBogL2UAJ X-Received: by 2002:a05:6a00:22d4:b0:6e7:20a7:9fc0 with SMTP id f20-20020a056a0022d400b006e720a79fc0mr9620330pfj.34.1711972146243; Mon, 01 Apr 2024 04:49:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711972146; cv=pass; d=google.com; s=arc-20160816; b=uGNUrjauelK8yX3H1/BTb52HCF0gfUZbT1T9fVrNNsKYlYN+V1Y81Zc2f6WBS/+ocQ Ih2eNDYa399aktXp+KY9Fl7NSBXKM00zgJVdpaRqNQblDNV+nAd6KkMePWHJ9KzQAGoM 46zmd7HupDg24lhMeYjsFG19V+ap7YkYdwicu8WpAaC2TJupnnAfCSCIUsh+5NYcjhcG Sdprv9xjcs+ARc2Sd33wTnMBp6cmPrxMAi9l4JO9Pu5e5LzIn1hZtp4u4kb3/yGJE4Cb DV+PslYSsN5k9YmekfgHiCLUry5sJs6Y5zRDy1GROUteCjVxMEYg/d6OnXYOVt+jTnnq xGkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=r/52T39SUxAKmrOkRl0/yoEtBlX4NhPjI+/p4EgJoRE=; fh=DQ4iYRSMLAEi5vZHJLJxXHYGayqB3vG83MXII+z0OHs=; b=EXpHZsbcvIjhaIjoWaWFTOfWktBnn+RULSiihblCpdC4iIJZalOzBJzw/9WjS1ktTs GZAf2EAOZXIoYuh5Lc08NFMhZ8vMiFIVrXOrGFkqgSWbCGVXdseLmWkNkbrzAPFuaW86 3NuvoQbvmfw2sUxS/rHYEthzTdwNWKMTvPnjQFXVq8IKNqLlwQQEiI9nWbOsYs8W5m7p mdCwAqD7GbAq6AVA+r5NPVm1tGzJS78UpOOpSlMkBfzwbNzKvxRuiNMCeQxn61ydEZ3T 8pmnu6/41ijM4wu5HNeCxRQCZ6qE2zSL1g1kzA934Hf/LWv2qEJtc4JI+NREVTjbisMf HfTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lcs8EFpf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126633-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y25-20020a056a00181900b006e684c6f942si9792568pfa.122.2024.04.01.04.49.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 04:49:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126633-linux.lists.archive=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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lcs8EFpf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-126633-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 D7B56281B9A for ; Mon, 1 Apr 2024 11:49:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D127F22313; Mon, 1 Apr 2024 11:48:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lcs8EFpf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 05E4BD26D; Mon, 1 Apr 2024 11:48:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711972137; cv=none; b=kKrgoJZVf/gc/xNhFP4OHcFVAamIwWJEnq4Okuxxlytuvr8xSsV9osmkGo6ohJUAPFR6Ta73r7GVtG8hHjSE6h0lSkk1dyCYiLggId5f8Cc400pfC606+zu55sk5Nmi8OmAGLPK/HsEuTGcgDZBgTGPW4dly8CZTenGKv+nGizs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711972137; c=relaxed/simple; bh=pCIf/4JC3Jz+ajCP9yLU5DVCXUIXygecRnTv9SJ1/Fs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oqO6Bm9OzSY+NBs4TuQLa9reXr1knU9on1q/cL7i/JjkQxYbszPlD7N8HEvMlswY31reiFF1IimHYyJds1d8AS9q8tK7oNIdUeoMHXS2OgPv8kN4DXt16+HlksRl6qFrJPwrcLDk67SUDjADvcOelFLLJRqG5rNkiXV3ZOU35nc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lcs8EFpf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24B07C433F1; Mon, 1 Apr 2024 11:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711972136; bh=pCIf/4JC3Jz+ajCP9yLU5DVCXUIXygecRnTv9SJ1/Fs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lcs8EFpfbw6zrCYqHYrhBQhB3RLk3U1DdxllVf9G4y9QG+eWKlBs3juHWGNg1RanN On7Q1LBmtdahanBGKGoGeGDbytgqQ4N+aA1/2MntxhRyFeW65v7RptykINzPDNjaY+ YXb5kUqDQFdO46SOVTGNYgkYujzOErVE0D4pUObvoe5nXdYs8LsriKrRwoxK07ftyI Ivili8Yt7u9ytkky4JO2cTWP8tQNKjoqAFvk8QcthuTeRwLHPBJRhJAEB7cg4VocWu WMJZvbl/z2goaN7xD6EbOlRb4W00JZAek8M1VEo5YdbzzyoW7XmX1QLqbiA9I5TZYF 7jvgjwFvgRI/A== Date: Mon, 1 Apr 2024 14:48:53 +0300 From: Leon Romanovsky To: Junxian Huang Cc: jgg@ziepe.ca, linux-rdma@vger.kernel.org, linuxarm@huawei.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH for-next] RDMA/hns: Support DSCP Message-ID: <20240401114853.GA73174@unreal> References: <20240315093551.1650088-1-huangjunxian6@hisilicon.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240315093551.1650088-1-huangjunxian6@hisilicon.com> 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? 2. Did you post rdma-core PR? Thanks