]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lpfc: Fix incorrect log message reported for empty FCF record.
authorJames Smart <james.smart@avagotech.com>
Thu, 21 May 2015 17:55:29 +0000 (13:55 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 19 Oct 2015 16:10:54 +0000 (09:10 -0700)
Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
(cherry picked from commit f818ea7ad46222526bcaa3b04208775f371dc03c)

Orabug: 22029622
From dick.kennedy@avagotech.com lpfc-10.5.0.1-11.0.0.3-1.tar.gz
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/lpfc/lpfc_hbadisc.c

index 2500f15d437ff61a331f265b5dbc9c6d72e8baa1..2f16dab9a619f094ee8444148ef206c511818e8d 100644 (file)
@@ -1802,7 +1802,7 @@ lpfc_sli4_fcf_rec_mbox_parse(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq,
        dma_addr_t phys_addr;
        struct lpfc_mbx_sge sge;
        struct lpfc_mbx_read_fcf_tbl *read_fcf;
-       uint32_t shdr_status, shdr_add_status;
+       uint32_t shdr_status, shdr_add_status, if_type;
        union lpfc_sli4_cfg_shdr *shdr;
        struct fcf_record *new_fcf_record;
 
@@ -1823,9 +1823,11 @@ lpfc_sli4_fcf_rec_mbox_parse(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq,
        lpfc_sli_pcimem_bcopy(shdr, shdr,
                              sizeof(union lpfc_sli4_cfg_shdr));
        shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
+       if_type = bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf);
        shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
        if (shdr_status || shdr_add_status) {
-               if (shdr_status == STATUS_FCF_TABLE_EMPTY)
+               if (shdr_status == STATUS_FCF_TABLE_EMPTY ||
+                                       if_type == LPFC_SLI_INTF_IF_TYPE_2)
                        lpfc_printf_log(phba, KERN_ERR, LOG_FIP,
                                        "2726 READ_FCF_RECORD Indicates empty "
                                        "FCF table.\n");