diff options
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index c1fd7561f0bd..fba7ba00c71b 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -599,10 +599,10 @@ static int fcoe_netdev_config(struct fc_lport *lport, struct net_device *netdev) | |||
599 | setup_timer(&port->timer, fcoe_queue_timer, (unsigned long)lport); | 599 | setup_timer(&port->timer, fcoe_queue_timer, (unsigned long)lport); |
600 | 600 | ||
601 | if (!lport->vport) { | 601 | if (!lport->vport) { |
602 | wwnn = fcoe_wwn_from_mac(netdev->dev_addr, 1, 0); | 602 | wwnn = fcoe_wwn_from_mac(fcoe->ctlr.ctl_src_addr, 1, 0); |
603 | fc_set_wwnn(lport, wwnn); | 603 | fc_set_wwnn(lport, wwnn); |
604 | /* XXX - 3rd arg needs to be vlan id */ | 604 | /* XXX - 3rd arg needs to be vlan id */ |
605 | wwpn = fcoe_wwn_from_mac(netdev->dev_addr, 2, 0); | 605 | wwpn = fcoe_wwn_from_mac(fcoe->ctlr.ctl_src_addr, 2, 0); |
606 | fc_set_wwpn(lport, wwpn); | 606 | fc_set_wwpn(lport, wwpn); |
607 | } | 607 | } |
608 | 608 | ||