-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SCSI] fc_transport: add target driver support
This adds minimum target driver support like the srp transport does: - fc_remote_port_{rolechg,delete} calls scsi_tgt_it_nexus_{create,destroy} for target drivers. - add callbacks to notify target drivers of the nexus and tmf operation results to fc_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>
- Loading branch information
FUJITA Tomonori
authored and
James Bottomley
committed
Oct 12, 2007
1 parent
5dc2b89
commit 7525236
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <scsi/scsi_tgt.h> | ||
|
||
#ifdef CONFIG_SCSI_FC_TGT_ATTRS | ||
static inline int fc_tgt_it_nexus_create(struct Scsi_Host *shost, u64 itn_id, | ||
char *initiator) | ||
{ | ||
return scsi_tgt_it_nexus_create(shost, itn_id, initiator); | ||
} | ||
|
||
static inline int fc_tgt_it_nexus_destroy(struct Scsi_Host *shost, u64 itn_id) | ||
{ | ||
return scsi_tgt_it_nexus_destroy(shost, itn_id); | ||
} | ||
#else | ||
static inline int fc_tgt_it_nexus_create(struct Scsi_Host *shost, u64 itn_id, | ||
char *initiator) | ||
{ | ||
return 0; | ||
} | ||
|
||
static inline int fc_tgt_it_nexus_destroy(struct Scsi_Host *shost, u64 itn_id) | ||
{ | ||
return 0; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters