Skip to content

Commit

Permalink
[SCSI] fnic: Fix SGEs limit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hiral Patel authored and James Bottomley committed Feb 22, 2013
1 parent 0329855 commit cfe16d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/fnic/fnic_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cfe16d5

Please sign in to comment.