diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2011-01-28 19:04:08 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-12 12:01:21 -0500 |
commit | 1a5c2d7e5c8ef239804cb08b68363e0cd2f74a3d (patch) | |
tree | 1131440f3cb543911c0df18fb64e476b27866559 /include/scsi/libfc.h | |
parent | 96ad846445ae33dcae1805b68752e3d5c840e3ed (diff) |
[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/libfc.h')
-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 3ae2a760b4f3..3b8f5d83611b 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -555,6 +555,16 @@ struct libfc_function_template { | |||
555 | struct fc_seq *(*seq_start_next)(struct fc_seq *); | 555 | struct fc_seq *(*seq_start_next)(struct fc_seq *); |
556 | 556 | ||
557 | /* | 557 | /* |
558 | * Set a response handler for the exchange of the sequence. | ||
559 | * | ||
560 | * STATUS: OPTIONAL | ||
561 | */ | ||
562 | void (*seq_set_resp)(struct fc_seq *sp, | ||
563 | void (*resp)(struct fc_seq *, struct fc_frame *, | ||
564 | void *), | ||
565 | void *arg); | ||
566 | |||
567 | /* | ||
558 | * Assign a sequence for an incoming request frame. | 568 | * Assign a sequence for an incoming request frame. |
559 | * | 569 | * |
560 | * STATUS: OPTIONAL | 570 | * STATUS: OPTIONAL |