aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_fcs.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs.h')
-rw-r--r--drivers/scsi/bfa/bfa_fcs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs.h b/drivers/scsi/bfa/bfa_fcs.h
index b64ca35bf6f..2b35f1b6e4f 100644
--- a/drivers/scsi/bfa/bfa_fcs.h
+++ b/drivers/scsi/bfa/bfa_fcs.h
@@ -62,6 +62,7 @@ struct bfa_fcs_s;
62#define N2N_LOCAL_PID 0x010000 62#define N2N_LOCAL_PID 0x010000
63#define N2N_REMOTE_PID 0x020000 63#define N2N_REMOTE_PID 0x020000
64#define BFA_FCS_RETRY_TIMEOUT 2000 64#define BFA_FCS_RETRY_TIMEOUT 2000
65#define BFA_FCS_MAX_NS_RETRIES 5
65#define BFA_FCS_PID_IS_WKA(pid) ((bfa_ntoh3b(pid) > 0xFFF000) ? 1 : 0) 66#define BFA_FCS_PID_IS_WKA(pid) ((bfa_ntoh3b(pid) > 0xFFF000) ? 1 : 0)
66 67
67 68
@@ -72,6 +73,8 @@ struct bfa_fcs_lport_ns_s {
72 struct bfa_fcs_lport_s *port; /* parent port */ 73 struct bfa_fcs_lport_s *port; /* parent port */
73 struct bfa_fcxp_s *fcxp; 74 struct bfa_fcxp_s *fcxp;
74 struct bfa_fcxp_wqe_s fcxp_wqe; 75 struct bfa_fcxp_wqe_s fcxp_wqe;
76 u8 num_rnnid_retries;
77 u8 num_rsnn_nn_retries;
75}; 78};
76 79
77 80
@@ -265,6 +268,7 @@ struct bfa_fcs_fabric_s;
265#define bfa_fcs_lport_get_pwwn(_lport) ((_lport)->port_cfg.pwwn) 268#define bfa_fcs_lport_get_pwwn(_lport) ((_lport)->port_cfg.pwwn)
266#define bfa_fcs_lport_get_nwwn(_lport) ((_lport)->port_cfg.nwwn) 269#define bfa_fcs_lport_get_nwwn(_lport) ((_lport)->port_cfg.nwwn)
267#define bfa_fcs_lport_get_psym_name(_lport) ((_lport)->port_cfg.sym_name) 270#define bfa_fcs_lport_get_psym_name(_lport) ((_lport)->port_cfg.sym_name)
271#define bfa_fcs_lport_get_nsym_name(_lport) ((_lport)->port_cfg.node_sym_name)
268#define bfa_fcs_lport_is_initiator(_lport) \ 272#define bfa_fcs_lport_is_initiator(_lport) \
269 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM) 273 ((_lport)->port_cfg.roles & BFA_LPORT_ROLE_FCP_IM)
270#define bfa_fcs_lport_get_nrports(_lport) \ 274#define bfa_fcs_lport_get_nrports(_lport) \
@@ -780,6 +784,7 @@ void bfa_fcs_fabric_modstart(struct bfa_fcs_s *fcs);
780void bfa_fcs_fabric_uf_recv(struct bfa_fcs_fabric_s *fabric, 784void bfa_fcs_fabric_uf_recv(struct bfa_fcs_fabric_s *fabric,
781 struct fchs_s *fchs, u16 len); 785 struct fchs_s *fchs, u16 len);
782void bfa_fcs_fabric_psymb_init(struct bfa_fcs_fabric_s *fabric); 786void bfa_fcs_fabric_psymb_init(struct bfa_fcs_fabric_s *fabric);
787void bfa_fcs_fabric_nsymb_init(struct bfa_fcs_fabric_s *fabric);
783void bfa_fcs_fabric_set_fabric_name(struct bfa_fcs_fabric_s *fabric, 788void bfa_fcs_fabric_set_fabric_name(struct bfa_fcs_fabric_s *fabric,
784 wwn_t fabric_name); 789 wwn_t fabric_name);
785u16 bfa_fcs_fabric_get_switch_oui(struct bfa_fcs_fabric_s *fabric); 790u16 bfa_fcs_fabric_get_switch_oui(struct bfa_fcs_fabric_s *fabric);