aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-08-25 17:00:39 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-10 13:07:40 -0400
commit795d86f55ec3bf6280dda368f208943f1fb7d366 (patch)
tree8d123acf1e7d9d07495d702b88ef2d75dfe696b1 /include/scsi
parentab28f1fd3b0d14c1bd693e640decd711d5e6642a (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')
-rw-r--r--include/scsi/libfc.h5
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
230struct fc_rport *fc_rport_rogue_create(struct fc_disc_port *);
231
232static inline void fc_rport_set_name(struct fc_rport *rport, u64 wwpn, u64 wwnn) 230static 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.