aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_dbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_dbf.c')
-rw-r--r--drivers/s390/scsi/zfcp_dbf.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c
index 21e5316e5003..d7a550af4a25 100644
--- a/drivers/s390/scsi/zfcp_dbf.c
+++ b/drivers/s390/scsi/zfcp_dbf.c
@@ -684,7 +684,7 @@ void zfcp_dbf_san_ct_request(struct zfcp_fsf_req *fsf_req)
684 struct zfcp_wka_port *wka_port = ct->wka_port; 684 struct zfcp_wka_port *wka_port = ct->wka_port;
685 struct zfcp_adapter *adapter = wka_port->adapter; 685 struct zfcp_adapter *adapter = wka_port->adapter;
686 struct zfcp_dbf *dbf = adapter->dbf; 686 struct zfcp_dbf *dbf = adapter->dbf;
687 struct ct_hdr *hdr = sg_virt(ct->req); 687 struct fc_ct_hdr *hdr = sg_virt(ct->req);
688 struct zfcp_dbf_san_record *r = &dbf->san_buf; 688 struct zfcp_dbf_san_record *r = &dbf->san_buf;
689 struct zfcp_dbf_san_record_ct_request *oct = &r->u.ct_req; 689 struct zfcp_dbf_san_record_ct_request *oct = &r->u.ct_req;
690 int level = 3; 690 int level = 3;
@@ -697,17 +697,17 @@ void zfcp_dbf_san_ct_request(struct zfcp_fsf_req *fsf_req)
697 r->fsf_seqno = fsf_req->seq_no; 697 r->fsf_seqno = fsf_req->seq_no;
698 r->s_id = fc_host_port_id(adapter->scsi_host); 698 r->s_id = fc_host_port_id(adapter->scsi_host);
699 r->d_id = wka_port->d_id; 699 r->d_id = wka_port->d_id;
700 oct->cmd_req_code = hdr->cmd_rsp_code; 700 oct->cmd_req_code = hdr->ct_cmd;
701 oct->revision = hdr->revision; 701 oct->revision = hdr->ct_rev;
702 oct->gs_type = hdr->gs_type; 702 oct->gs_type = hdr->ct_fs_type;
703 oct->gs_subtype = hdr->gs_subtype; 703 oct->gs_subtype = hdr->ct_fs_subtype;
704 oct->options = hdr->options; 704 oct->options = hdr->ct_options;
705 oct->max_res_size = hdr->max_res_size; 705 oct->max_res_size = hdr->ct_mr_size;
706 oct->len = min((int)ct->req->length - (int)sizeof(struct ct_hdr), 706 oct->len = min((int)ct->req->length - (int)sizeof(struct fc_ct_hdr),
707 ZFCP_DBF_SAN_MAX_PAYLOAD); 707 ZFCP_DBF_SAN_MAX_PAYLOAD);
708 debug_event(dbf->san, level, r, sizeof(*r)); 708 debug_event(dbf->san, level, r, sizeof(*r));
709 zfcp_dbf_hexdump(dbf->san, r, sizeof(*r), level, 709 zfcp_dbf_hexdump(dbf->san, r, sizeof(*r), level,
710 (void *)hdr + sizeof(struct ct_hdr), oct->len); 710 (void *)hdr + sizeof(struct fc_ct_hdr), oct->len);
711 spin_unlock_irqrestore(&dbf->san_lock, flags); 711 spin_unlock_irqrestore(&dbf->san_lock, flags);
712} 712}
713 713
@@ -720,7 +720,7 @@ void zfcp_dbf_san_ct_response(struct zfcp_fsf_req *fsf_req)
720 struct zfcp_send_ct *ct = (struct zfcp_send_ct *)fsf_req->data; 720 struct zfcp_send_ct *ct = (struct zfcp_send_ct *)fsf_req->data;
721 struct zfcp_wka_port *wka_port = ct->wka_port; 721 struct zfcp_wka_port *wka_port = ct->wka_port;
722 struct zfcp_adapter *adapter = wka_port->adapter; 722 struct zfcp_adapter *adapter = wka_port->adapter;
723 struct ct_hdr *hdr = sg_virt(ct->resp); 723 struct fc_ct_hdr *hdr = sg_virt(ct->resp);
724 struct zfcp_dbf *dbf = adapter->dbf; 724 struct zfcp_dbf *dbf = adapter->dbf;
725 struct zfcp_dbf_san_record *r = &dbf->san_buf; 725 struct zfcp_dbf_san_record *r = &dbf->san_buf;
726 struct zfcp_dbf_san_record_ct_response *rct = &r->u.ct_resp; 726 struct zfcp_dbf_san_record_ct_response *rct = &r->u.ct_resp;
@@ -734,17 +734,17 @@ void zfcp_dbf_san_ct_response(struct zfcp_fsf_req *fsf_req)
734 r->fsf_seqno = fsf_req->seq_no; 734 r->fsf_seqno = fsf_req->seq_no;
735 r->s_id = wka_port->d_id; 735 r->s_id = wka_port->d_id;
736 r->d_id = fc_host_port_id(adapter->scsi_host); 736 r->d_id = fc_host_port_id(adapter->scsi_host);
737 rct->cmd_rsp_code = hdr->cmd_rsp_code; 737 rct->cmd_rsp_code = hdr->ct_cmd;
738 rct->revision = hdr->revision; 738 rct->revision = hdr->ct_rev;
739 rct->reason_code = hdr->reason_code; 739 rct->reason_code = hdr->ct_reason;
740 rct->expl = hdr->reason_code_expl; 740 rct->expl = hdr->ct_explan;
741 rct->vendor_unique = hdr->vendor_unique; 741 rct->vendor_unique = hdr->ct_vendor;
742 rct->max_res_size = hdr->max_res_size; 742 rct->max_res_size = hdr->ct_mr_size;
743 rct->len = min((int)ct->resp->length - (int)sizeof(struct ct_hdr), 743 rct->len = min((int)ct->resp->length - (int)sizeof(struct fc_ct_hdr),
744 ZFCP_DBF_SAN_MAX_PAYLOAD); 744 ZFCP_DBF_SAN_MAX_PAYLOAD);
745 debug_event(dbf->san, level, r, sizeof(*r)); 745 debug_event(dbf->san, level, r, sizeof(*r));
746 zfcp_dbf_hexdump(dbf->san, r, sizeof(*r), level, 746 zfcp_dbf_hexdump(dbf->san, r, sizeof(*r), level,
747 (void *)hdr + sizeof(struct ct_hdr), rct->len); 747 (void *)hdr + sizeof(struct fc_ct_hdr), rct->len);
748 spin_unlock_irqrestore(&dbf->san_lock, flags); 748 spin_unlock_irqrestore(&dbf->san_lock, flags);
749} 749}
750 750