]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix max_sgl_segments settings for NVME / NVMET
authorJames Smart <jsmart2021@gmail.com>
Fri, 21 Apr 2017 23:05:01 +0000 (16:05 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Apr 2017 07:25:49 +0000 (09:25 +0200)
commit4d4c4a4ac756e7a0198259a49eeaf0d4a0e9a4fb
treeb82435fd8cf61fb069c8b9971a171064c059624e
parent9d3d340d19d36b923d768f25c66cedc900d8ad90
Fix max_sgl_segments settings for NVME / NVMET

Cannot set NVME segment counts to a large number

The existing module parameter lpfc_sg_seg_cnt is used for both
SCSI and NVME.

Limit the module parameter lpfc_sg_seg_cnt to 128 with the
default being 64 for both NVME and NVMET, assuming NVME is enabled in the
driver for that port. The driver will set max_sgl_segments in the
NVME/NVMET template to lpfc_sg_seg_cnt + 1.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_nvme.c
drivers/scsi/lpfc/lpfc_nvmet.c