From: Michael Brown Date: Tue, 21 Sep 2010 00:05:33 +0000 (+0100) Subject: [fc] Ignore fabric-assigned port ID for fabricless implicit logouts X-Git-Tag: v1.20.1~2502 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8e39a9ca75d833196f1644ae4cc791495ed751b;p=thirdparty%2Fipxe.git [fc] Ignore fabric-assigned port ID for fabricless implicit logouts Signed-off-by: Michael Brown --- 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 ); }