projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb3dd8
)
RDMA/mana_ib: Fix DSCP value in modify QP
author
Shiraz Saleem
<shirazsaleem@microsoft.com>
Thu, 10 Jul 2025 10:24:45 +0000
(
03:24
-0700)
committer
Leon Romanovsky
<leon@kernel.org>
Sun, 13 Jul 2025 08:23:47 +0000
(
04:23
-0400)
Convert the traffic_class in GRH to a DSCP value as required by the HW.
Fixes:
e095405b45bb
("RDMA/mana_ib: Modify QP state")
Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com>
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link:
https://patch.msgid.link/1752143085-4169-1-git-send-email-kotaranov@linux.microsoft.com
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/qp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/mana/qp.c
b/drivers/infiniband/hw/mana/qp.c
index 14fd7d6c54a243ce3c9b1e92f9268c73ed785a10..a6bf4d539e6701996fe5a97d887bb4cd3030e1e8 100644
(file)
--- a/
drivers/infiniband/hw/mana/qp.c
+++ b/
drivers/infiniband/hw/mana/qp.c
@@
-772,7
+772,7
@@
static int mana_ib_gd_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
req.ah_attr.dest_port = ROCE_V2_UDP_DPORT;
req.ah_attr.src_port = rdma_get_udp_sport(attr->ah_attr.grh.flow_label,
ibqp->qp_num, attr->dest_qp_num);
- req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class;
+ req.ah_attr.traffic_class = attr->ah_attr.grh.traffic_class
>> 2
;
req.ah_attr.hop_limit = attr->ah_attr.grh.hop_limit;
}