[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>
This commit is contained in:
Joe Eykholt
2009-08-25 14:00:39 -07:00
committed by James Bottomley
parent ab28f1fd3b
commit 795d86f55e
4 changed files with 34 additions and 43 deletions

View File

@@ -227,8 +227,6 @@ struct fc_rport_libfc_priv {
#define RPORT_TO_PRIV(x) \
(struct fc_rport_libfc_priv *)((void *)x + sizeof(struct fc_rport));
struct fc_rport *fc_rport_rogue_create(struct fc_disc_port *);
static inline void fc_rport_set_name(struct fc_rport *rport, u64 wwpn, u64 wwnn)
{
rport->node_name = wwnn;
@@ -569,7 +567,8 @@ struct libfc_function_template {
/*
* Create a remote port
*/
struct fc_rport *(*rport_create)(struct fc_disc_port *);
struct fc_rport *(*rport_create)(struct fc_lport *,
struct fc_rport_identifiers *);
/*
* Initiates the RP state machine. It is called from the LP module.