summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorSergey Gorenko <sergeygo@mellanox.com>2019-09-12 06:35:34 -0400
committerJason Gunthorpe <jgg@mellanox.com>2019-09-13 15:55:55 -0400
commit1ba7c8f800586805c409f5b1ff1803318a41933a (patch)
tree187be10bedfe71d75c13ca2d1dc2140f75723af4 /drivers/infiniband/ulp
parent0404bd629fd4d05e7ab815e6e1ecd81e728678d3 (diff)
IB/iser: Support up to 16MB data transfer in a single command
Maximum supported IO size is 8MB for the iSER driver. The current value is limited by the ISCSI_ISER_MAX_SG_TABLESIZE macro. But the driver is able to handle 16MB IOs without any significant changes. Increasing this limit can be useful for the storage arrays which are fine tuned for IOs larger than 8 MB. This commit allows to configure maximum IO size up to 16MB using the max_sectors module parameter. Link: https://lore.kernel.org/r/20190912103534.18210-1-sergeygo@mellanox.com Signed-off-by: Sergey Gorenko <sergeygo@mellanox.com> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Acked-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
index 39bf213444cb..52ce63592dcf 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.h
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
@@ -102,9 +102,10 @@
102 102
103/* Default support is 512KB I/O size */ 103/* Default support is 512KB I/O size */
104#define ISER_DEF_MAX_SECTORS 1024 104#define ISER_DEF_MAX_SECTORS 1024
105#define ISCSI_ISER_DEF_SG_TABLESIZE ((ISER_DEF_MAX_SECTORS * 512) >> SHIFT_4K) 105#define ISCSI_ISER_DEF_SG_TABLESIZE \
106/* Maximum support is 8MB I/O size */ 106 ((ISER_DEF_MAX_SECTORS * SECTOR_SIZE) >> SHIFT_4K)
107#define ISCSI_ISER_MAX_SG_TABLESIZE ((16384 * 512) >> SHIFT_4K) 107/* Maximum support is 16MB I/O size */
108#define ISCSI_ISER_MAX_SG_TABLESIZE ((32768 * SECTOR_SIZE) >> SHIFT_4K)
108 109
109#define ISER_DEF_XMIT_CMDS_DEFAULT 512 110#define ISER_DEF_XMIT_CMDS_DEFAULT 512
110#if ISCSI_DEF_XMIT_CMDS_MAX > ISER_DEF_XMIT_CMDS_DEFAULT 111#if ISCSI_DEF_XMIT_CMDS_MAX > ISER_DEF_XMIT_CMDS_DEFAULT