From patchwork Fri Jul 30 06:50:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shai Malin X-Patchwork-Id: 12410507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA65FC4338F for ; Fri, 30 Jul 2021 06:50:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C3AC60F6B for ; Fri, 30 Jul 2021 06:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237278AbhG3Gud (ORCPT ); Fri, 30 Jul 2021 02:50:33 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:6752 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237680AbhG3Gud (ORCPT ); Fri, 30 Jul 2021 02:50:33 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16U6f0br030240; Thu, 29 Jul 2021 23:50:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=k0JVZscF0ZBcgmcbH1MEssOaUY3TcA+4kLtUbHSiXqg=; b=Tf999xxCOMfpKQbtE/Wg3ZJ6bFmw5l9wz+4pYP22bVSshs3vy6dB59zF8Qq2JlI0GcGa AXSnmRlOPtbd9RdElnmc7994IFWUYkCJMZwzkSR8doCmKnDz+BsaACI61X+Q8BJ3bTSA Y52aHPtGzL1jBPJSqFc9GYP8KibtLDu9Tngqax/w7NAlOhsh3OdvFXnkYnlpXQYxulJJ TUSNqsQszIUSe5852n4hD/oQJ9ntDWsVqOEddGnSX8XgBKTaMw0LMX2K9+/zPX3xZ6wE 750rqV4iUtCX45+s2nqQRpu/d4/NoVhhj822HC8X2nzfWGOCvl0baVNZNQa+nf9jws5F UQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3a456ts8gx-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 29 Jul 2021 23:50:21 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 29 Jul 2021 23:50:18 -0700 Received: from lbtlvb-pcie154.il.qlogic.org (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 29 Jul 2021 23:50:16 -0700 From: Shai Malin To: , , , CC: , , , , , , Subject: [PATCH for-next 3/3][v2] qedr: Use grh layer traffic_class as RDMA CM TOS Date: Fri, 30 Jul 2021 09:50:01 +0300 Message-ID: <20210730065001.805-4-smalin@marvell.com> X-Mailer: git-send-email 2.16.6 In-Reply-To: <20210730065001.805-1-smalin@marvell.com> References: <20210730065001.805-1-smalin@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: 858Sks-5u4qb4Mckvbh534Gq0MwL4CXY X-Proofpoint-ORIG-GUID: 858Sks-5u4qb4Mckvbh534Gq0MwL4CXY X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-30_04:2021-07-29,2021-07-30 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Prabhakar Kushwaha Instead of grh flow label use grh layer traffic_class as RDMA CM TOS. Signed-off-by: Shai Malin Signed-off-by: Ariel Elior Signed-off-by: Prabhakar Kushwaha --- Changes for v2: - none drivers/infiniband/hw/qedr/qedr_roce_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/qedr/qedr_roce_cm.c b/drivers/infiniband/hw/qedr/qedr_roce_cm.c index eb7d24742664..1fa7415117e5 100644 --- a/drivers/infiniband/hw/qedr/qedr_roce_cm.c +++ b/drivers/infiniband/hw/qedr/qedr_roce_cm.c @@ -477,7 +477,7 @@ static inline int qedr_gsi_build_header(struct qedr_dev *dev, u32 ipv4_addr; udh->ip4.protocol = IPPROTO_UDP; - udh->ip4.tos = htonl(grh->flow_label); + udh->ip4.tos = grh->traffic_class; udh->ip4.frag_off = htons(IP_DF); udh->ip4.ttl = grh->hop_limit;