File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
drivers/infiniband/hw/hns Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -4030,6 +4030,7 @@ static int modify_qp_init_to_rtr(struct ib_qp *ibqp,
4030
4030
port = (attr_mask & IB_QP_PORT ) ? (attr -> port_num - 1 ) : hr_qp -> port ;
4031
4031
4032
4032
smac = (u8 * )hr_dev -> dev_addr [port ];
4033
+ dmac = (u8 * )attr -> ah_attr .roce .dmac ;
4033
4034
/* when dmac equals smac or loop_idc is 1, it should loopback */
4034
4035
if (ether_addr_equal_unaligned (dmac , smac ) ||
4035
4036
hr_dev -> loop_idc == 0x1 ) {
@@ -4053,7 +4054,6 @@ static int modify_qp_init_to_rtr(struct ib_qp *ibqp,
4053
4054
roce_set_field (qpc_mask -> byte_20_smac_sgid_idx ,
4054
4055
V2_QPC_BYTE_20_SGID_IDX_M , V2_QPC_BYTE_20_SGID_IDX_S , 0 );
4055
4056
4056
- dmac = (u8 * )attr -> ah_attr .roce .dmac ;
4057
4057
memcpy (& (context -> dmac ), dmac , sizeof (u32 ));
4058
4058
roce_set_field (context -> byte_52_udpspn_dmac , V2_QPC_BYTE_52_DMAC_M ,
4059
4059
V2_QPC_BYTE_52_DMAC_S , * ((u16 * )(& dmac [4 ])));
You can’t perform that action at this time.
0 commit comments