File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
drivers/infiniband/hw/hns Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -4485,14 +4485,6 @@ static int modify_qp_rtr_to_rts(struct ib_qp *ibqp,
4485
4485
return 0 ;
4486
4486
}
4487
4487
4488
- static inline u16 get_udp_sport (u32 fl , u32 lqpn , u32 rqpn )
4489
- {
4490
- if (!fl )
4491
- fl = rdma_calc_flow_label (lqpn , rqpn );
4492
-
4493
- return rdma_flow_label_to_udp_sport (fl );
4494
- }
4495
-
4496
4488
static int get_dip_ctx_idx (struct ib_qp * ibqp , const struct ib_qp_attr * attr ,
4497
4489
u32 * dip_idx )
4498
4490
{
@@ -4709,8 +4701,9 @@ static int hns_roce_v2_set_path(struct ib_qp *ibqp,
4709
4701
}
4710
4702
4711
4703
hr_reg_write (context , QPC_UDPSPN ,
4712
- is_udp ? get_udp_sport (grh -> flow_label , ibqp -> qp_num ,
4713
- attr -> dest_qp_num ) : 0 );
4704
+ is_udp ? rdma_get_udp_sport (grh -> flow_label , ibqp -> qp_num ,
4705
+ attr -> dest_qp_num ) :
4706
+ 0 );
4714
4707
4715
4708
hr_reg_clear (qpc_mask , QPC_UDPSPN );
4716
4709
You can’t perform that action at this time.
0 commit comments