* [PATCH] [FCoE] Don't create a duplicate port on reset
@ 2007-12-31 19:17 Rob Love
0 siblings, 0 replies; only message in thread
From: Rob Love @ 2007-12-31 19:17 UTC (permalink / raw)
To: linux-scsi
P2P mode was failing due to a duplicate remote port being created when a reset occured.
Signed-off-by: Rob Love <robert.w.love@intel.com>
---
drivers/scsi/ofc/libfc/fc_local_port.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/ofc/libfc/fc_local_port.c b/drivers/scsi/ofc/libfc/fc_local_port.c
index 95380f9..1911405 100644
--- a/drivers/scsi/ofc/libfc/fc_local_port.c
+++ b/drivers/scsi/ofc/libfc/fc_local_port.c
@@ -275,11 +275,9 @@ static void fc_local_port_ptp_setup(struct fc_local_port *lp,
{
struct fc_remote_port *rp;
- rp = fc_remote_port_lookup_create(lp->fl_vf, 0, remote_wwpn,
+ rp = fc_remote_port_lookup_create(lp->fl_vf, remote_fid, remote_wwpn,
remote_wwnn);
if (rp) {
- if (rp->rp_fid != remote_fid)
- fc_remote_port_set_fid(rp, remote_fid);
if (lp->fl_ptp_rp)
fc_remote_port_release(lp->fl_ptp_rp);
lp->fl_ptp_rp = rp;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-31 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-31 19:17 [PATCH] [FCoE] Don't create a duplicate port on reset Rob Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox