remove dead event counters from lpfc
PATCH 1/1 remove dead event counters from lpfc
lpfc.h +0 -22
@@ -122,15 +122,6 @@struct lpfc_lun ;struct lpfc_scsi_buf ; -/* This should correspond with the HBA API event structure */ -struct lpfc_hba_event { -uint32_t fc_eventcode; -uint32_t fc_evdata1; -uint32_t fc_evdata2; -uint32_t fc_evdata3; -uint32_t fc_evdata4; -}; -/* * lpfc stat counters */
@@ -251,16 +242,8 @@struct timer_list fc_fdmitmo;/* fdmi timer */ -void *fc_evt_head;/* waiting for event queue */ -void *fc_evt_tail;/* waiting for event queue */ - -uint16_t hba_event_put;/* hbaevent event put word anchor */ -uint16_t hba_event_get;/* hbaevent event get word anchor */ -uint32_t hba_event_missed;/* hbaevent missed event word anchor */ uint32_t sid_cnt;/* SCSI ID counter */ -struct lpfc_hba_event hbaevt[MAX_HBAEVT ]; -#define FC_CPQ_LUNMAP 0x1/* SCSI passthru interface LUN 0 mapping */ /* These fields used to be binfo */
@@ -361,7 +344,6 @@uint16_t fc_unmap_cnt;uint16_t fc_map_cnt;struct lpfc_nodelist fc_fcpnodev;/* nodelist entry for no device */ -uint32_t nport_event_cnt;/* timestamp for nlplist entry */ struct lpfc_target *device_queue_hash[MAX_FCP_TARGET ];#define LPFC_RPI_HASH_SIZE 64
@@ -405,10 +387,6 @@void *CAregaddr;/* virtual address for chip attn reg */ void *HSregaddr;/* virtual address for host status reg */ void *HCregaddr;/* virtual address for host ctl reg */ -wait_queue_head_t linkevtwq; -wait_queue_head_t rscnevtwq; -wait_queue_head_t ctevtwq; -uint8_t brd_no;/* FC board number */ uint8_t fc_busflag;/* bus access flags */
lpfc_crtn.h +0 -3
@@ -163,9 +163,6 @@void lpfc_decode_firmware_rev (struct lpfc_hba *,char *,int );uint8_t *lpfc_get_lpfchba_info (struct lpfc_hba *,uint8_t *);int lpfc_fcp_abort (struct lpfc_hba *,int ,int ,int ); -int lpfc_put_event (struct lpfc_hba *,uint32_t ,uint32_t ,void *,void *); -int lpfc_hba_put_event (struct lpfc_hba *,uint32_t ,uint32_t ,uint32_t , -uint32_t ,uint32_t );void lpfc_get_hba_model_desc (struct lpfc_hba *,uint8_t *,uint8_t *);
lpfc_ct.c +0 -16
@@ -98,7 +98,6 @@uint32_t count;IOCB_t *icmd;int i; -int status;int go_exit =0 ;struct list_head head;
@@ -165,21 +164,6 @@ icmd->ulpBdeCount =0 ; } -/* -* if not early-exiting and there is pmbuf, -* then do FC_REG_CT_EVENT for libdfc -*/ -if (go_exit ==0 && pmbuf !=0 ) { - status =lpfc_put_event (phba,FC_REG_CT_EVENT , ctx, - pmbuf, - (void *) (unsigned long )count); - -if ( status) { -/* Need to free IOCB buffer ? */ -return ; - } - } - exit_unsol_event:list_for_each_entry_safe (matp, next_matp, &pmbuf->list, list) {lpfc_mbuf_free (phba, matp->virt, matp->phys);
lpfc_els.c +0 -4
@@ -2595,10 +2595,6 @@ {struct lpfc_nodelist *ndlp; -lpfc_hba_put_event (phba,HBA_EVENT_RSCN , phba->fc_myDID, - phba->fc_myDID,0 ,0 ); -lpfc_put_event (phba,FC_REG_RSCN_EVENT , phba->fc_myDID,0 ,0 ); -/* RSCN processed */ lpfc_printf_log(phba, KERN_INFO,
lpfc_fcp.c +0 -131
143 lines not on this page · raw message
lpfc_hbadisc.c +0 -21
@@ -136,11 +136,6 @@ phba->hba_state =LPFC_LINK_DOWN ; phba->fc_flag |=FC_LNK_DOWN ; -lpfc_put_event (phba,FC_REG_LINK_EVENT ,0 ,0 ,0 ); - phba->nport_event_cnt++; - -lpfc_hba_put_event (phba,HBA_EVENT_LINK_DOWN , phba->fc_myDID,0 ,0 ,0 ); -/* Clean up any firmware default rpi's */ if ((mb =mempool_alloc (phba->mbox_mem_pool,GFP_ATOMIC ))) {lpfc_unreg_did (phba,0xffffffff , mb);
@@ -294,12 +289,6 @@ FC_LD_TIMEOUT); phba->fc_ns_retry =0 ; -lpfc_put_event (phba,FC_REG_LINK_EVENT ,0 ,0 ,0 ); - phba->nport_event_cnt++; - -lpfc_hba_put_event (phba,HBA_EVENT_LINK_UP , phba->fc_myDID, - phba->fc_topology,0 , phba->fc_linkspeed); -if (phba->fc_linkdown.function) {del_timer_sync (&phba->fc_linkdown); phba->fc_linkdown.function =0 ;
@@ -991,7 +980,6 @@ nlp->nlp_flag &= ~NLP_MAPPED_LIST ; phba->fc_map_cnt--;list_del (&nlp->nlp_listp); - phba->nport_event_cnt++;/* Must call before binding is removed */ lpfc_set_failmask(phba, nlp, LPFC_DEV_DISCONNECTED,
@@ -1017,7 +1005,6 @@ ~(NLP_UNMAPPED_LIST |NLP_TGT_NO_SCSIID ); phba->fc_unmap_cnt--;list_del (&nlp->nlp_listp); - phba->nport_event_cnt++; }else if (nlp->nlp_flag &NLP_PLOGI_LIST ) {return (0 );/* Already on plogi list */
@@ -1062,7 +1049,6 @@ nlp->nlp_flag &= ~NLP_MAPPED_LIST ; phba->fc_map_cnt--;list_del (&nlp->nlp_listp); - phba->nport_event_cnt++;/* Must call before binding is removed */ lpfc_set_failmask(phba, nlp, LPFC_DEV_DISAPPEARED,
@@ -1094,9 +1080,6 @@ ~(NLP_UNMAPPED_LIST |NLP_TGT_NO_SCSIID ); phba->fc_unmap_cnt--;list_del (&nlp->nlp_listp); - phba->nport_event_cnt++; - - }else if (nlp->nlp_flag &NLP_PLOGI_LIST ) { nlp->nlp_flag &= ~NLP_PLOGI_LIST ; phba->fc_plogi_cnt--;
@@ -1177,7 +1160,6 @@/* Put it at the end of the unmapped list */ list_add_tail (&nlp->nlp_listp, &phba->fc_nlpunmap_list); - phba->nport_event_cnt++; phba->fc_unmap_cnt++; nlp->nlp_type |=NLP_FC_NODE ; nlp->nlp_flag |=NLP_UNMAPPED_LIST ;
@@ -1229,7 +1211,6 @@/* Put it at the end of the mapped list */ list_add_tail (&nlp->nlp_listp, &phba->fc_nlpmap_list); - phba->nport_event_cnt++; phba->fc_map_cnt++; nlp->nlp_flag |=NLP_MAPPED_LIST ; nlp->nlp_type |=NLP_FCP_TARGET ;
@@ -1749,7 +1730,6 @@ NLP_TGT_NO_SCSIID); phba->fc_unmap_cnt--;list_del (&ndlp->nlp_listp); - phba->nport_event_cnt++; }return (ndlp);
@@ -1777,7 +1757,6 @@ ndlp->nlp_flag &= ~NLP_MAPPED_LIST ; phba->fc_map_cnt--;list_del (&ndlp->nlp_listp); - phba->nport_event_cnt++;/* Must call before binding is removed */