24 #include <linux/export.h>
25 #include <asm/unaligned.h>
56 rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type);
59 rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did);
67 fc_fill_fc_hdr(fp, r_ctl, did, lport->
port_id, fh_type,
70 return lport->
tt.exch_seq_send(lport, fp,
resp,
NULL, arg, timer_msec);
80 if (!lport->
tt.elsct_send)
98 switch (-PTR_ERR(fp)) {
100 msg =
"response no error";
103 msg =
"response timeout";
106 msg =
"response closed";
109 msg =
"response unknown error";
113 fh = fc_frame_header_get(fp);
116 switch (fc_frame_payload_op(fp)) {
124 msg =
"response unknown ELS";
129 ct = fc_frame_payload_get(fp,
sizeof(*ct));
139 msg =
"response unknown CT";
143 msg =
"short CT response";
147 msg =
"response not ELS or CT";