mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-22 07:06:22 +00:00
that accepts FCP requests from libfc HBAs running Fibre Channel over Ethernet (FCoE) and passes them to SCST. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1514 d57e44dd-8a1f-0410-8b47-8ef2f437770f
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
libfcoe: fix debug message entering non-FIP mode
|
|
|
|
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>
|
|
|
|
---
|
|
drivers/scsi/fcoe/libfcoe.c | 6 +++---
|
|
1 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
---
|
|
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
|
|
index 511cb6b..b2af53f 100644
|
|
--- a/drivers/scsi/fcoe/libfcoe.c
|
|
+++ b/drivers/scsi/fcoe/libfcoe.c
|
|
@@ -1333,9 +1333,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);
|