[SCSI] libfcoe: fix debug message entering non-FIP mode
authorJoe Eykholt <jeykholt@cisco.com>
Sat, 13 Mar 2010 00:07:57 +0000 (16:07 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:35 +0000 (09:23 -0500)
The debug message that indicated we are using non-FIP mode was
being printed only if we were already in non-FIP mode.
Also changed the message text to make it more clear the mode
is being set, not that the message is indicating how FLOGI
was received.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/libfcoe.c

index 3440da48d1698d3b2fde2796d1df1ea333edd3a9..22f6e44fa7376e0e310cceb62a96b2d922f466cf 100644 (file)
@@ -1334,9 +1334,9 @@ int fcoe_ctlr_recv_flogi(struct fcoe_ctlr *fip, struct fc_lport *lport,
                if (fip->state == FIP_ST_AUTO || fip->state == FIP_ST_NON_FIP) {
                        memcpy(fip->dest_addr, sa, ETH_ALEN);
                        fip->map_dest = 0;
-                       if (fip->state == FIP_ST_NON_FIP)
-                               LIBFCOE_FIP_DBG(fip, "received FLOGI REQ, "
-                                               "using non-FIP mode\n");
+                       if (fip->state == FIP_ST_AUTO)
+                               LIBFCOE_FIP_DBG(fip, "received non-FIP FLOGI. "
+                                               "Setting non-FIP mode\n");
                        fip->state = FIP_ST_NON_FIP;
                }
                spin_unlock_bh(&fip->lock);