diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2009-08-25 17:00:39 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-10 13:07:40 -0400 |
commit | 795d86f55ec3bf6280dda368f208943f1fb7d366 (patch) | |
tree | 8d123acf1e7d9d07495d702b88ef2d75dfe696b1 /include/scsi/libfc.h | |
parent | ab28f1fd3b0d14c1bd693e640decd711d5e6642a (diff) |
[SCSI] libfc: change interface for rport_create
The interface for lport->tt.rport_create() takes a fc_disc_port arg,
which is unnatural for most calls. The only reason for this was
to avoid passing in the local port as an argument, but otherwise
added to complexity.
Simplify by just using lport and fc_rport_identifiers.
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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index aa219514c96b..d888cbecd72e 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -227,8 +227,6 @@ struct fc_rport_libfc_priv { | |||
227 | #define RPORT_TO_PRIV(x) \ | 227 | #define RPORT_TO_PRIV(x) \ |
228 | (struct fc_rport_libfc_priv *)((void *)x + sizeof(struct fc_rport)); | 228 | (struct fc_rport_libfc_priv *)((void *)x + sizeof(struct fc_rport)); |
229 | 229 | ||
230 | struct fc_rport *fc_rport_rogue_create(struct fc_disc_port *); | ||
231 | |||
232 | static inline void fc_rport_set_name(struct fc_rport *rport, u64 wwpn, u64 wwnn) | 230 | static inline void fc_rport_set_name(struct fc_rport *rport, u64 wwpn, u64 wwnn) |
233 | { | 231 | { |
234 | rport->node_name = wwnn; | 232 | rport->node_name = wwnn; |
@@ -569,7 +567,8 @@ struct libfc_function_template { | |||
569 | /* | 567 | /* |
570 | * Create a remote port | 568 | * Create a remote port |
571 | */ | 569 | */ |
572 | struct fc_rport *(*rport_create)(struct fc_disc_port *); | 570 | struct fc_rport *(*rport_create)(struct fc_lport *, |
571 | struct fc_rport_identifiers *); | ||
573 | 572 | ||
574 | /* | 573 | /* |
575 | * Initiates the RP state machine. It is called from the LP module. | 574 | * Initiates the RP state machine. It is called from the LP module. |