diff mbox

[4/5] opensm/osm_port_info_rcv.c: Reread pkeys from SP0 if switch rebooted during a sweep

Message ID 1391425516-14462-4-git-send-email-alexne@mellanox.com (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Alex Netes Feb. 3, 2014, 11:05 a.m. UTC
SM may miss switch reboot because of a long sweep. In that case it won't
reread pkey tables from Switch Port 0.

Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 opensm/osm_port_info_rcv.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Hal Rosenstock Feb. 3, 2014, 7:42 p.m. UTC | #1
On 2/3/2014 6:05 AM, Alex Netes wrote:
> SM may miss switch reboot because of a long sweep. In that case it won't
> reread pkey tables from Switch Port 0.
> 
> Signed-off-by: Alex Netes <alexne@mellanox.com>

Thanks. Applied.

-- Hal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/opensm/osm_port_info_rcv.c b/opensm/osm_port_info_rcv.c
index d813f1a..eb68dbf 100644
--- a/opensm/osm_port_info_rcv.c
+++ b/opensm/osm_port_info_rcv.c
@@ -796,7 +796,8 @@  void osm_pi_rcv_process(IN void *context, IN void *data)
 		/*
 		   Get the tables on the physp.
 		 */
-		if (p_physp->need_update)
+		if (p_physp->need_update || (p_node->sw &&
+					     p_node->sw->need_update))
 			pi_rcv_get_pkey_slvl_vla_tables(sm, p_node, p_physp);
 
 	}