Blame SOURCES/0002-srp_daemon-srp_daemon.c-Eliminate-some-unneeded-code.patch

23f80e
From a0637f2652aa8f634814366bcb58b1d1e527807d Mon Sep 17 00:00:00 2001
23f80e
From: Hal Rosenstock <hal@dev.mellanox.co.il>
23f80e
Date: Thu, 13 Apr 2017 10:48:25 -0400
23f80e
Subject: [PATCH 2/3] srp_daemon/srp_daemon.c: Eliminate some unneeded code in
23f80e
 get_shared_pkeys
23f80e
23f80e
PathRecords are obtained using SubAdmGet and not SubAdmGetTable
23f80e
so RMPP is not involved. Eliminate unneeded initialization of MAD
23f80e
RMPP fields.
23f80e
23f80e
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
23f80e
---
23f80e
 srp_daemon/srp_daemon.c | 2 --
23f80e
 1 file changed, 2 deletions(-)
23f80e
23f80e
diff --git a/srp_daemon/srp_daemon.c b/srp_daemon/srp_daemon.c
23f80e
index 76fec28..1cf2815 100644
23f80e
--- a/srp_daemon/srp_daemon.c
23f80e
+++ b/srp_daemon/srp_daemon.c
23f80e
@@ -1134,8 +1134,6 @@ static int get_shared_pkeys(struct resources *res,
23f80e
 
23f80e
 		/* Mark components: DLID, SLID, PKEY */
23f80e
 		out_sa_mad->comp_mask = htobe64(1 << 4 | 1 << 5 | 1 << 13);
23f80e
-		out_sa_mad->rmpp_version = 1;
23f80e
-		out_sa_mad->rmpp_type = 1;
23f80e
 		path_rec = (ib_path_rec_t *)out_sa_mad->data;
23f80e
 		path_rec->slid = htobe16(local_port_lid);
23f80e
 		path_rec->dlid = htobe16(dest_port_lid);
23f80e
-- 
23f80e
1.8.3.1
23f80e