lpfc 8.1.2 : Handling of ELS commands RRQ, RPS, RPL and LIRR correctly
Subsystems (2)
PATCH 4/22 lpfc 8.1.2 : Handling of ELS commands RRQ, RPS, RPL and LIRR correctly
Handling of ELS commands RRQ, RPS, RPL and LIRR correctly
Signed-off-by James Smart <[email protected]>
drivers/scsi/lpfc/lpfc_mbox.c +17 -0
@@ -336,6 +336,23 @@ lpfc_read_config(struct lpfc_hba * phba,return ; } +/*************************************************/ +/* lpfc_read_lnk_stat Issue a READ LINK STATUS */ +/* mailbox command */ +/*************************************************/ +void +lpfc_read_lnk_stat (struct lpfc_hba * phba,LPFC_MBOXQ_t * pmb) +{ +MAILBOX_t *mb; + + mb = &pmb->mb; +memset (pmb,0 ,sizeof (LPFC_MBOXQ_t)); + + mb->mbxCommand =MBX_READ_LNK_STAT ; + mb->mbxOwner =OWN_HOST ; +return ; +} +/********************************************/ /* lpfc_reg_login Issue a REG_LOGIN */ /* mailbox command */
drivers/scsi/lpfc/lpfc_crtn.h +1 -0
@@ -26,6 +26,7 @@ void lpfc_clear_la(struct lpfc_hba *, LPvoid lpfc_config_link (struct lpfc_hba *,LPFC_MBOXQ_t *);int lpfc_read_sparam (struct lpfc_hba *,LPFC_MBOXQ_t *);void lpfc_read_config (struct lpfc_hba *,LPFC_MBOXQ_t *); +void lpfc_read_lnk_stat (struct lpfc_hba *,LPFC_MBOXQ_t *);void lpfc_set_slim (struct lpfc_hba *,LPFC_MBOXQ_t *,uint32_t ,uint32_t );int lpfc_reg_login (struct lpfc_hba *,uint32_t ,uint8_t *,LPFC_MBOXQ_t *,uint32_t );
drivers/scsi/lpfc/lpfc_hw.h +40 -7
79 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_els.c +248 -26
308 lines not on this page · raw message
drivers/scsi/lpfc/lpfc.h +3 -1
@@ -121,7 +121,9 @@ struct lpfc_stats {uint32_t elsRcvLOGO;uint32_t elsRcvPRLO;uint32_t elsRcvPRLI; -uint32_t elsRcvRRQ; +uint32_t elsRcvLIRR; +uint32_t elsRcvRPS; +uint32_t elsRcvRPL;uint32_t elsXmitFLOGI;uint32_t elsXmitPLOGI;uint32_t elsXmitPRLI;