Commit 2d1036ae authored by Martin K. Petersen's avatar Martin K. Petersen

Revert "scsi: lpfc: ls_rjt erroneus FLOGIs"

This reverts commit 287aba25.

We killed the bad firmware and this mod is no longer necessary.
Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent de55b786
...@@ -8091,10 +8091,8 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, ...@@ -8091,10 +8091,8 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
struct ls_rjt stat; struct ls_rjt stat;
uint32_t *payload; uint32_t *payload;
uint32_t cmd, did, newnode; uint32_t cmd, did, newnode;
uint32_t vid, flag;
uint8_t rjt_exp, rjt_err = 0, init_link = 0; uint8_t rjt_exp, rjt_err = 0, init_link = 0;
IOCB_t *icmd = &elsiocb->iocb; IOCB_t *icmd = &elsiocb->iocb;
struct serv_parm *sp;
LPFC_MBOXQ_t *mbox; LPFC_MBOXQ_t *mbox;
if (!vport || !(elsiocb->context2)) if (!vport || !(elsiocb->context2))
...@@ -8245,22 +8243,6 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, ...@@ -8245,22 +8243,6 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
did, vport->port_state, ndlp->nlp_flag); did, vport->port_state, ndlp->nlp_flag);
phba->fc_stat.elsRcvFLOGI++; phba->fc_stat.elsRcvFLOGI++;
sp = (struct serv_parm *)
((uint8_t *)payload + sizeof(uint32_t));
/* Check to see if this is firmware generated */
if (sp->cmn.valid_vendor_ver_level) {
vid = be32_to_cpu(sp->un.vv.vid);
flag = be32_to_cpu(sp->un.vv.flags);
if (vid == LPFC_VV_BRCD_ID) {
/* Drop this FLOGI */
lpfc_printf_vlog(
vport, KERN_INFO, LOG_ELS,
"3316 Dropping rcv FLOGI: "
"flag x%x\n", flag);
goto lsrjt;
}
}
/* If the driver believes fabric discovery is done and is ready, /* If the driver believes fabric discovery is done and is ready,
* bounce the link. There is some descrepancy. * bounce the link. There is some descrepancy.
...@@ -8508,8 +8490,6 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, ...@@ -8508,8 +8490,6 @@ lpfc_els_unsol_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
* link and start over. * link and start over.
*/ */
if (init_link) { if (init_link) {
lpfc_printf_vlog(vport, KERN_ERR, LOG_ELS,
"3318 Resetting Link, multiple rcv FLOGIs\n");
mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); mbox = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL);
if (!mbox) if (!mbox)
return; return;
......
...@@ -525,7 +525,6 @@ struct serv_parm { /* Structure is in Big Endian format */ ...@@ -525,7 +525,6 @@ struct serv_parm { /* Structure is in Big Endian format */
struct { struct {
uint32_t vid; uint32_t vid;
#define LPFC_VV_EMLX_ID 0x454d4c58 /* EMLX */ #define LPFC_VV_EMLX_ID 0x454d4c58 /* EMLX */
#define LPFC_VV_BRCD_ID 0x42524344 /* BRCD */
uint32_t flags; uint32_t flags;
#define LPFC_VV_SUPPRESS_RSP 1 #define LPFC_VV_SUPPRESS_RSP 1
} vv; } vv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment