]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[fc] Ignore fabric-assigned port ID for fabricless implicit logouts
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Sep 2010 00:05:33 +0000 (01:05 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 21 Sep 2010 01:08:05 +0000 (02:08 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/fc.c

index 33e13bdaf7ffb0b2de85440ebcfde680a4c30fe6..d5761c89e37cbfcaa9779a90736e9e00347e940e 100644 (file)
@@ -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 );
        }