aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/fabric.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/fabric.c')
-rw-r--r--drivers/scsi/bfa/fabric.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/bfa/fabric.c b/drivers/scsi/bfa/fabric.c
index a8b14c47b009..a4b5dd449573 100644
--- a/drivers/scsi/bfa/fabric.c
+++ b/drivers/scsi/bfa/fabric.c
@@ -36,12 +36,12 @@ BFA_TRC_FILE(FCS, FABRIC);
36#define BFA_FCS_FABRIC_RETRY_DELAY (2000) /* Milliseconds */ 36#define BFA_FCS_FABRIC_RETRY_DELAY (2000) /* Milliseconds */
37#define BFA_FCS_FABRIC_CLEANUP_DELAY (10000) /* Milliseconds */ 37#define BFA_FCS_FABRIC_CLEANUP_DELAY (10000) /* Milliseconds */
38 38
39#define bfa_fcs_fabric_set_opertype(__fabric) do { \ 39#define bfa_fcs_fabric_set_opertype(__fabric) do { \
40 if (bfa_pport_get_topology((__fabric)->fcs->bfa) \ 40 if (bfa_pport_get_topology((__fabric)->fcs->bfa) \
41 == BFA_PPORT_TOPOLOGY_P2P) \ 41 == BFA_PPORT_TOPOLOGY_P2P) \
42 (__fabric)->oper_type = BFA_PPORT_TYPE_NPORT; \ 42 (__fabric)->oper_type = BFA_PPORT_TYPE_NPORT; \
43 else \ 43 else \
44 (__fabric)->oper_type = BFA_PPORT_TYPE_NLPORT; \ 44 (__fabric)->oper_type = BFA_PPORT_TYPE_NLPORT; \
45} while (0) 45} while (0)
46 46
47/* 47/*
@@ -887,7 +887,7 @@ bfa_fcs_fabric_modsusp(struct bfa_fcs_s *fcs)
887bfa_boolean_t 887bfa_boolean_t
888bfa_fcs_fabric_is_loopback(struct bfa_fcs_fabric_s *fabric) 888bfa_fcs_fabric_is_loopback(struct bfa_fcs_fabric_s *fabric)
889{ 889{
890 return (bfa_sm_cmp_state(fabric, bfa_fcs_fabric_sm_loopback)); 890 return bfa_sm_cmp_state(fabric, bfa_fcs_fabric_sm_loopback);
891} 891}
892 892
893enum bfa_pport_type 893enum bfa_pport_type
@@ -974,7 +974,7 @@ bfa_fcs_fabric_port_delete_comp(struct bfa_fcs_fabric_s *fabric)
974int 974int
975bfa_fcs_fabric_is_online(struct bfa_fcs_fabric_s *fabric) 975bfa_fcs_fabric_is_online(struct bfa_fcs_fabric_s *fabric)
976{ 976{
977 return (bfa_sm_cmp_state(fabric, bfa_fcs_fabric_sm_online)); 977 return bfa_sm_cmp_state(fabric, bfa_fcs_fabric_sm_online);
978} 978}
979 979
980 980
@@ -1015,7 +1015,7 @@ bfa_fcs_fabric_vport_lookup(struct bfa_fcs_fabric_s *fabric, wwn_t pwwn)
1015u16 1015u16
1016bfa_fcs_fabric_vport_count(struct bfa_fcs_fabric_s *fabric) 1016bfa_fcs_fabric_vport_count(struct bfa_fcs_fabric_s *fabric)
1017{ 1017{
1018 return (fabric->num_vports); 1018 return fabric->num_vports;
1019} 1019}
1020 1020
1021/** 1021/**