aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
diff options
context:
space:
mode:
authorSaurav Kashyap <skashyap@marvell.com>2019-06-24 01:29:59 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2019-06-26 22:42:45 -0400
commit3c97b569505f0d467a7fd544b05f1e122c08db67 (patch)
tree7d3192697e0e99e6ce59a7b52c50f7d5524e440a /drivers/scsi/bnx2fc/bnx2fc_fcoe.c
parentscsi: bnx2fc: Do not allow both a cleanup completion and abort completion for the same request (diff)
downloadlinux-dev-3c97b569505f0d467a7fd544b05f1e122c08db67.tar.xz
linux-dev-3c97b569505f0d467a7fd544b05f1e122c08db67.zip
scsi: bnx2fc: Limit the IO size according to the FW capability
- Reduce the sg_tablesize to 255. - Reduce the MAX BDs firmware can handle to 255. - Return IO to ML if BD goes more then 255 after split. - Correct the size of each BD split to 0xffff. Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc_fcoe.c')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_fcoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index a75e74ad1698..7796799bf04a 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -2971,7 +2971,8 @@ static struct scsi_host_template bnx2fc_shost_template = {
.this_id = -1,
.cmd_per_lun = 3,
.sg_tablesize = BNX2FC_MAX_BDS_PER_CMD,
- .max_sectors = 1024,
+ .dma_boundary = 0x7fff,
+ .max_sectors = 0x3fbf,
.track_queue_depth = 1,
.slave_configure = bnx2fc_slave_configure,
.shost_attrs = bnx2fc_host_attrs,