[Openib-windows] [PATCH] initiate ioc sweep when SM change

Yossi Leybovich sleybo at mellanox.co.il
Tue Sep 12 03:54:06 PDT 2006


Fab
 
IBAL issue sweep when it get PORT_ACTIVE event and every
ioc_poll_interval.
In cases the SM move the port to active and then exit , the next time
the SM will sweep the subnet the IBAL will not issue new sweep (only
after the ioc_poll_interval)
This patch initiate sweep also when IBAL get SM change event .
 
10x
Yossi 
 
 
Singed-off-by: Yossi Leybovich (sleybo at mellanox.co.il)

Index: al_ioc_pnp.c
===================================================================
--- al_ioc_pnp.c	(revision 1682)
+++ al_ioc_pnp.c	(working copy)
@@ -1208,6 +1208,11 @@
 
 	AL_ENTER( AL_DBG_PNP );
 
+	AL_PRINT( TRACE_LEVEL_INFORMATION, AL_DBG_PNP,
+		("p_pnp_rec->pnp_event = 0x%x (%s)\n",
+		p_pnp_rec->pnp_event, ib_get_pnp_event_str(
p_pnp_rec->pnp_event )) );
+
+
 	switch( p_pnp_rec->pnp_event )
 	{
 	case IB_PNP_PORT_ADD:
@@ -1216,6 +1221,7 @@
 		status = __create_ioc_pnp_svc( p_pnp_rec );
 		break;
 
+	case IB_PNP_SM_CHANGE:
 	case IB_PNP_PORT_ACTIVE:
 		/* Initiate a sweep - delay a bit to allow the ports to
come up. */
 		if( g_ioc_poll_interval )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ioc_sweep_sm_shng.patch
Type: application/octet-stream
Size: 693 bytes
Desc: ioc_sweep_sm_shng.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060912/917165b5/attachment.obj>


More information about the ofw mailing list