summaryrefslogtreecommitdiffstats
path: root/src/net/fc.c
diff options
context:
space:
mode:
authorMichael Brown2010-09-21 02:05:33 +0200
committerMichael Brown2010-09-21 03:08:05 +0200
commita8e39a9ca75d833196f1644ae4cc791495ed751b (patch)
tree19449cdc2625ef2a95c865440aabf6a67c11b12c /src/net/fc.c
parent[fc] Allow FLOGI response to be sent to newly-assigned peer port ID (diff)
downloadipxe-a8e39a9ca75d833196f1644ae4cc791495ed751b.tar.gz
ipxe-a8e39a9ca75d833196f1644ae4cc791495ed751b.tar.xz
ipxe-a8e39a9ca75d833196f1644ae4cc791495ed751b.zip
[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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/fc.c b/src/net/fc.c
index 33e13bda..d5761c89 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 );
}