Skip to content

Commit 2ec331a

Browse files
Vijaya Mohan GuvvaJames Bottomley
authored andcommitted
[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>
1 parent 7593e52 commit 2ec331a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/scsi/bfa/bfa_svc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6758,7 +6758,7 @@ bfa_dport_scn(struct bfa_dport_s *dport, struct bfi_diag_dport_scn_s *msg)
67586758
dport->rp_pwwn = msg->info.teststart.pwwn;
67596759
dport->rp_nwwn = msg->info.teststart.nwwn;
67606760
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);
67626762
break;
67636763

67646764
case BFI_DPORT_SCN_SUBTESTSTART:

‎drivers/scsi/bfa/bfi.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,8 @@ struct bfi_diag_dport_scn_teststart_s {
11441144
wwn_t pwwn; /* switch port wwn. 8 bytes */
11451145
wwn_t nwwn; /* switch node wwn. 8 bytes */
11461146
u8 type; /* bfa_diag_dport_test_type_e */
1147-
u8 rsvd[3];
1147+
u8 mode; /* bfa_diag_dport_test_opmode */
1148+
u8 rsvd[2];
11481149
u32 numfrm; /* from switch uint in 1M */
11491150
};
11501151

0 commit comments

Comments
 (0)