[Open-FCoE] [RFC PATCH 22/28] [RFC] libfc: remove lport_login() from the libfc_function_template

Robert Love robert.w.love at intel.com
Thu Sep 11 23:37:06 UTC 2008


Signed-off-by: Robert Love <robert.w.love at intel.com>
---

 drivers/scsi/libfc/fc_lport.c |    5 +----
 include/scsi/libfc/libfc.h    |    1 -
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index 356e1f0..e9dcdbc 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -357,7 +357,7 @@ void fc_linkup(struct fc_lport *lp)
 		lp->link_status |= FC_LINK_UP;
 		fc_lport_lock(lp);
 		if (lp->state == LPORT_ST_RESET)
-			lp->tt.lport_login(lp);
+			fc_lport_enter_flogi(lp);
 		fc_lport_unlock(lp);
 	}
 }
@@ -1173,9 +1173,6 @@ int fc_lport_init(struct fc_lport *lp)
 	if (!lp->tt.lport_recv)
 		lp->tt.lport_recv = fc_lport_recv;
 
-	if (!lp->tt.lport_login)
-		lp->tt.lport_login = fc_lport_enter_reset;
-
 	if (!lp->tt.lport_reset)
 		lp->tt.lport_reset = fc_lport_enter_reset;
 
diff --git a/include/scsi/libfc/libfc.h b/include/scsi/libfc/libfc.h
index f454acb..5467dd1 100644
--- a/include/scsi/libfc/libfc.h
+++ b/include/scsi/libfc/libfc.h
@@ -341,7 +341,6 @@ struct libfc_function_template {
 	void (*lport_recv)(struct fc_lport *lp, struct fc_seq *sp,
 			   struct fc_frame *fp);
 
-	int (*lport_login)(struct fc_lport *);
 	int (*lport_reset)(struct fc_lport *);
 	int (*lport_logout)(struct fc_lport *);
 




More information about the devel mailing list