OSDN Git Service

scsi: bnx2fc: Limit the IO size according to the FW capability
authorSaurav Kashyap <skashyap@marvell.com>
Mon, 24 Jun 2019 08:29:59 +0000 (01:29 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Jun 2019 02:42:45 +0000 (22:42 -0400)
commit3c97b569505f0d467a7fd544b05f1e122c08db67
tree7d3192697e0e99e6ce59a7b52c50f7d5524e440a
parent25ad7394c7783a5bc73f7a930bda3a7a7f3195cb
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>
drivers/scsi/bnx2fc/bnx2fc.h
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
drivers/scsi/bnx2fc/bnx2fc_io.c