11/*******************************************************************
22 * This file is part of the Emulex Linux Device Driver for *
33 * Fibre Channel Host Bus Adapters. *
4- * Copyright (C) 2017-2024 Broadcom. All Rights Reserved. The term *
4+ * Copyright (C) 2017-2025 Broadcom. All Rights Reserved. The term *
55 * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. *
66 * Copyright (C) 2004-2016 Emulex. All rights reserved. *
77 * EMULEX and SLI are trademarks of Emulex. *
@@ -264,9 +264,9 @@ lpfc_ct_reject_event(struct lpfc_nodelist *ndlp,
264264ct_free_mp :
265265 kfree (mp );
266266ct_exit :
267- lpfc_printf_vlog (vport , KERN_ERR , LOG_ELS ,
268- "6440 Unsol CT: Rsp err %d Data: x%lx\n" ,
269- rc , vport -> fc_flag );
267+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
268+ "6440 Unsol CT: Rsp err %d Data: x%lx\n" ,
269+ rc , vport -> fc_flag );
270270}
271271
272272/**
@@ -313,7 +313,7 @@ lpfc_ct_handle_mibreq(struct lpfc_hba *phba, struct lpfc_iocbq *ctiocbq)
313313
314314 mi_cmd = be16_to_cpu (ct_req -> CommandResponse .bits .CmdRsp );
315315 lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
316- "6442 MI Cmd : x%x Not Supported\n" , mi_cmd );
316+ "6442 MI Cmd: x%x Not Supported\n" , mi_cmd );
317317 lpfc_ct_reject_event (ndlp , ct_req ,
318318 bf_get (wqe_ctxt_tag ,
319319 & ctiocbq -> wqe .xmit_els_rsp .wqe_com ),
@@ -2229,21 +2229,6 @@ lpfc_cmpl_ct_disc_fdmi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
22292229 /* Look for a retryable error */
22302230 if (ulp_status == IOSTAT_LOCAL_REJECT ) {
22312231 switch ((ulp_word4 & IOERR_PARAM_MASK )) {
2232- case IOERR_SLI_ABORTED :
2233- case IOERR_SLI_DOWN :
2234- /* Driver aborted this IO. No retry as error
2235- * is likely Offline->Online or some adapter
2236- * error. Recovery will try again, but if port
2237- * is not active there's no point to continue
2238- * issuing follow up FDMI commands.
2239- */
2240- if (!(phba -> sli .sli_flag & LPFC_SLI_ACTIVE )) {
2241- free_ndlp = cmdiocb -> ndlp ;
2242- lpfc_ct_free_iocb (phba , cmdiocb );
2243- lpfc_nlp_put (free_ndlp );
2244- return ;
2245- }
2246- break ;
22472232 case IOERR_ABORT_IN_PROGRESS :
22482233 case IOERR_SEQUENCE_TIMEOUT :
22492234 case IOERR_ILLEGAL_FRAME :
@@ -2269,6 +2254,9 @@ lpfc_cmpl_ct_disc_fdmi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
22692254 lpfc_ct_free_iocb (phba , cmdiocb );
22702255 lpfc_nlp_put (free_ndlp );
22712256
2257+ if (ulp_status != IOSTAT_SUCCESS )
2258+ return ;
2259+
22722260 ndlp = lpfc_findnode_did (vport , FDMI_DID );
22732261 if (!ndlp )
22742262 return ;
0 commit comments