[SCSI] libfcoe: Support extra MAC descriptor to be used as FCoE MAC
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 9 Mar 2012 22:50:03 +0000 (14:50 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 28 Mar 2012 08:05:37 +0000 (09:05 +0100)
commit81c11dd2ed154b351eb6ee3443e07094a1d53ce1
treee5c14fc2f3bafdb7172678a01d8f01d4d5cb1d29
parent73d67aa40b1f94a4e5edecbbc3b94d352eeeae0a
[SCSI] libfcoe: Support extra MAC descriptor to be used as FCoE MAC

Some switch implementations (eg., HP virtual connect FlexFabric) send two MAC
descriptors in FIP FLOGI response, with first MAC descriptor (granted_mac) used
as FPMA, and the second one (fcoe_mac) used as destination address for
sending/receiving FCoE packets. fip_mac continues to be used for FIP traffic.
This patch introduces fcoe_mac in fcoe_fcf structure. For regular switches,
both fcoe_mac and fip_mac will be the same. For the switches that send
additional MAC descriptor, fcoe_mac is updated.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fcoe/fcoe_ctlr.c
include/scsi/libfcoe.h