aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/lport_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/lport_api.c')
-rw-r--r--drivers/scsi/bfa/lport_api.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/bfa/lport_api.c b/drivers/scsi/bfa/lport_api.c
index 8f51a83f1834..d3907d184e2b 100644
--- a/drivers/scsi/bfa/lport_api.c
+++ b/drivers/scsi/bfa/lport_api.c
@@ -43,7 +43,7 @@ bfa_fcs_cfg_base_port(struct bfa_fcs_s *fcs, struct bfa_port_cfg_s *port_cfg)
43struct bfa_fcs_port_s * 43struct bfa_fcs_port_s *
44bfa_fcs_get_base_port(struct bfa_fcs_s *fcs) 44bfa_fcs_get_base_port(struct bfa_fcs_s *fcs)
45{ 45{
46 return (&fcs->fabric.bport); 46 return &fcs->fabric.bport;
47} 47}
48 48
49wwn_t 49wwn_t
@@ -88,11 +88,10 @@ bfa_fcs_port_get_rport(struct bfa_fcs_port_s *port, wwn_t wwn, int index,
88 } 88 }
89 89
90 bfa_trc(fcs, i); 90 bfa_trc(fcs, i);
91 if (rport) { 91 if (rport)
92 return rport->pwwn; 92 return rport->pwwn;
93 } else { 93 else
94 return (wwn_t) 0; 94 return (wwn_t) 0;
95 }
96} 95}
97 96
98void 97void
@@ -157,7 +156,7 @@ bfa_fcs_port_get_rport_max_speed(struct bfa_fcs_port_s *port)
157 /* 156 /*
158 * Get Physical port's current speed 157 * Get Physical port's current speed
159 */ 158 */
160 bfa_pport_get_attr(port->fcs->bfa, &pport_attr); 159 bfa_fcport_get_attr(port->fcs->bfa, &pport_attr);
161 pport_speed = pport_attr.speed; 160 pport_speed = pport_attr.speed;
162 bfa_trc(fcs, pport_speed); 161 bfa_trc(fcs, pport_speed);
163 162
@@ -198,17 +197,17 @@ bfa_fcs_lookup_port(struct bfa_fcs_s *fcs, u16 vf_id, wwn_t lpwwn)
198 vf = bfa_fcs_vf_lookup(fcs, vf_id); 197 vf = bfa_fcs_vf_lookup(fcs, vf_id);
199 if (vf == NULL) { 198 if (vf == NULL) {
200 bfa_trc(fcs, vf_id); 199 bfa_trc(fcs, vf_id);
201 return (NULL); 200 return NULL;
202 } 201 }
203 202
204 if (!lpwwn || (vf->bport.port_cfg.pwwn == lpwwn)) 203 if (!lpwwn || (vf->bport.port_cfg.pwwn == lpwwn))
205 return (&vf->bport); 204 return &vf->bport;
206 205
207 vport = bfa_fcs_fabric_vport_lookup(vf, lpwwn); 206 vport = bfa_fcs_fabric_vport_lookup(vf, lpwwn);
208 if (vport) 207 if (vport)
209 return (&vport->lport); 208 return &vport->lport;
210 209
211 return (NULL); 210 return NULL;
212} 211}
213 212
214/* 213/*
@@ -236,7 +235,8 @@ bfa_fcs_port_get_info(struct bfa_fcs_port_s *port,
236 port_info->port_wwn = bfa_fcs_port_get_pwwn(port); 235 port_info->port_wwn = bfa_fcs_port_get_pwwn(port);
237 port_info->node_wwn = bfa_fcs_port_get_nwwn(port); 236 port_info->node_wwn = bfa_fcs_port_get_nwwn(port);
238 237
239 port_info->max_vports_supp = bfa_fcs_vport_get_max(port->fcs); 238 port_info->max_vports_supp =
239 bfa_lps_get_max_vport(port->fcs->bfa);
240 port_info->num_vports_inuse = 240 port_info->num_vports_inuse =
241 bfa_fcs_fabric_vport_count(port->fabric); 241 bfa_fcs_fabric_vport_count(port->fabric);
242 port_info->max_rports_supp = BFA_FCS_MAX_RPORTS_SUPP; 242 port_info->max_rports_supp = BFA_FCS_MAX_RPORTS_SUPP;