[SCSI] bfa: Replace bfa_assert() with bfa_sm_fault()
authorKrishna Gudipati <kgudipat@brocade.com>
Sat, 6 Mar 2010 03:35:02 +0000 (19:35 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 7 Mar 2010 07:24:18 +0000 (12:54 +0530)
Replace bfa_assert() with bfa_sm_fault() to get unhandled events for
debugging.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
14 files changed:
drivers/scsi/bfa/bfa_fcs_lport.c
drivers/scsi/bfa/bfa_ioim.c
drivers/scsi/bfa/bfa_itnim.c
drivers/scsi/bfa/bfa_lps.c
drivers/scsi/bfa/bfa_rport.c
drivers/scsi/bfa/bfa_tskim.c
drivers/scsi/bfa/fcpim.c
drivers/scsi/bfa/fdmi.c
drivers/scsi/bfa/ms.c
drivers/scsi/bfa/ns.c
drivers/scsi/bfa/rport.c
drivers/scsi/bfa/rport_ftrs.c
drivers/scsi/bfa/scn.c
drivers/scsi/bfa/vport.c

index 3d62e456950be0a53a238b7fb9143f290d5f105d..960ae1a7bcd0ed0383c069903c3023171d3aa5e0 100644 (file)
@@ -114,7 +114,7 @@ bfa_fcs_port_sm_uninit(struct bfa_fcs_port_s *port,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -136,7 +136,7 @@ bfa_fcs_port_sm_init(struct bfa_fcs_port_s *port, enum bfa_fcs_port_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -176,7 +176,7 @@ bfa_fcs_port_sm_online(struct bfa_fcs_port_s *port,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -214,7 +214,7 @@ bfa_fcs_port_sm_offline(struct bfa_fcs_port_s *port,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -234,7 +234,7 @@ bfa_fcs_port_sm_deleting(struct bfa_fcs_port_s *port,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
index f81d359b7089de06133afdbbffd6c5aa84e29e60..5b107abe46e5cce516667f5b760f7acf81cdabcd 100644 (file)
@@ -149,7 +149,7 @@ bfa_ioim_sm_uninit(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -194,7 +194,7 @@ bfa_ioim_sm_sgalloc(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -259,7 +259,7 @@ bfa_ioim_sm_active(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -317,7 +317,7 @@ bfa_ioim_sm_abort(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -377,7 +377,7 @@ bfa_ioim_sm_cleanup(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -419,7 +419,7 @@ bfa_ioim_sm_qfull(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -467,7 +467,7 @@ bfa_ioim_sm_abort_qfull(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -516,7 +516,7 @@ bfa_ioim_sm_cleanup_qfull(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -544,7 +544,7 @@ bfa_ioim_sm_hcb(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -577,7 +577,7 @@ bfa_ioim_sm_hcb_free(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
@@ -605,7 +605,7 @@ bfa_ioim_sm_resfree(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ioim->bfa, event);
        }
 }
 
index eabf7d38bd0942ac2dc8d0a145ce8b8ea1a081c1..a914ff2551357c5dd2f3d9e999b531bf42cea144 100644 (file)
@@ -144,7 +144,7 @@ bfa_itnim_sm_uninit(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -175,7 +175,7 @@ bfa_itnim_sm_created(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -212,7 +212,7 @@ bfa_itnim_sm_fwcreate(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -247,7 +247,7 @@ bfa_itnim_sm_fwcreate_qfull(struct bfa_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -275,7 +275,7 @@ bfa_itnim_sm_delete_pending(struct bfa_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -317,7 +317,7 @@ bfa_itnim_sm_online(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -348,7 +348,7 @@ bfa_itnim_sm_sler(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -385,7 +385,7 @@ bfa_itnim_sm_cleanup_offline(struct bfa_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -413,7 +413,7 @@ bfa_itnim_sm_cleanup_delete(struct bfa_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -442,7 +442,7 @@ bfa_itnim_sm_fwdelete(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -470,7 +470,7 @@ bfa_itnim_sm_fwdelete_qfull(struct bfa_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -502,7 +502,7 @@ bfa_itnim_sm_offline(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -538,7 +538,7 @@ bfa_itnim_sm_iocdisable(struct bfa_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -559,7 +559,7 @@ bfa_itnim_sm_deleting(struct bfa_itnim_s *itnim, enum bfa_itnim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
@@ -583,7 +583,7 @@ bfa_itnim_sm_deleting_qfull(struct bfa_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->bfa, event);
        }
 }
 
index 66b9b15f42943a4046485c4c8d767eb6f2cbe250..4c98bdab31197dd39138b680d1cd24ae48d05089 100644 (file)
@@ -121,7 +121,7 @@ bfa_lps_sm_init(struct bfa_lps_s *lps, enum bfa_lps_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(lps->bfa, event);
        }
 }
 
@@ -148,7 +148,7 @@ bfa_lps_sm_login(struct bfa_lps_s *lps, enum bfa_lps_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(lps->bfa, event);
        }
 }
 
@@ -180,7 +180,7 @@ bfa_lps_sm_loginwait(struct bfa_lps_s *lps, enum bfa_lps_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(lps->bfa, event);
        }
 }
 
@@ -219,7 +219,7 @@ bfa_lps_sm_online(struct bfa_lps_s *lps, enum bfa_lps_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(lps->bfa, event);
        }
 }
 
@@ -243,7 +243,7 @@ bfa_lps_sm_logout(struct bfa_lps_s *lps, enum bfa_lps_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(lps->bfa, event);
        }
 }
 
@@ -268,7 +268,7 @@ bfa_lps_sm_logowait(struct bfa_lps_s *lps, enum bfa_lps_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(lps->bfa, event);
        }
 }
 
index 3e1990a74258387dd24cf1968a5fad7c74fe8a45..7c509fa244e48262b3384921013a34ccee5651dd 100644 (file)
@@ -114,7 +114,7 @@ bfa_rport_sm_uninit(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_un_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -146,7 +146,7 @@ bfa_rport_sm_created(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_cr_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -183,7 +183,7 @@ bfa_rport_sm_fwcreate(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_fwc_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -224,7 +224,7 @@ bfa_rport_sm_fwcreate_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_fwc_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -296,7 +296,7 @@ bfa_rport_sm_online(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_on_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -329,7 +329,7 @@ bfa_rport_sm_fwdelete(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_fwd_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -359,7 +359,7 @@ bfa_rport_sm_fwdelete_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_fwd_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -394,7 +394,7 @@ bfa_rport_sm_offline(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_off_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -421,7 +421,7 @@ bfa_rport_sm_deleting(struct bfa_rport_s *rp, enum bfa_rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -446,7 +446,7 @@ bfa_rport_sm_deleting_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -477,7 +477,7 @@ bfa_rport_sm_delete_pending(struct bfa_rport_s *rp,
 
        default:
                bfa_stats(rp, sm_delp_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -512,7 +512,7 @@ bfa_rport_sm_offline_pending(struct bfa_rport_s *rp,
 
        default:
                bfa_stats(rp, sm_offp_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
@@ -550,7 +550,7 @@ bfa_rport_sm_iocdisable(struct bfa_rport_s *rp, enum bfa_rport_event event)
 
        default:
                bfa_stats(rp, sm_iocd_unexp);
-               bfa_assert(0);
+               bfa_sm_fault(rp->bfa, event);
        }
 }
 
index ff7a4dc0bf3c35cedc806d8a30397914222b2bb8..ad9aaaedd3f1ba28f79804fe5041108f56c2a6a8 100644 (file)
@@ -110,7 +110,7 @@ bfa_tskim_sm_uninit(struct bfa_tskim_s *tskim, enum bfa_tskim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(tskim->bfa, event);
        }
 }
 
@@ -146,7 +146,7 @@ bfa_tskim_sm_active(struct bfa_tskim_s *tskim, enum bfa_tskim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(tskim->bfa, event);
        }
 }
 
@@ -178,7 +178,7 @@ bfa_tskim_sm_cleanup(struct bfa_tskim_s *tskim, enum bfa_tskim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(tskim->bfa, event);
        }
 }
 
@@ -207,7 +207,7 @@ bfa_tskim_sm_iocleanup(struct bfa_tskim_s *tskim, enum bfa_tskim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(tskim->bfa, event);
        }
 }
 
@@ -242,7 +242,7 @@ bfa_tskim_sm_qfull(struct bfa_tskim_s *tskim, enum bfa_tskim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(tskim->bfa, event);
        }
 }
 
@@ -277,7 +277,7 @@ bfa_tskim_sm_cleanup_qfull(struct bfa_tskim_s *tskim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(tskim->bfa, event);
        }
 }
 
@@ -303,7 +303,7 @@ bfa_tskim_sm_hcb(struct bfa_tskim_s *tskim, enum bfa_tskim_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(tskim->bfa, event);
        }
 }
 
index 06f8a46d19774b3804189e9c374ef599c5a660f7..71d23d19bc9d62975aeed68b0013c481a68fcfd4 100644 (file)
@@ -126,7 +126,7 @@ bfa_fcs_itnim_sm_offline(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 
 }
@@ -161,7 +161,7 @@ bfa_fcs_itnim_sm_prli_send(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 }
 
@@ -205,7 +205,7 @@ bfa_fcs_itnim_sm_prli(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 }
 
@@ -240,7 +240,7 @@ bfa_fcs_itnim_sm_prli_retry(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 }
 
@@ -270,7 +270,7 @@ bfa_fcs_itnim_sm_hcb_online(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 }
 
@@ -298,7 +298,7 @@ bfa_fcs_itnim_sm_online(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 }
 
@@ -321,7 +321,7 @@ bfa_fcs_itnim_sm_hcb_offline(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 }
 
@@ -354,7 +354,7 @@ bfa_fcs_itnim_sm_initiator(struct bfa_fcs_itnim_s *itnim,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(itnim->fcs, event);
        }
 }
 
index d76d9220b6e678d6fe29a72e61435d8c79e5360e..e8120868701b98f173d558a8aa21161c48a73583 100644 (file)
@@ -158,7 +158,7 @@ bfa_fcs_port_fdmi_sm_offline(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -183,7 +183,7 @@ bfa_fcs_port_fdmi_sm_sending_rhba(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -230,7 +230,7 @@ bfa_fcs_port_fdmi_sm_rhba(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -258,7 +258,7 @@ bfa_fcs_port_fdmi_sm_rhba_retry(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -286,7 +286,7 @@ bfa_fcs_port_fdmi_sm_sending_rprt(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -331,7 +331,7 @@ bfa_fcs_port_fdmi_sm_rprt(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -359,7 +359,7 @@ bfa_fcs_port_fdmi_sm_rprt_retry(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -387,7 +387,7 @@ bfa_fcs_port_fdmi_sm_sending_rpa(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -431,7 +431,7 @@ bfa_fcs_port_fdmi_sm_rpa(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -459,7 +459,7 @@ bfa_fcs_port_fdmi_sm_rpa_retry(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
@@ -478,7 +478,7 @@ bfa_fcs_port_fdmi_sm_online(struct bfa_fcs_port_fdmi_s *fdmi,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(port->fcs, event);
        }
 }
 
index c96b3ca007aec0aede127cc8d88ae4c0decb9680..f0275a409fd2cca63f2b26bc034083732d846414 100644 (file)
@@ -118,7 +118,7 @@ bfa_fcs_port_ms_sm_offline(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -141,7 +141,7 @@ bfa_fcs_port_ms_sm_plogi_sending(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -190,7 +190,7 @@ bfa_fcs_port_ms_sm_plogi(struct bfa_fcs_port_ms_s *ms, enum port_ms_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -216,7 +216,7 @@ bfa_fcs_port_ms_sm_plogi_retry(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -243,7 +243,7 @@ bfa_fcs_port_ms_sm_online(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -266,7 +266,7 @@ bfa_fcs_port_ms_sm_gmal_sending(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -304,7 +304,7 @@ bfa_fcs_port_ms_sm_gmal(struct bfa_fcs_port_ms_s *ms, enum port_ms_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -330,7 +330,7 @@ bfa_fcs_port_ms_sm_gmal_retry(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -466,7 +466,7 @@ bfa_fcs_port_ms_sm_gfn_sending(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -502,7 +502,7 @@ bfa_fcs_port_ms_sm_gfn(struct bfa_fcs_port_ms_s *ms, enum port_ms_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
@@ -528,7 +528,7 @@ bfa_fcs_port_ms_sm_gfn_retry(struct bfa_fcs_port_ms_s *ms,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ms->port->fcs, event);
        }
 }
 
index 2f8b880060bbfd619306181194f777588e92a4cc..6de06a557e2d74dc6f26a7302f5485d66bd7c01a 100644 (file)
@@ -164,7 +164,7 @@ bfa_fcs_port_ns_sm_offline(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -187,7 +187,7 @@ bfa_fcs_port_ns_sm_plogi_sending(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -221,7 +221,7 @@ bfa_fcs_port_ns_sm_plogi(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -247,7 +247,7 @@ bfa_fcs_port_ns_sm_plogi_retry(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -270,7 +270,7 @@ bfa_fcs_port_ns_sm_sending_rspn_id(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -304,7 +304,7 @@ bfa_fcs_port_ns_sm_rspn_id(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -330,7 +330,7 @@ bfa_fcs_port_ns_sm_rspn_id_retry(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -353,7 +353,7 @@ bfa_fcs_port_ns_sm_sending_rft_id(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -390,7 +390,7 @@ bfa_fcs_port_ns_sm_rft_id(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -413,7 +413,7 @@ bfa_fcs_port_ns_sm_rft_id_retry(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -436,7 +436,7 @@ bfa_fcs_port_ns_sm_sending_rff_id(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -494,7 +494,7 @@ bfa_fcs_port_ns_sm_rff_id(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -517,7 +517,7 @@ bfa_fcs_port_ns_sm_rff_id_retry(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 static void
@@ -539,7 +539,7 @@ bfa_fcs_port_ns_sm_sending_gid_ft(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -575,7 +575,7 @@ bfa_fcs_port_ns_sm_gid_ft(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -598,7 +598,7 @@ bfa_fcs_port_ns_sm_gid_ft_retry(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
@@ -626,7 +626,7 @@ bfa_fcs_port_ns_sm_online(struct bfa_fcs_port_ns_s *ns,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(ns->port->fcs, event);
        }
 }
 
index df714dcdf0317ef8536af0dc088046c38ba13f43..32cf180ec791ec9e237835bac77f8fb0c3bb6983 100644 (file)
@@ -224,7 +224,7 @@ bfa_fcs_rport_sm_uninit(struct bfa_fcs_rport_s *rport, enum rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -276,7 +276,7 @@ bfa_fcs_rport_sm_plogi_sending(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -332,7 +332,7 @@ bfa_fcs_rport_sm_plogiacc_sending(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -406,7 +406,7 @@ bfa_fcs_rport_sm_plogi_retry(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -481,7 +481,7 @@ bfa_fcs_rport_sm_plogi(struct bfa_fcs_rport_s *rport, enum rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -534,7 +534,7 @@ bfa_fcs_rport_sm_hal_online(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -589,7 +589,7 @@ bfa_fcs_rport_sm_online(struct bfa_fcs_rport_s *rport, enum rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -646,7 +646,7 @@ bfa_fcs_rport_sm_nsquery_sending(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -704,7 +704,7 @@ bfa_fcs_rport_sm_nsquery(struct bfa_fcs_rport_s *rport, enum rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -754,7 +754,7 @@ bfa_fcs_rport_sm_adisc_sending(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -816,7 +816,7 @@ bfa_fcs_rport_sm_adisc(struct bfa_fcs_rport_s *rport, enum rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -846,7 +846,7 @@ bfa_fcs_rport_sm_fc4_logorcv(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -869,7 +869,7 @@ bfa_fcs_rport_sm_fc4_logosend(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -905,7 +905,7 @@ bfa_fcs_rport_sm_fc4_offline(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -951,7 +951,7 @@ bfa_fcs_rport_sm_hcb_offline(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -1011,7 +1011,7 @@ bfa_fcs_rport_sm_hcb_logorcv(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -1038,7 +1038,7 @@ bfa_fcs_rport_sm_hcb_logosend(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -1073,7 +1073,7 @@ bfa_fcs_rport_sm_logo_sending(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -1132,7 +1132,7 @@ bfa_fcs_rport_sm_offline(struct bfa_fcs_rport_s *rport, enum rport_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -1188,7 +1188,7 @@ bfa_fcs_rport_sm_nsdisc_sending(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -1249,7 +1249,7 @@ bfa_fcs_rport_sm_nsdisc_retry(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -1334,7 +1334,7 @@ bfa_fcs_rport_sm_nsdisc_sent(struct bfa_fcs_rport_s *rport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
index e1932c885ac28f5fc5740f5469503629b6765ff4..ae7bba67ae2a16ba3538032d8ef40ffc7945e3e4 100644 (file)
@@ -91,7 +91,7 @@ bfa_fcs_rpf_sm_uninit(struct bfa_fcs_rpf_s *rpf, enum rpf_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -114,7 +114,7 @@ bfa_fcs_rpf_sm_rpsc_sending(struct bfa_fcs_rpf_s *rpf, enum rpf_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -160,7 +160,7 @@ bfa_fcs_rpf_sm_rpsc(struct bfa_fcs_rpf_s *rpf, enum rpf_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -186,7 +186,7 @@ bfa_fcs_rpf_sm_rpsc_retry(struct bfa_fcs_rpf_s *rpf, enum rpf_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -206,7 +206,7 @@ bfa_fcs_rpf_sm_online(struct bfa_fcs_rpf_s *rpf, enum rpf_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 
@@ -229,7 +229,7 @@ bfa_fcs_rpf_sm_offline(struct bfa_fcs_rpf_s *rpf, enum rpf_event event)
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(rport->fcs, event);
        }
 }
 /**
index bd4771ff62c831bc961c8f4ff5142dece8118471..8fe09ba88a919ebc868200d310f72b1f6c51ee35 100644 (file)
@@ -90,7 +90,7 @@ bfa_fcs_port_scn_sm_offline(struct bfa_fcs_port_scn_s *scn,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(scn->port->fcs, event);
        }
 }
 
@@ -109,7 +109,7 @@ bfa_fcs_port_scn_sm_sending_scr(struct bfa_fcs_port_scn_s *scn,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(scn->port->fcs, event);
        }
 }
 
@@ -137,7 +137,7 @@ bfa_fcs_port_scn_sm_scr(struct bfa_fcs_port_scn_s *scn,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(scn->port->fcs, event);
        }
 }
 
@@ -157,7 +157,7 @@ bfa_fcs_port_scn_sm_scr_retry(struct bfa_fcs_port_scn_s *scn,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(scn->port->fcs, event);
        }
 }
 
@@ -171,7 +171,7 @@ bfa_fcs_port_scn_sm_online(struct bfa_fcs_port_scn_s *scn,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(scn->port->fcs, event);
        }
 }
 
index 13f7371393792b9c50c7b7e38f0fa49d927e5851..14fb7ac2bfbc59bddd492ebaaea1baaaf5bf4071 100644 (file)
@@ -122,7 +122,7 @@ bfa_fcs_vport_sm_uninit(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -165,7 +165,7 @@ bfa_fcs_vport_sm_created(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -202,7 +202,7 @@ bfa_fcs_vport_sm_offline(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -249,7 +249,7 @@ bfa_fcs_vport_sm_fdisc(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -283,7 +283,7 @@ bfa_fcs_vport_sm_fdisc_retry(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -310,7 +310,7 @@ bfa_fcs_vport_sm_online(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -339,7 +339,7 @@ bfa_fcs_vport_sm_deleting(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -387,7 +387,7 @@ bfa_fcs_vport_sm_cleanup(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }
 
@@ -419,7 +419,7 @@ bfa_fcs_vport_sm_logo(struct bfa_fcs_vport_s *vport,
                break;
 
        default:
-               bfa_assert(0);
+               bfa_sm_fault(__vport_fcs(vport), event);
        }
 }