scsi: lpfc: Driver responds LS_RJT to Beacon Off ELS - Linux
authorJames Smart <jsmart2021@gmail.com>
Fri, 16 Jun 2017 05:56:50 +0000 (22:56 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Jun 2017 01:41:03 +0000 (21:41 -0400)
commitd6564e52605c55e9d63441782b634b6f131b73c9
treee111b2aa7c83ad5081a70817f4b6082ad853781a
parent4550f9c75e6abdc1f80170adf74d7610d059afd7
scsi: lpfc: Driver responds LS_RJT to Beacon Off ELS - Linux

Beacon OFF from switch is rejected by driver.

Driver fails Beacon OFF if frequency is set to 0. As per fc-ls spec,
status, capability, frequency and duration fields are only applicable
for Beacon ON.

Remove frequency and type checks. Reject Beacon ON if duration is non
zero.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c