]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SCSI] fcoe: call fcoe_ctlr_els_send even for ELS responses
authorJoe Eykholt <jeykholt@cisco.com>
Sat, 13 Mar 2010 00:07:52 +0000 (16:07 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:35 +0000 (09:23 -0500)
In point-to-point mode, the destination MAC address for
the FLOGI response was zero because the LS_ACC for the FLOGI
wasn't getting intercepted by FIP.

Change to call fcoe_ctlr_els_send when sending any ELS,
not just requests.

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/fcoe.c

index f01b9b44e8aa8a6ab387a969e7b7701400a4d1cf..7b0bb6e39a9ff8903951d35ba3b2acffa57b1cb6 100644 (file)
@@ -1444,7 +1444,7 @@ int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp)
                return 0;
        }
 
-       if (unlikely(fh->fh_r_ctl == FC_RCTL_ELS_REQ) &&
+       if (unlikely(fh->fh_type == FC_TYPE_ELS) &&
            fcoe_ctlr_els_send(&fcoe->ctlr, lport, skb))
                return 0;