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>
This commit is contained in:
committed by
Martin K. Petersen
parent
2a3d4eb8e2
commit
50c2e9107f
@@ -364,6 +364,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.
|
||||
|
||||
Reference in New Issue
Block a user