Re: [PATCH opensm] osm_resp.c: No need to swap DR [D/S]LIDs in resp_make_resp_smp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- 原始邮件 -----
发件人: "Hal Rosenstock" <hal@xxxxxxxxxxxxxxxxxx>
收件人: "Honggang LI" <honli@xxxxxxxxxx>
抄送: linux-rdma@xxxxxxxxxxxxxxx
发送时间: 星期一, 2018年 11 月 26日 下午 9:27:07
主题: [PATCH opensm] osm_resp.c: No need to swap DR [D/S]LIDs in resp_make_resp_smp


C14-10.1.1 states that the DrSLID and DrDLID in the directed route response
SMP shall be copied as is from the request SMP.

Pointed-out-by: Honggang Li <honli@xxxxxxxxxx>

Signed-off-by: Hal Rosenstock <hal@xxxxxxxxxxxx>
---
 opensm/osm_resp.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/opensm/osm_resp.c b/opensm/osm_resp.c
index 3f270e6..9a98df9 100644
--- a/opensm/osm_resp.c
+++ b/opensm/osm_resp.c
@@ -85,8 +85,6 @@ static void resp_make_resp_smp(IN osm_sm_t * sm, IN const ib_smp_t * p_src_smp,
 	if (p_src_smp->mgmt_class == IB_MCLASS_SUBN_DIR)
 		p_dest_smp->status |= IB_SMP_DIRECTION;
 
-	p_dest_smp->dr_dlid = p_dest_smp->dr_slid;
-	p_dest_smp->dr_slid = p_dest_smp->dr_dlid;
 	memcpy(&p_dest_smp->data, p_payload, IB_SMP_DATA_SIZE);
 
 Exit:
-- 



Acked-by: Honggang Li <honli@xxxxxxxxxx>

thanks


2.8.4




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux