Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] bfa: Observed auto D-port mode instead of manual

Observed Auto mode in the HBA side while doing manual D-Port test on the
switch side. Mode is not passed to BFA from firmware when the test is
triggered by switch side. BFA just blindly using Auto mode.

Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

Vijaya Mohan Guvva and committed by
James Bottomley
2ec331aa 7593e524

+3 -2
+1 -1
drivers/scsi/bfa/bfa_svc.c
··· 6758 6758 dport->rp_pwwn = msg->info.teststart.pwwn; 6759 6759 dport->rp_nwwn = msg->info.teststart.nwwn; 6760 6760 dport->lpcnt = cpu_to_be32(msg->info.teststart.numfrm); 6761 - bfa_dport_result_start(dport, BFA_DPORT_OPMODE_AUTO); 6761 + bfa_dport_result_start(dport, msg->info.teststart.mode); 6762 6762 break; 6763 6763 6764 6764 case BFI_DPORT_SCN_SUBTESTSTART:
+2 -1
drivers/scsi/bfa/bfi.h
··· 1144 1144 wwn_t pwwn; /* switch port wwn. 8 bytes */ 1145 1145 wwn_t nwwn; /* switch node wwn. 8 bytes */ 1146 1146 u8 type; /* bfa_diag_dport_test_type_e */ 1147 - u8 rsvd[3]; 1147 + u8 mode; /* bfa_diag_dport_test_opmode */ 1148 + u8 rsvd[2]; 1148 1149 u32 numfrm; /* from switch uint in 1M */ 1149 1150 }; 1150 1151