diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2011-01-28 16:04:08 -0800 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-12 11:01:21 -0600 |
commit | 1a5c2d7e5c8ef239804cb08b68363e0cd2f74a3d (patch) | |
tree | 1131440f3cb543911c0df18fb64e476b27866559 /include/scsi | |
parent | 96ad846445ae33dcae1805b68752e3d5c840e3ed (diff) | |
download | op-kernel-dev-1a5c2d7e5c8ef239804cb08b68363e0cd2f74a3d.zip op-kernel-dev-1a5c2d7e5c8ef239804cb08b68363e0cd2f74a3d.tar.gz |
[SCSI] libfc: add method for setting handler for incoming exchange
Add a method for setting handler for incoming exchange.
For multi-sequence exchanges, this allows the target driver
to add a response handler for handling subsequent sequences,
and exchange manager resets.
The new function is called fc_seq_set_resp().
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libfc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index 3ae2a76..3b8f5d8 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h @@ -555,6 +555,16 @@ struct libfc_function_template { struct fc_seq *(*seq_start_next)(struct fc_seq *); /* + * Set a response handler for the exchange of the sequence. + * + * STATUS: OPTIONAL + */ + void (*seq_set_resp)(struct fc_seq *sp, + void (*resp)(struct fc_seq *, struct fc_frame *, + void *), + void *arg); + + /* * Assign a sequence for an incoming request frame. * * STATUS: OPTIONAL |