Skip to content

Commit db9d8a7

Browse files
Krishna GudipatiJames Bottomley
authored andcommitted
[SCSI] bfa: Revised Fabric Assigned Address(FAA) feature implementation.
Made changes to the Fabric Assigned Address(FAA) feature implementation. Introduced the IOCFC state machine, which now handles the FAA logic, IOC and BFA sub-modules enablement. Removed un-wanted FAA enable/disable routines; FAA is enabled by default. Signed-off-by: Krishna Gudipati <kgudipat@brocade.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent a6b963d commit db9d8a7

10 files changed

Lines changed: 525 additions & 380 deletions

File tree

‎drivers/scsi/bfa/bfa.h‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ struct bfa_faa_args_s {
225225
};
226226

227227
struct bfa_iocfc_s {
228+
bfa_fsm_t fsm;
228229
struct bfa_s *bfa;
229230
struct bfa_iocfc_cfg_s cfg;
230-
int action;
231231
u32 req_cq_pi[BFI_IOC_MAX_CQS];
232232
u32 rsp_cq_ci[BFI_IOC_MAX_CQS];
233233
u8 hw_qid[BFI_IOC_MAX_CQS];
@@ -236,7 +236,9 @@ struct bfa_iocfc_s {
236236
struct bfa_cb_qe_s dis_hcb_qe;
237237
struct bfa_cb_qe_s en_hcb_qe;
238238
struct bfa_cb_qe_s stats_hcb_qe;
239-
bfa_boolean_t cfgdone;
239+
bfa_boolean_t submod_enabled;
240+
bfa_boolean_t cb_reqd; /* Driver call back reqd */
241+
bfa_status_t op_status; /* Status of bfa iocfc op */
240242

241243
struct bfa_dma_s cfg_info;
242244
struct bfi_iocfc_cfg_s *cfginfo;
@@ -341,8 +343,6 @@ void bfa_hwct_msix_getvecs(struct bfa_s *bfa, u32 *vecmap, u32 *nvecs,
341343
void bfa_hwct_msix_get_rme_range(struct bfa_s *bfa, u32 *start,
342344
u32 *end);
343345
void bfa_iocfc_get_bootwwns(struct bfa_s *bfa, u8 *nwwns, wwn_t *wwns);
344-
wwn_t bfa_iocfc_get_pwwn(struct bfa_s *bfa);
345-
wwn_t bfa_iocfc_get_nwwn(struct bfa_s *bfa);
346346
int bfa_iocfc_get_pbc_vports(struct bfa_s *bfa,
347347
struct bfi_pbc_vport_s *pbc_vport);
348348

@@ -428,7 +428,6 @@ bfa_status_t bfa_iocfc_israttr_set(struct bfa_s *bfa,
428428

429429
void bfa_iocfc_enable(struct bfa_s *bfa);
430430
void bfa_iocfc_disable(struct bfa_s *bfa);
431-
void bfa_iocfc_cb_dconf_modinit(struct bfa_s *bfa, bfa_status_t status);
432431
#define bfa_timer_start(_bfa, _timer, _timercb, _arg, _timeout) \
433432
bfa_timer_begin(&(_bfa)->timer_mod, _timer, _timercb, _arg, _timeout)
434433

0 commit comments

Comments
 (0)