linux/drivers/scsi/qedf
Chad Dupuis a3cd42a9d6 scsi: qedf: Use granted MAC from the FCF for the FCoE source address if it is available.
Currently in the driver we've been using the fc_fcoe_set_mac() function to
set the source MAC for FCoE traffic.  This works well in most cases as it
uses the spec. default FCF-MAC.  However, if the administrator changes the
FCF-MAC switch, then any FCoE traffic we send will be dropped by the
switch.

Instead we should check the granted MAC from the FLOGI payload and use that
address if it is present.  Otherwise, fall back to using the the default
FCF-MAC and the fabric ID of the port as the FCoE MAC address.

Once this address is known we need to set it when doing non-offload
traffic, offload traffic and setting the data_src_address libfcoe uses for
FIP keep alive messages.

Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-08-24 22:29:02 -04:00
..
drv_fcoe_fw_funcs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_fcoe_fw_funcs.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_scsi_fw_funcs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
drv_scsi_fw_funcs.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
Kconfig
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedf_attr.c scsi: qedf: Add fka_period SCSI host attribute to show fip keep alive period. 2017-06-12 20:48:06 -04:00
qedf_dbg.c
qedf_dbg.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
qedf_debugfs.c scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
qedf_els.c scsi: qedf: Fixup unnecessary parantheses around test_bit operations. 2017-06-12 20:48:06 -04:00
qedf_fip.c scsi: qedf: Use granted MAC from the FCF for the FCoE source address if it is available. 2017-08-24 22:29:02 -04:00
qedf_hsi.h scsi: qedf: Update copyright to 2017. 2017-06-12 20:48:05 -04:00
qedf_io.c scsi: qedf: Check if sense buffer has been allocated during completion 2017-06-12 20:48:08 -04:00
qedf_main.c scsi: qedf: Use granted MAC from the FCF for the FCoE source address if it is available. 2017-08-24 22:29:02 -04:00
qedf_version.h scsi: qedf: Update version number to 8.18.22.0. 2017-06-12 20:48:06 -04:00
qedf.h scsi: qedf: Use granted MAC from the FCF for the FCoE source address if it is available. 2017-08-24 22:29:02 -04:00