Skip to content

Commit 0aabb6b

Browse files
Quinn Tranmartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix Nport ID display value
For N2N, the NPort ID is assigned by driver in the PLOGI ELS. According to FW Spec the byte order for SID is not the same as DID. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Roman Bolshakov <[email protected]> Tested-by: Roman Bolshakov <[email protected]> Signed-off-by: Quinn Tran <[email protected]> Signed-off-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent f3f1938 commit 0aabb6b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/scsi/qla2xxx/qla_iocb.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,9 +2656,10 @@ qla24xx_els_logo_iocb(srb_t *sp, struct els_entry_24xx *els_iocb)
26562656
els_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
26572657
els_iocb->port_id[1] = sp->fcport->d_id.b.area;
26582658
els_iocb->port_id[2] = sp->fcport->d_id.b.domain;
2659-
els_iocb->s_id[0] = vha->d_id.b.al_pa;
2660-
els_iocb->s_id[1] = vha->d_id.b.area;
2661-
els_iocb->s_id[2] = vha->d_id.b.domain;
2659+
/* For SID the byte order is different than DID */
2660+
els_iocb->s_id[1] = vha->d_id.b.al_pa;
2661+
els_iocb->s_id[2] = vha->d_id.b.area;
2662+
els_iocb->s_id[0] = vha->d_id.b.domain;
26622663

26632664
if (elsio->u.els_logo.els_cmd == ELS_DCMD_PLOGI) {
26642665
els_iocb->control_flags = 0;

0 commit comments

Comments
 (0)