Skip to contentSkip to conversation

osm_port_info_rcv.c: Reset client reregister bit only on a response to SET

PATCH New Hal Rosenstock 1 participant 1 message Jan 1, 2014 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osm_port_info_rcv.c: Reset client reregister bit only on a response to SET

From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/[email protected]>

It's better to clean the bit only when getting response to a SET request that was issued previously.

---
 opensm/osm_port_info_rcv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/osm_port_info_rcv.c +1 -1
index 30cd096..a8ac75b 100644
@@ -566,7 +566,7 @@ void osm_pi_rcv_process(IN void *context, IN void *data)
 
 	/* On receipt of client reregister, clear the reregister bit so
 	   reregistering won't be sent again and again */
-	if (ib_port_info_get_client_rereg(p_pi)) {
+	if (p_context->set_method && ib_port_info_get_client_rereg(p_pi)) {
 		OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
 			"Client reregister received on response\n");
 		ib_port_info_set_client_rereg(p_pi, 0);

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html