diff options
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index cf9d718c731c..ddd2ca27e003 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -647,7 +647,6 @@ static int fcoe_netdev_config(struct fc_lport *lport, struct net_device *netdev) | |||
647 | u64 wwnn, wwpn; | 647 | u64 wwnn, wwpn; |
648 | struct fcoe_interface *fcoe; | 648 | struct fcoe_interface *fcoe; |
649 | struct fcoe_port *port; | 649 | struct fcoe_port *port; |
650 | int vid = 0; | ||
651 | 650 | ||
652 | /* Setup lport private data to point to fcoe softc */ | 651 | /* Setup lport private data to point to fcoe softc */ |
653 | port = lport_priv(lport); | 652 | port = lport_priv(lport); |
@@ -677,20 +676,12 @@ static int fcoe_netdev_config(struct fc_lport *lport, struct net_device *netdev) | |||
677 | fcoe_link_speed_update(lport); | 676 | fcoe_link_speed_update(lport); |
678 | 677 | ||
679 | if (!lport->vport) { | 678 | if (!lport->vport) { |
680 | /* | ||
681 | * Use NAA 1&2 (FC-FS Rev. 2.0, Sec. 15) to generate WWNN/WWPN: | ||
682 | * For WWNN, we use NAA 1 w/ bit 27-16 of word 0 as 0. | ||
683 | * For WWPN, we use NAA 2 w/ bit 27-16 of word 0 from VLAN ID | ||
684 | */ | ||
685 | if (netdev->priv_flags & IFF_802_1Q_VLAN) | ||
686 | vid = vlan_dev_vlan_id(netdev); | ||
687 | |||
688 | if (fcoe_get_wwn(netdev, &wwnn, NETDEV_FCOE_WWNN)) | 679 | if (fcoe_get_wwn(netdev, &wwnn, NETDEV_FCOE_WWNN)) |
689 | wwnn = fcoe_wwn_from_mac(fcoe->ctlr.ctl_src_addr, 1, 0); | 680 | wwnn = fcoe_wwn_from_mac(fcoe->ctlr.ctl_src_addr, 1, 0); |
690 | fc_set_wwnn(lport, wwnn); | 681 | fc_set_wwnn(lport, wwnn); |
691 | if (fcoe_get_wwn(netdev, &wwpn, NETDEV_FCOE_WWPN)) | 682 | if (fcoe_get_wwn(netdev, &wwpn, NETDEV_FCOE_WWPN)) |
692 | wwpn = fcoe_wwn_from_mac(fcoe->ctlr.ctl_src_addr, | 683 | wwpn = fcoe_wwn_from_mac(fcoe->ctlr.ctl_src_addr, |
693 | 2, vid); | 684 | 2, 0); |
694 | fc_set_wwpn(lport, wwpn); | 685 | fc_set_wwpn(lport, wwpn); |
695 | } | 686 | } |
696 | 687 | ||