From: Shai Malin <smalin@marvell.com>
To: <linux-rdma@vger.kernel.org>, <dledford@redhat.com>,
<jgg@nvidia.com>, <mkalderon@marvell.com>
Cc: <davem@davemloft.net>, <kuba@kernel.org>, <smalin@marvell.com>,
<aelior@marvell.com>, <pkushwaha@marvell.com>,
<prabhakar.pkin@gmail.com>, <malin1024@gmail.com>
Subject: [PATCH for-next 3/3] qedr: Use grh layer traffic_class as RDMA CM TOS
Date: Thu, 29 Jul 2021 16:30:32 +0300 [thread overview]
Message-ID: <20210729133032.26278-4-smalin@marvell.com> (raw)
In-Reply-To: <20210729133032.26278-1-smalin@marvell.com>
From: Prabhakar Kushwaha <pkushwaha@marvell.com>
Instead of grh flow label use grh layer traffic_class as RDMA CM TOS.
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
---
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;
--
2.24.1
prev parent reply other threads:[~2021-07-29 13:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-29 13:30 [PATCH for-next 0/3] qedr: consider dscp prio for vlan tag and update tos Shai Malin
2021-07-29 13:30 ` [PATCH for-next 1/3] qed: add get and set support for dscp priority Shai Malin
2021-07-29 17:21 ` Leon Romanovsky
2021-07-29 13:30 ` [PATCH for-next 2/3] qedr: Consider dscp priority for vlan priority Shai Malin
2021-07-29 13:30 ` Shai Malin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210729133032.26278-4-smalin@marvell.com \
--to=smalin@marvell.com \
--cc=aelior@marvell.com \
--cc=davem@davemloft.net \
--cc=dledford@redhat.com \
--cc=jgg@nvidia.com \
--cc=kuba@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=malin1024@gmail.com \
--cc=mkalderon@marvell.com \
--cc=pkushwaha@marvell.com \
--cc=prabhakar.pkin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.