@@ -979,7 +979,7 @@ lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
979
979
phba -> fcoe_cvl_eventtag_attn =
980
980
phba -> fcoe_cvl_eventtag ;
981
981
lpfc_printf_log (phba , KERN_WARNING , LOG_FIP | LOG_ELS ,
982
- "2611 FLOGI failed on FCF (x%x), "
982
+ "2611 FLOGI FCF (x%x), "
983
983
"status:x%x/x%x, tmo:x%x, perform "
984
984
"roundrobin FCF failover\n" ,
985
985
phba -> fcf .current_rec .fcf_indx ,
@@ -997,11 +997,11 @@ lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
997
997
if (!(ulp_status == IOSTAT_LOCAL_REJECT &&
998
998
((ulp_word4 & IOERR_PARAM_MASK ) ==
999
999
IOERR_LOOP_OPEN_FAILURE )))
1000
- lpfc_printf_vlog (vport , KERN_ERR , LOG_TRACE_EVENT ,
1001
- "2858 FLOGI failure Status:x%x/x%x TMO"
1002
- ":x%x Data x%lx x%x\n" ,
1003
- ulp_status , ulp_word4 , tmo ,
1004
- phba -> hba_flag , phba -> fcf .fcf_flag );
1000
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
1001
+ "2858 FLOGI Status:x%x/x%x TMO"
1002
+ ":x%x Data x%lx x%x\n" ,
1003
+ ulp_status , ulp_word4 , tmo ,
1004
+ phba -> hba_flag , phba -> fcf .fcf_flag );
1005
1005
1006
1006
/* Check for retry */
1007
1007
if (lpfc_els_retry (phba , cmdiocb , rspiocb )) {
@@ -1023,7 +1023,7 @@ lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
1023
1023
lpfc_nlp_put (ndlp );
1024
1024
1025
1025
lpfc_printf_vlog (vport , KERN_WARNING , LOG_ELS ,
1026
- "0150 FLOGI failure Status:x%x/x%x "
1026
+ "0150 FLOGI Status:x%x/x%x "
1027
1027
"xri x%x TMO:x%x refcnt %d\n" ,
1028
1028
ulp_status , ulp_word4 , cmdiocb -> sli4_xritag ,
1029
1029
tmo , kref_read (& ndlp -> kref ));
@@ -1032,11 +1032,11 @@ lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
1032
1032
if (!(ulp_status == IOSTAT_LOCAL_REJECT &&
1033
1033
((ulp_word4 & IOERR_PARAM_MASK ) ==
1034
1034
IOERR_LOOP_OPEN_FAILURE ))) {
1035
- /* FLOGI failure */
1036
- lpfc_printf_vlog (vport , KERN_ERR , LOG_TRACE_EVENT ,
1037
- "0100 FLOGI failure Status:x%x/x%x "
1038
- "TMO:x%x\n" ,
1039
- ulp_status , ulp_word4 , tmo );
1035
+ /* Warn FLOGI status */
1036
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
1037
+ "0100 FLOGI Status:x%x/x%x "
1038
+ "TMO:x%x\n" ,
1039
+ ulp_status , ulp_word4 , tmo );
1040
1040
goto flogifail ;
1041
1041
}
1042
1042
@@ -1964,16 +1964,16 @@ lpfc_cmpl_els_rrq(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
1964
1964
1965
1965
if (ulp_status ) {
1966
1966
/* Check for retry */
1967
- /* RRQ failed Don't print the vport to vport rjts */
1967
+ /* Warn RRQ status Don't print the vport to vport rjts */
1968
1968
if (ulp_status != IOSTAT_LS_RJT ||
1969
1969
(((ulp_word4 ) >> 16 != LSRJT_INVALID_CMD ) &&
1970
1970
((ulp_word4 ) >> 16 != LSRJT_UNABLE_TPC )) ||
1971
1971
(phba )-> pport -> cfg_log_verbose & LOG_ELS )
1972
- lpfc_printf_vlog (vport , KERN_ERR , LOG_TRACE_EVENT ,
1973
- "2881 RRQ failure DID:%06X Status:"
1974
- "x%x/x%x\n" ,
1975
- ndlp -> nlp_DID , ulp_status ,
1976
- ulp_word4 );
1972
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
1973
+ "2881 RRQ DID:%06X Status:"
1974
+ "x%x/x%x\n" ,
1975
+ ndlp -> nlp_DID , ulp_status ,
1976
+ ulp_word4 );
1977
1977
}
1978
1978
1979
1979
lpfc_clr_rrq_active (phba , rrq -> xritag , rrq );
@@ -2077,16 +2077,16 @@ lpfc_cmpl_els_plogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2077
2077
}
2078
2078
goto out ;
2079
2079
}
2080
- /* PLOGI failed Don't print the vport to vport rjts */
2080
+ /* Warn PLOGI status Don't print the vport to vport rjts */
2081
2081
if (ulp_status != IOSTAT_LS_RJT ||
2082
2082
(((ulp_word4 ) >> 16 != LSRJT_INVALID_CMD ) &&
2083
2083
((ulp_word4 ) >> 16 != LSRJT_UNABLE_TPC )) ||
2084
2084
(phba )-> pport -> cfg_log_verbose & LOG_ELS )
2085
- lpfc_printf_vlog (vport , KERN_ERR , LOG_TRACE_EVENT ,
2086
- "2753 PLOGI failure DID:%06X "
2087
- "Status:x%x/x%x\n" ,
2088
- ndlp -> nlp_DID , ulp_status ,
2089
- ulp_word4 );
2085
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
2086
+ "2753 PLOGI DID:%06X "
2087
+ "Status:x%x/x%x\n" ,
2088
+ ndlp -> nlp_DID , ulp_status ,
2089
+ ulp_word4 );
2090
2090
2091
2091
/* Do not call DSM for lpfc_els_abort'ed ELS cmds */
2092
2092
if (!lpfc_error_lost_link (vport , ulp_status , ulp_word4 ))
@@ -2323,7 +2323,6 @@ lpfc_cmpl_els_prli(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2323
2323
struct lpfc_vport * vport = cmdiocb -> vport ;
2324
2324
struct lpfc_nodelist * ndlp ;
2325
2325
char * mode ;
2326
- u32 loglevel ;
2327
2326
u32 ulp_status ;
2328
2327
u32 ulp_word4 ;
2329
2328
bool release_node = false;
@@ -2372,17 +2371,14 @@ lpfc_cmpl_els_prli(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2372
2371
* could be expected.
2373
2372
*/
2374
2373
if (test_bit (FC_FABRIC , & vport -> fc_flag ) ||
2375
- vport -> cfg_enable_fc4_type != LPFC_ENABLE_BOTH ) {
2376
- mode = KERN_ERR ;
2377
- loglevel = LOG_TRACE_EVENT ;
2378
- } else {
2374
+ vport -> cfg_enable_fc4_type != LPFC_ENABLE_BOTH )
2375
+ mode = KERN_WARNING ;
2376
+ else
2379
2377
mode = KERN_INFO ;
2380
- loglevel = LOG_ELS ;
2381
- }
2382
2378
2383
- /* PRLI failed */
2384
- lpfc_printf_vlog (vport , mode , loglevel ,
2385
- "2754 PRLI failure DID:%06X Status:x%x/x%x, "
2379
+ /* Warn PRLI status */
2380
+ lpfc_printf_vlog (vport , mode , LOG_ELS ,
2381
+ "2754 PRLI DID:%06X Status:x%x/x%x, "
2386
2382
"data: x%x x%x x%x\n" ,
2387
2383
ndlp -> nlp_DID , ulp_status ,
2388
2384
ulp_word4 , ndlp -> nlp_state ,
@@ -2854,11 +2850,11 @@ lpfc_cmpl_els_adisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
2854
2850
}
2855
2851
goto out ;
2856
2852
}
2857
- /* ADISC failed */
2858
- lpfc_printf_vlog (vport , KERN_ERR , LOG_TRACE_EVENT ,
2859
- "2755 ADISC failure DID:%06X Status:x%x/x%x\n" ,
2860
- ndlp -> nlp_DID , ulp_status ,
2861
- ulp_word4 );
2853
+ /* Warn ADISC status */
2854
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
2855
+ "2755 ADISC DID:%06X Status:x%x/x%x\n" ,
2856
+ ndlp -> nlp_DID , ulp_status ,
2857
+ ulp_word4 );
2862
2858
lpfc_disc_state_machine (vport , ndlp , cmdiocb ,
2863
2859
NLP_EVT_CMPL_ADISC );
2864
2860
@@ -3045,12 +3041,12 @@ lpfc_cmpl_els_logo(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
3045
3041
* discovery. The PLOGI will retry.
3046
3042
*/
3047
3043
if (ulp_status ) {
3048
- /* LOGO failed */
3049
- lpfc_printf_vlog (vport , KERN_ERR , LOG_TRACE_EVENT ,
3050
- "2756 LOGO failure , No Retry DID:%06X "
3051
- "Status:x%x/x%x\n" ,
3052
- ndlp -> nlp_DID , ulp_status ,
3053
- ulp_word4 );
3044
+ /* Warn LOGO status */
3045
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
3046
+ "2756 LOGO, No Retry DID:%06X "
3047
+ "Status:x%x/x%x\n" ,
3048
+ ndlp -> nlp_DID , ulp_status ,
3049
+ ulp_word4 );
3054
3050
3055
3051
if (lpfc_error_lost_link (vport , ulp_status , ulp_word4 ))
3056
3052
skip_recovery = 1 ;
@@ -4837,11 +4833,10 @@ lpfc_els_retry(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
4837
4833
if ((phba -> sli3_options & LPFC_SLI3_NPIV_ENABLED ) &&
4838
4834
(cmd == ELS_CMD_FDISC ) &&
4839
4835
(stat .un .b .lsRjtRsnCodeExp == LSEXP_OUT_OF_RESOURCE )){
4840
- lpfc_printf_vlog (vport , KERN_ERR ,
4841
- LOG_TRACE_EVENT ,
4842
- "0125 FDISC Failed (x%x). "
4843
- "Fabric out of resources\n" ,
4844
- stat .un .lsRjtError );
4836
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
4837
+ "0125 FDISC (x%x). "
4838
+ "Fabric out of resources\n" ,
4839
+ stat .un .lsRjtError );
4845
4840
lpfc_vport_set_state (vport ,
4846
4841
FC_VPORT_NO_FABRIC_RSCS );
4847
4842
}
@@ -4877,11 +4872,10 @@ lpfc_els_retry(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
4877
4872
LSEXP_NOTHING_MORE ) {
4878
4873
vport -> fc_sparam .cmn .bbRcvSizeMsb &= 0xf ;
4879
4874
retry = 1 ;
4880
- lpfc_printf_vlog (vport , KERN_ERR ,
4881
- LOG_TRACE_EVENT ,
4882
- "0820 FLOGI Failed (x%x). "
4883
- "BBCredit Not Supported\n" ,
4884
- stat .un .lsRjtError );
4875
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
4876
+ "0820 FLOGI (x%x). "
4877
+ "BBCredit Not Supported\n" ,
4878
+ stat .un .lsRjtError );
4885
4879
}
4886
4880
break ;
4887
4881
@@ -4891,11 +4885,10 @@ lpfc_els_retry(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
4891
4885
((stat .un .b .lsRjtRsnCodeExp == LSEXP_INVALID_PNAME ) ||
4892
4886
(stat .un .b .lsRjtRsnCodeExp == LSEXP_INVALID_NPORT_ID ))
4893
4887
) {
4894
- lpfc_printf_vlog (vport , KERN_ERR ,
4895
- LOG_TRACE_EVENT ,
4896
- "0122 FDISC Failed (x%x). "
4897
- "Fabric Detected Bad WWN\n" ,
4898
- stat .un .lsRjtError );
4888
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
4889
+ "0122 FDISC (x%x). "
4890
+ "Fabric Detected Bad WWN\n" ,
4891
+ stat .un .lsRjtError );
4899
4892
lpfc_vport_set_state (vport ,
4900
4893
FC_VPORT_FABRIC_REJ_WWN );
4901
4894
}
@@ -5355,8 +5348,8 @@ lpfc_cmpl_els_rsp(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
5355
5348
u32 ulp_status , ulp_word4 , tmo , did , iotag ;
5356
5349
5357
5350
if (!vport ) {
5358
- lpfc_printf_log (phba , KERN_ERR , LOG_TRACE_EVENT ,
5359
- "3177 ELS response failed \n" );
5351
+ lpfc_printf_log (phba , KERN_WARNING , LOG_ELS ,
5352
+ "3177 null vport in ELS rsp \n" );
5360
5353
goto out ;
5361
5354
}
5362
5355
if (cmdiocb -> context_un .mbox )
@@ -9658,11 +9651,12 @@ lpfc_els_flush_cmd(struct lpfc_vport *vport)
9658
9651
if (piocb -> cmd_flag & LPFC_DRIVER_ABORTED && !mbx_tmo_err )
9659
9652
continue ;
9660
9653
9661
- /* On the ELS ring we can have ELS_REQUESTs or
9662
- * GEN_REQUESTs waiting for a response.
9654
+ /* On the ELS ring we can have ELS_REQUESTs, ELS_RSPs,
9655
+ * or GEN_REQUESTs waiting for a CQE response.
9663
9656
*/
9664
9657
ulp_command = get_job_cmnd (phba , piocb );
9665
- if (ulp_command == CMD_ELS_REQUEST64_CR ) {
9658
+ if (ulp_command == CMD_ELS_REQUEST64_WQE ||
9659
+ ulp_command == CMD_XMIT_ELS_RSP64_WQE ) {
9666
9660
list_add_tail (& piocb -> dlist , & abort_list );
9667
9661
9668
9662
/* If the link is down when flushing ELS commands
@@ -11327,10 +11321,10 @@ lpfc_cmpl_els_fdisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
11327
11321
/* Check for retry */
11328
11322
if (lpfc_els_retry (phba , cmdiocb , rspiocb ))
11329
11323
goto out ;
11330
- /* FDISC failed */
11331
- lpfc_printf_vlog (vport , KERN_ERR , LOG_TRACE_EVENT ,
11332
- "0126 FDISC failed. ( x%x/x%x)\n" ,
11333
- ulp_status , ulp_word4 );
11324
+ /* Warn FDISC status */
11325
+ lpfc_vlog_msg (vport , KERN_WARNING , LOG_ELS ,
11326
+ "0126 FDISC cmpl status: x%x/x%x)\n" ,
11327
+ ulp_status , ulp_word4 );
11334
11328
goto fdisc_failed ;
11335
11329
}
11336
11330
0 commit comments