[SCSI] srp_transport: add target driver support

This adds minimum target driver support:

- srp_rport_{add,del} calls scsi_tgt_it_nexus_{create,destroy} for
target drivers.

- add a callback to notify target drivers of the nexus operation
results to srp_function_template.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
FUJITA Tomonori
2007-07-11 15:08:19 +09:00
committed by James Bottomley
parent 2c47f9efbe
commit 62fe88261b
3 changed files with 27 additions and 2 deletions

View File

@@ -21,7 +21,8 @@ struct srp_rport {
};
struct srp_function_template {
/* later */
/* for target drivers */
int (* it_nexus_response)(struct Scsi_Host *, u64, int);
};
extern struct scsi_transport_template *