diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-09-21 01:05:33 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-09-21 02:08:05 +0100 |
commit | a8e39a9ca75d833196f1644ae4cc791495ed751b (patch) | |
tree | 19449cdc2625ef2a95c865440aabf6a67c11b12c /src/net/fc.c | |
parent | 654da534ada4624d20bd1e2835f86ee9c95ca165 (diff) | |
download | ipxe-a8e39a9ca75d833196f1644ae4cc791495ed751b.zip ipxe-a8e39a9ca75d833196f1644ae4cc791495ed751b.tar.gz ipxe-a8e39a9ca75d833196f1644ae4cc791495ed751b.tar.bz2 |
[fc] Ignore fabric-assigned port ID for fabricless implicit logouts
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/fc.c')
-rw-r--r-- | src/net/fc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/fc.c b/src/net/fc.c index 33e13bd..d5761c8 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 ); } |