scsi: lpfc: Remove NVMe support if kernel has NVME_FC disabled
authorJames Smart <jsmart2021@gmail.com>
Mon, 7 Feb 2022 18:05:16 +0000 (10:05 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Feb 2022 04:42:58 +0000 (23:42 -0500)
commitc80b27cfd93ba9f5161383f798414609e84729f3
tree5b93d0af7fbd061364960ca03227d5bd1e7c202a
parentc763ec4c10f78678d6d4415646237f07109a5a5f
scsi: lpfc: Remove NVMe support if kernel has NVME_FC disabled

The driver is initiating NVMe PRLIs to determine device NVMe support.  This
should not be occurring if CONFIG_NVME_FC support is disabled.

Correct this by changing the default value for FC4 support. Currently it
defaults to FCP and NVMe. With change, when NVME_FC support is not enabled
in the kernel, the default value is just FCP.

Link: https://lore.kernel.org/r/20220207180516.73052-1-jsmart2021@gmail.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_attr.c