[SCSI] bnx2fc: Support 'sequence cleanup' task

For the devices that support sequence level error recovery, based on the REC
response, the firmware has to be informed about the offset from which the
retransmission should happen. Driver initiates sequence cleanup task to
firmware so that the firmware can program the task. Upon the sequence cleanup
completion, SRR is issued to retransmit the sequence.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
Bhanu Prakash Gollapudi
2011-07-27 11:32:05 -07:00
committed by James Bottomley
parent d685759539
commit 6c5a7ce4f1
4 changed files with 237 additions and 0 deletions
+20
View File
@@ -253,6 +253,26 @@ int bnx2fc_send_rls(struct bnx2fc_rport *tgt, struct fc_frame *fp)
return rc;
}
int bnx2fc_send_rec(struct bnx2fc_cmd *orig_io_req)
{
/*
* Dummy function to enable compiling individual patches. Real function
* is in the next patch.
*/
return 0;
}
int bnx2fc_send_srr(struct bnx2fc_cmd *orig_io_req, u32 offset, u8 r_ctl)
{
/*
* Dummy function to enable compiling individual patches. Real function
* is in the next patch.
*/
return 0;
}
static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op,
void *data, u32 data_len,
void (*cb_func)(struct bnx2fc_els_cb_arg *cb_arg),