]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/bnxt_re: Report udp source port for flow_label in bnxt_re_query_qp
authorAbhishek Mohapatra <abhishek.mohapatra@broadcom.com>
Thu, 14 Aug 2025 11:25:53 +0000 (16:55 +0530)
committerLeon Romanovsky <leon@kernel.org>
Mon, 8 Sep 2025 07:08:35 +0000 (03:08 -0400)
commitdc61e916f1ce4770c98d8dd5857c174b73be8251
tree144442bd67dd53846d5f69e8ef04b50a0195f2ad
parentef56081d1864582a6db50710733416c0510b7826
RDMA/bnxt_re: Report udp source port for flow_label in bnxt_re_query_qp

The firmware doesn't capture the flow_label. Therefore the value
that's always returned by qplib_qp->ah.flow_label is 0 whenever
a qp is created. And as per IB spec, udp source port can be reported
for flow_label. Hence reported udp source port for flow_label in
bnxt_re_query_qp by populating the value of qplib_qp->udp_sport
into qp_attr->ah_attr.grh.flow_label.

Signed-off-by: Abhishek Mohapatra <abhishek.mohapatra@broadcom.com>
Signed-off-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com>
Link: https://patch.msgid.link/20250814112555.221665-8-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_fp.c
drivers/infiniband/hw/bnxt_re/qplib_fp.h
drivers/infiniband/hw/bnxt_re/roce_hsi.h