mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Signed-off-by: Hiral Patel <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
03298552cb
commit
cfe16d5da8
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue