aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-12-18 22:32:22 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-12-18 22:32:22 +0000
commitcb8727e23a4b2c2ab61032946ba99ae63d75b05e (patch)
tree69db6c2623f2805d6236a0688095ec0b6c3c7e2c /sys/cam/ctl/ctl_backend.h
parentbf855dd34270918725184b9f4bf866f211f2211f (diff)
downloadsrc-cb8727e23a4b2c2ab61032946ba99ae63d75b05e.tar.gz
src-cb8727e23a4b2c2ab61032946ba99ae63d75b05e.zip
Pass real optimal transfer size supported by backend.
For files and ZVOLs that is 1MB now, not 128K. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=275920
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r--sys/cam/ctl/ctl_backend.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h
index 5e0af5cc302e..93a530cf7c06 100644
--- a/sys/cam/ctl/ctl_backend.h
+++ b/sys/cam/ctl/ctl_backend.h
@@ -146,10 +146,16 @@ typedef void (*be_lun_config_t)(void *be_lun,
*
* pblockexp is the log2() of number of LBAs on the LUN per physical sector.
*
- * pblockoff is the lowest LBA on the LUN aligned ot physical sector.
+ * pblockoff is the lowest LBA on the LUN aligned to physical sector.
+ *
+ * ublockexp is the log2() of number of LBAs on the LUN per UNMAP block.
+ *
+ * ublockoff is the lowest LBA on the LUN aligned to UNMAP block.
*
* atomicblock is the number of blocks that can be written atomically.
*
+ * opttxferlen is the number of blocks that can be written in one operation.
+ *
* req_lun_id is the requested LUN ID. CTL only pays attention to this
* field if the CTL_LUN_FLAG_ID_REQ flag is set. If the requested LUN ID is
* not available, the LUN addition will fail. If a particular LUN ID isn't
@@ -197,6 +203,7 @@ struct ctl_be_lun {
uint16_t ublockexp; /* passed to CTL */
uint16_t ublockoff; /* passed to CTL */
uint32_t atomicblock; /* passed to CTL */
+ uint32_t opttxferlen; /* passed to CTL */
uint32_t req_lun_id; /* passed to CTL */
uint32_t lun_id; /* returned from CTL */
uint8_t serial_num[CTL_SN_LEN]; /* passed to CTL */