[IBAL] Initiate IOC sweep when SM change
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 Sep 2006 19:00:29 +0000 (19:00 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 Sep 2006 19:00:29 +0000 (19:00 +0000)
Submitted by Yossi Leybovich (sleybo@mellanox.co.il)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@493 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_ioc_pnp.c

index 487019b..801ce6e 100644 (file)
@@ -1208,6 +1208,10 @@ __ioc_pnp_cb(
 \r
        AL_ENTER( AL_DBG_PNP );\r
 \r
+       AL_PRINT( TRACE_LEVEL_INFORMATION, AL_DBG_PNP,\r
+               ("p_pnp_rec->pnp_event = 0x%x (%s)\n",\r
+               p_pnp_rec->pnp_event, ib_get_pnp_event_str( p_pnp_rec->pnp_event )) );\r
+\r
        switch( p_pnp_rec->pnp_event )\r
        {\r
        case IB_PNP_PORT_ADD:\r
@@ -1216,6 +1220,7 @@ __ioc_pnp_cb(
                status = __create_ioc_pnp_svc( p_pnp_rec );\r
                break;\r
 \r
+       case IB_PNP_SM_CHANGE:\r
        case IB_PNP_PORT_ACTIVE:\r
                /* Initiate a sweep - delay a bit to allow the ports to come up. */\r
                if( g_ioc_poll_interval )\r