diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-13 16:17:03 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-12-18 23:13:12 -0500 |
commit | 50c2e9107f176a82e14567b39c5d0f2a208cc82c (patch) | |
tree | 94cdec8e5724b7fb66f0781bcf6a4360653b097e /include/scsi | |
parent | 2a3d4eb8e228061c09d5ca8bf39e7f00c2091213 (diff) | |
download | linux-50c2e9107f176a82e14567b39c5d0f2a208cc82c.tar.gz linux-50c2e9107f176a82e14567b39c5d0f2a208cc82c.tar.bz2 linux-50c2e9107f176a82e14567b39c5d0f2a208cc82c.zip |
scsi: introduce a max_segment_size host_template parameters
This allows the host driver to indicate the maximum supported
segment size in a nice an easy way, so that the driver doesn't
have to worry about DMA-layer imposed limitations.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 7dc534c794dc..834204681ca3 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -365,6 +365,11 @@ struct scsi_host_template { unsigned int max_sectors; /* + * Maximum size in bytes of a single segment. + */ + unsigned int max_segment_size; + + /* * DMA scatter gather segment boundary limit. A segment crossing this * boundary will be split in two. */ @@ -603,6 +608,7 @@ struct Scsi_Host { short unsigned int sg_tablesize; short unsigned int sg_prot_tablesize; unsigned int max_sectors; + unsigned int max_segment_size; unsigned long dma_boundary; /* * In scsi-mq mode, the number of hardware queues supported by the LLD. |