@@ -1416,7 +1416,8 @@ zfcp_fsf_send_ct(struct zfcp_send_ct *ct, mempool_t *pool,
14161416
14171417 /* settings in QTCB */
14181418 fsf_req -> qtcb -> header .port_handle = port -> handle ;
1419- fsf_req -> qtcb -> bottom .support .service_class = adapter -> fc_service_class ;
1419+ fsf_req -> qtcb -> bottom .support .service_class =
1420+ ZFCP_FC_SERVICE_CLASS_DEFAULT ;
14201421 fsf_req -> qtcb -> bottom .support .timeout = ct -> timeout ;
14211422 fsf_req -> data = (unsigned long ) ct ;
14221423
@@ -1485,18 +1486,10 @@ zfcp_fsf_send_ct_handler(struct zfcp_fsf_req *fsf_req)
14851486 break ;
14861487
14871488 case FSF_SERVICE_CLASS_NOT_SUPPORTED :
1488- if (adapter -> fc_service_class <= 3 ) {
1489- ZFCP_LOG_INFO ("error: adapter %s does not support fc "
1490- "class %d.\n" ,
1491- zfcp_get_busid_by_port (port ),
1492- adapter -> fc_service_class );
1493- } else {
1494- ZFCP_LOG_INFO ("bug: The fibre channel class at the "
1495- "adapter %s is invalid. "
1496- "(debug info %d)\n" ,
1497- zfcp_get_busid_by_port (port ),
1498- adapter -> fc_service_class );
1499- }
1489+ ZFCP_LOG_INFO ("error: adapter %s does not support fc "
1490+ "class %d.\n" ,
1491+ zfcp_get_busid_by_port (port ),
1492+ ZFCP_FC_SERVICE_CLASS_DEFAULT );
15001493 /* stop operation for this adapter */
15011494 debug_text_exception (adapter -> erp_dbf , 0 , "fsf_s_class_nsup" );
15021495 zfcp_erp_adapter_shutdown (adapter , 0 );
@@ -1719,7 +1712,8 @@ zfcp_fsf_send_els(struct zfcp_send_els *els)
17191712
17201713 /* settings in QTCB */
17211714 fsf_req -> qtcb -> bottom .support .d_id = d_id ;
1722- fsf_req -> qtcb -> bottom .support .service_class = adapter -> fc_service_class ;
1715+ fsf_req -> qtcb -> bottom .support .service_class =
1716+ ZFCP_FC_SERVICE_CLASS_DEFAULT ;
17231717 fsf_req -> qtcb -> bottom .support .timeout = ZFCP_ELS_TIMEOUT ;
17241718 fsf_req -> data = (unsigned long ) els ;
17251719
@@ -1789,18 +1783,10 @@ static int zfcp_fsf_send_els_handler(struct zfcp_fsf_req *fsf_req)
17891783 break ;
17901784
17911785 case FSF_SERVICE_CLASS_NOT_SUPPORTED :
1792- if (adapter -> fc_service_class <= 3 ) {
1793- ZFCP_LOG_INFO ("error: adapter %s does "
1794- "not support fibrechannel class %d.\n" ,
1795- zfcp_get_busid_by_adapter (adapter ),
1796- adapter -> fc_service_class );
1797- } else {
1798- ZFCP_LOG_INFO ("bug: The fibrechannel class at "
1799- "adapter %s is invalid. "
1800- "(debug info %d)\n" ,
1801- zfcp_get_busid_by_adapter (adapter ),
1802- adapter -> fc_service_class );
1803- }
1786+ ZFCP_LOG_INFO ("error: adapter %s does not support fc "
1787+ "class %d.\n" ,
1788+ zfcp_get_busid_by_adapter (adapter ),
1789+ ZFCP_FC_SERVICE_CLASS_DEFAULT );
18041790 /* stop operation for this adapter */
18051791 debug_text_exception (adapter -> erp_dbf , 0 , "fsf_s_class_nsup" );
18061792 zfcp_erp_adapter_shutdown (adapter , 0 );
@@ -2974,8 +2960,8 @@ zfcp_fsf_open_unit(struct zfcp_erp_action *erp_action)
29742960 erp_action -> fsf_req -> qtcb -> bottom .support .fcp_lun =
29752961 erp_action -> unit -> fcp_lun ;
29762962 if (!(erp_action -> adapter -> connection_features & FSF_FEATURE_NPIV_MODE ))
2977- erp_action -> fsf_req -> qtcb -> bottom .support .option =
2978- FSF_OPEN_LUN_SUPPRESS_BOXING ;
2963+ erp_action -> fsf_req -> qtcb -> bottom .support .option =
2964+ FSF_OPEN_LUN_SUPPRESS_BOXING ;
29792965 atomic_set_mask (ZFCP_STATUS_COMMON_OPENING , & erp_action -> unit -> status );
29802966 erp_action -> fsf_req -> data = (unsigned long ) erp_action -> unit ;
29812967 erp_action -> fsf_req -> erp_action = erp_action ;
@@ -3550,7 +3536,7 @@ zfcp_fsf_send_fcp_command_task(struct zfcp_adapter *adapter,
35503536 }
35513537
35523538 /* set FC service class in QTCB (3 per default) */
3553- fsf_req -> qtcb -> bottom .io .service_class = adapter -> fc_service_class ;
3539+ fsf_req -> qtcb -> bottom .io .service_class = ZFCP_FC_SERVICE_CLASS_DEFAULT ;
35543540
35553541 /* set FCP_LUN in FCP_CMND IU in QTCB */
35563542 fcp_cmnd_iu -> fcp_lun = unit -> fcp_lun ;
@@ -3689,7 +3675,7 @@ zfcp_fsf_send_fcp_command_task_management(struct zfcp_adapter *adapter,
36893675 fsf_req -> qtcb -> header .lun_handle = unit -> handle ;
36903676 fsf_req -> qtcb -> header .port_handle = unit -> port -> handle ;
36913677 fsf_req -> qtcb -> bottom .io .data_direction = FSF_DATADIR_CMND ;
3692- fsf_req -> qtcb -> bottom .io .service_class = adapter -> fc_service_class ;
3678+ fsf_req -> qtcb -> bottom .io .service_class = ZFCP_FC_SERVICE_CLASS_DEFAULT ;
36933679 fsf_req -> qtcb -> bottom .io .fcp_cmnd_length =
36943680 sizeof (struct fcp_cmnd_iu ) + sizeof (fcp_dl_t );
36953681
@@ -3812,18 +3798,10 @@ zfcp_fsf_send_fcp_command_handler(struct zfcp_fsf_req *fsf_req)
38123798 break ;
38133799
38143800 case FSF_SERVICE_CLASS_NOT_SUPPORTED :
3815- if (fsf_req -> adapter -> fc_service_class <= 3 ) {
3816- ZFCP_LOG_NORMAL ("error: The adapter %s does "
3817- "not support fibrechannel class %d.\n" ,
3818- zfcp_get_busid_by_unit (unit ),
3819- fsf_req -> adapter -> fc_service_class );
3820- } else {
3821- ZFCP_LOG_NORMAL ("bug: The fibrechannel class at "
3822- "adapter %s is invalid. "
3823- "(debug info %d)\n" ,
3824- zfcp_get_busid_by_unit (unit ),
3825- fsf_req -> adapter -> fc_service_class );
3826- }
3801+ ZFCP_LOG_INFO ("error: adapter %s does not support fc "
3802+ "class %d.\n" ,
3803+ zfcp_get_busid_by_unit (unit ),
3804+ ZFCP_FC_SERVICE_CLASS_DEFAULT );
38273805 /* stop operation for this adapter */
38283806 debug_text_exception (fsf_req -> adapter -> erp_dbf , 0 ,
38293807 "fsf_s_class_nsup" );
0 commit comments