]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcafc546ea4d3a9ad5095974d862e17041c9bcd68
tree5b93d0af7fbd061364960ca03227d5bd1e7c202a
parent0aedc908c4c853b7379fac9f6cb8127d8c2ac46d
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