public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Dick Kennedy <dick.kennedy@broadcom.com>
To: linux-scsi@vger.kernel.org
Cc: Dick Kennedy <dick.kennedy@broadcom.com>Dick Kennedy
	<dick.kennedy@broadcom.com>,
	James Smart <james.smart@broadcom.com>
Subject: [lpfc 01/19] Fix advertised max_sgl_segment count for NVMET
Date: Tue,  4 Apr 2017 10:16:54 -0700	[thread overview]
Message-ID: <1491326232-11255-2-git-send-email-rkennedy@broadcom.com> (raw)
In-Reply-To: <1491326232-11255-1-git-send-email-rkennedy@broadcom.com>

From: Dick Kennedy <rkennedy@lvnvda1400.lvn.broadcom.net>

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
---
 drivers/scsi/lpfc/lpfc_nvme.h  | 4 +---
 drivers/scsi/lpfc/lpfc_nvmet.c | 2 +-
 drivers/scsi/lpfc/lpfc_nvmet.h | 4 +---
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_nvme.h b/drivers/scsi/lpfc/lpfc_nvme.h
index 1347deb..6277796 100644
--- a/drivers/scsi/lpfc/lpfc_nvme.h
+++ b/drivers/scsi/lpfc/lpfc_nvme.h
@@ -21,9 +21,7 @@
  * included with this package.                                     *
  ********************************************************************/
 
-#define LPFC_NVME_MIN_SEGS		16
-#define LPFC_NVME_DEFAULT_SEGS		66	/* 256K IOs - 64 + 2 */
-#define LPFC_NVME_MAX_SEGS		510
+#define LPFC_NVME_DEFAULT_SEGS		(64 + 1)	/* 256K IOs */
 #define LPFC_NVMET_MIN_POSTBUF		16
 #define LPFC_NVMET_DEFAULT_POSTBUF	1024
 #define LPFC_NVMET_MAX_POSTBUF		4096
diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c
index 7ca868f..86ab95c 100644
--- a/drivers/scsi/lpfc/lpfc_nvmet.c
+++ b/drivers/scsi/lpfc/lpfc_nvmet.c
@@ -667,7 +667,7 @@ lpfc_nvmet_create_targetport(struct lpfc_hba *phba)
 	pinfo.port_id = vport->fc_myDID;
 
 	lpfc_tgttemplate.max_hw_queues = phba->cfg_nvme_io_channel;
-	lpfc_tgttemplate.max_sgl_segments = phba->cfg_sg_seg_cnt;
+	lpfc_tgttemplate.max_sgl_segments = phba->cfg_sg_seg_cnt + 1;
 	lpfc_tgttemplate.target_features = NVMET_FCTGTFEAT_READDATA_RSP |
 					   NVMET_FCTGTFEAT_NEEDS_CMD_CPUSCHED;
 
diff --git a/drivers/scsi/lpfc/lpfc_nvmet.h b/drivers/scsi/lpfc/lpfc_nvmet.h
index ca96f05..0aa202c 100644
--- a/drivers/scsi/lpfc/lpfc_nvmet.h
+++ b/drivers/scsi/lpfc/lpfc_nvmet.h
@@ -21,9 +21,7 @@
  * included with this package.                                     *
  ********************************************************************/
 
-#define LPFC_NVMET_MIN_SEGS		16
-#define LPFC_NVMET_DEFAULT_SEGS		64	/* 256K IOs */
-#define LPFC_NVMET_MAX_SEGS		510
+#define LPFC_NVMET_DEFAULT_SEGS		(64 + 1)	/* 256K IOs */
 #define LPFC_NVMET_SUCCESS_LEN	12
 
 /* Used for NVME Target */
-- 
2.1.0

  reply	other threads:[~2017-04-04 17:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 17:16 [lpfc 00/19] lpfc updates Dick Kennedy
2017-04-04 17:16 ` Dick Kennedy [this message]
2017-04-05  7:08   ` [lpfc 01/19] Fix advertised max_sgl_segment count for NVMET Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 02/19] Fixes after reviewing last set of patches. Minor fixes to previous patches Dick Kennedy
2017-04-05  7:10   ` Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 03/19] Fix spelling in comments Dick Kennedy
2017-04-05  7:12   ` Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 04/19] Fix PRLI ACC rsp for NVME Dick Kennedy
2017-04-05  7:15   ` Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 05/19] Fix driver unload/reload operation Dick Kennedy
2017-04-05  7:20   ` Johannes Thumshirn
2017-04-05 13:30   ` Mauricio Faria de Oliveira
2017-04-04 17:16 ` [lpfc 06/19] Fix discovery error handling in NVME initiator Dick Kennedy
2017-04-04 17:17 ` [lpfc 07/19] Fix driver usage of 128B WQEs when WQ_CREATE is V1 Dick Kennedy
2017-04-04 17:17 ` [lpfc 08/19] Fix nvme initiator handling when CONFIG_LPFC_NVME_INITIATOR is not enabled Dick Kennedy
2017-04-04 17:17 ` [lpfc 09/19] Fix Kconfig defines Dick Kennedy
2017-04-04 17:17 ` [lpfc 10/19] Remove hba lock from NVMET isssue WQE Dick Kennedy
2017-04-04 17:17 ` [lpfc 11/19] Add NVMET changes to interface with 4.11 kernel Dick Kennedy
2017-04-04 17:17 ` [lpfc 12/19] cannot establish connection with target that sends PRLI in PT2PT Dick Kennedy
2017-04-04 17:17 ` [lpfc 13/19] Fix driver load issues when MRQ=8 Dick Kennedy
2017-04-04 17:17 ` [lpfc 14/19] Fix crash after issuing lip reset Dick Kennedy
2017-04-04 17:17 ` [lpfc 15/19] Fix max_sgl_segments settings for NVME / NVMET Dick Kennedy
2017-04-04 17:17 ` [lpfc 16/19] Add Fabric assigned WWN support Dick Kennedy
2017-04-04 17:17 ` [lpfc 17/19] Fix implicit logo and RSCN handling for NVMET Dick Kennedy
2017-04-04 17:17 ` [lpfc 18/19] Update ABORT processing " Dick Kennedy
2017-04-04 17:17 ` [lpfc 19/19] lpfc revison 11.2.0.12 Dick Kennedy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491326232-11255-2-git-send-email-rkennedy@broadcom.com \
    --to=dick.kennedy@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox