diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2010-07-20 18:20:40 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 10:05:57 -0400 |
commit | cd229e42eb8cdfdcbe15dfeec39c3641f62de43a (patch) | |
tree | 6f2b999043148e993406785a6c2c1aa8b21293e0 /drivers/scsi/fcoe/fcoe.c | |
parent | 5554345bc5275afed760631277fdab0a5a19472e (diff) |
[SCSI] fcoe libfcoe: use correct FC-MAP for VN2VN mode
In VN2VN mode, map_dest means to use the default VN2VN OUI.
Change code that uses the default FCoE OUI to use the one
set in the fcoe_ctlr struct.
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>
Diffstat (limited to 'drivers/scsi/fcoe/fcoe.c')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 216aba375fe1..4d3e70ab65b5 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -1534,11 +1534,9 @@ int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp) | |||
1534 | /* fill up mac and fcoe headers */ | 1534 | /* fill up mac and fcoe headers */ |
1535 | eh = eth_hdr(skb); | 1535 | eh = eth_hdr(skb); |
1536 | eh->h_proto = htons(ETH_P_FCOE); | 1536 | eh->h_proto = htons(ETH_P_FCOE); |
1537 | memcpy(eh->h_dest, fcoe->ctlr.dest_addr, ETH_ALEN); | ||
1537 | if (fcoe->ctlr.map_dest) | 1538 | if (fcoe->ctlr.map_dest) |
1538 | fc_fcoe_set_mac(eh->h_dest, fh->fh_d_id); | 1539 | memcpy(eh->h_dest + 3, fh->fh_d_id, 3); |
1539 | else | ||
1540 | /* insert GW address */ | ||
1541 | memcpy(eh->h_dest, fcoe->ctlr.dest_addr, ETH_ALEN); | ||
1542 | 1540 | ||
1543 | if (unlikely(fcoe->ctlr.flogi_oxid != FC_XID_UNKNOWN)) | 1541 | if (unlikely(fcoe->ctlr.flogi_oxid != FC_XID_UNKNOWN)) |
1544 | memcpy(eh->h_source, fcoe->ctlr.ctl_src_addr, ETH_ALEN); | 1542 | memcpy(eh->h_source, fcoe->ctlr.ctl_src_addr, ETH_ALEN); |