summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic/fnic_io.h
diff options
context:
space:
mode:
authorHiral Patel <hiralpat@cisco.com>2013-02-12 17:00:59 -0800
committerJames Bottomley <JBottomley@Parallels.com>2013-02-22 17:29:35 +0000
commitcfe16d5da88896fc78d008c96d639cf9c90850a0 (patch)
treee04c9b67b59f4bd45cbd5f1c6aff44a4d63812ee /drivers/scsi/fnic/fnic_io.h
parent03298552cba38f7c805ed338826dc76c405465c7 (diff)
downloadblackbird-op-linux-cfe16d5da88896fc78d008c96d639cf9c90850a0.tar.gz
blackbird-op-linux-cfe16d5da88896fc78d008c96d639cf9c90850a0.zip
[SCSI] fnic: Fix SGEs limit
Driver allows IOs with more SGEs than max SGEs supported by Palo. The current max SGEs supported by the fnic driver is 1024. The current register settings on Palo supports a max of 256 only. Palo would return any IO with more than 256 SGEs with an error indicating INVALID_SGLS. Fnic driver should limit the max supported SGLs in the driver to 256 to avoid this error. Signed-off-by: Sesidhar Baddela <sebaddel@cisco.com> Signed-off-by: Hiral Patel <hiralpat@cisco.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_io.h')
-rw-r--r--drivers/scsi/fnic/fnic_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic_io.h b/drivers/scsi/fnic/fnic_io.h
index f0b896988cd5..3455c34ada48 100644
--- a/drivers/scsi/fnic/fnic_io.h
+++ b/drivers/scsi/fnic/fnic_io.h
@@ -21,7 +21,7 @@
#include <scsi/fc/fc_fcp.h>
#define FNIC_DFLT_SG_DESC_CNT 32
-#define FNIC_MAX_SG_DESC_CNT 1024 /* Maximum descriptors per sgl */
+#define FNIC_MAX_SG_DESC_CNT 256 /* Maximum descriptors per sgl */
#define FNIC_SG_DESC_ALIGN 16 /* Descriptor address alignment */
struct host_sg_desc {
OpenPOWER on IntegriCloud