From a8e39a9ca75d833196f1644ae4cc791495ed751b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 21 Sep 2010 01:05:33 +0100 Subject: [PATCH] [fc] Ignore fabric-assigned port ID for fabricless implicit logouts Signed-off-by: Michael Brown --- src/net/fc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/fc.c b/src/net/fc.c index 33e13bdaf..d5761c89e 100644 --- a/src/net/fc.c +++ b/src/net/fc.c @@ -907,8 +907,9 @@ int fc_port_login ( struct fc_port *port, struct fc_port_id *port_id, sizeof ( port->link_node_wwn ) ) != 0 ) || ( memcmp ( &port->link_port_wwn, link_port_wwn, sizeof ( port->link_port_wwn ) ) != 0 ) || - ( memcmp ( &port->port_id, port_id, - sizeof ( port->port_id ) ) != 0 ) ) ) { + ( has_fabric && + ( memcmp ( &port->port_id, port_id, + sizeof ( port->port_id ) ) != 0 ) ) ) ) { fc_port_logout ( port, 0 ); }