]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fcoe: Fix setting lport's WWNN/WWPN to use san mac address
authorYi Zou <yi.zou@intel.com>
Tue, 3 Nov 2009 19:49:49 +0000 (11:49 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:23 +0000 (12:01 -0600)
commit40a132a0f6cbad604f691da12df8cb4191310fd2
tree83f9e6ffc8f465aec8653ef16fe94ee5eb31ea3d
parent7358cec3bc91b81c07e872dd87f10a27b12a6400
[SCSI] fcoe: Fix setting lport's WWNN/WWPN to use san mac address

We are still using netdev->dev_addr to generate lport's WWNN/WWPN even if the
LLD has support for NETDEV_HW_ADDR_T_SAN. Instead, we should just use the
fip->ctl_src_addr, which is the NETDEV_HW_ADDR_T_SAN if LLD supports it or it
is just the netdev->dev_addr if it does not.

Signed-off-by: Yi Zou <yi.zou@intel.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