From: Alex Netes <[email protected]>

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

Signed-off-by: Alex Netes <[email protected]>
Signed-off-by: Hal Rosenstock <[email protected]>
---
 opensm/osm_port_info_rcv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/osm_port_info_rcv.c b/opensm/osm_port_info_rcv.c
index 30cd096..a8ac75b 100644
--- a/opensm/osm_port_info_rcv.c
+++ b/opensm/osm_port_info_rcv.c
@@ -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

Reply via email to