aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_fcport.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcport.c')
-rw-r--r--drivers/scsi/bfa/bfa_fcport.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/drivers/scsi/bfa/bfa_fcport.c b/drivers/scsi/bfa/bfa_fcport.c
index f392a7fa8c7f..a48413c230a5 100644
--- a/drivers/scsi/bfa/bfa_fcport.c
+++ b/drivers/scsi/bfa/bfa_fcport.c
@@ -326,6 +326,7 @@ static void
326bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport, 326bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport,
327 enum bfa_fcport_sm_event event) 327 enum bfa_fcport_sm_event event)
328{ 328{
329 struct bfi_pport_event_s *pevent = fcport->event_arg.i2hmsg.event;
329 bfa_trc(fcport->bfa, event); 330 bfa_trc(fcport->bfa, event);
330 331
331 switch (event) { 332 switch (event) {
@@ -335,6 +336,22 @@ bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport,
335 bfa_assert(fcport->event_cbfn); 336 bfa_assert(fcport->event_cbfn);
336 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL, 337 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
337 BFA_PL_EID_PORT_ST_CHANGE, 0, "Port Linkup"); 338 BFA_PL_EID_PORT_ST_CHANGE, 0, "Port Linkup");
339
340 if (!bfa_ioc_get_fcmode(&fcport->bfa->ioc)) {
341
342 bfa_trc(fcport->bfa, pevent->link_state.fcf.fipenabled);
343 bfa_trc(fcport->bfa, pevent->link_state.fcf.fipfailed);
344
345 if (pevent->link_state.fcf.fipfailed)
346 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
347 BFA_PL_EID_FIP_FCF_DISC, 0,
348 "FIP FCF Discovery Failed");
349 else
350 bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
351 BFA_PL_EID_FIP_FCF_DISC, 0,
352 "FIP FCF Discovered");
353 }
354
338 bfa_fcport_callback(fcport, BFA_PPORT_LINKUP); 355 bfa_fcport_callback(fcport, BFA_PPORT_LINKUP);
339 bfa_fcport_aen_post(fcport, BFA_PORT_AEN_ONLINE); 356 bfa_fcport_aen_post(fcport, BFA_PORT_AEN_ONLINE);
340 /** 357 /**
@@ -1500,8 +1517,6 @@ bfa_port_stats_query(void *cbarg)
1500 bfi_h2i_set(msg->mh, BFI_MC_FC_PORT, BFI_PPORT_H2I_GET_STATS_REQ, 1517 bfi_h2i_set(msg->mh, BFI_MC_FC_PORT, BFI_PPORT_H2I_GET_STATS_REQ,
1501 bfa_lpuid(fcport->bfa)); 1518 bfa_lpuid(fcport->bfa));
1502 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); 1519 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT);
1503
1504 return;
1505} 1520}
1506 1521
1507static void 1522static void
@@ -1526,7 +1541,6 @@ bfa_port_stats_clear(void *cbarg)
1526 bfi_h2i_set(msg->mh, BFI_MC_FC_PORT, BFI_PPORT_H2I_CLEAR_STATS_REQ, 1541 bfi_h2i_set(msg->mh, BFI_MC_FC_PORT, BFI_PPORT_H2I_CLEAR_STATS_REQ,
1527 bfa_lpuid(fcport->bfa)); 1542 bfa_lpuid(fcport->bfa));
1528 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); 1543 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT);
1529 return;
1530} 1544}
1531 1545
1532static void 1546static void
@@ -1599,7 +1613,6 @@ bfa_port_qos_stats_clear(void *cbarg)
1599 bfi_h2i_set(msg->mh, BFI_MC_FC_PORT, BFI_PPORT_H2I_CLEAR_QOS_STATS_REQ, 1613 bfi_h2i_set(msg->mh, BFI_MC_FC_PORT, BFI_PPORT_H2I_CLEAR_QOS_STATS_REQ,
1600 bfa_lpuid(fcport->bfa)); 1614 bfa_lpuid(fcport->bfa));
1601 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); 1615 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT);
1602 return;
1603} 1616}
1604 1617
1605static void 1618static void