diff options
author | mav <mav@FreeBSD.org> | 2014-12-26 09:44:32 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-12-26 09:44:32 +0000 |
commit | 8b298a29789232e38a0490f20a4c7be8dd89a284 (patch) | |
tree | bd9d84d3c532d2eabf41577787a3e0bb057e2f7a /sys/cam/ctl/ctl_backend.h | |
parent | 270e05ae8c65f8f12693125c14bb195224557a07 (diff) | |
download | FreeBSD-src-8b298a29789232e38a0490f20a4c7be8dd89a284.zip FreeBSD-src-8b298a29789232e38a0490f20a4c7be8dd89a284.tar.gz |
MFC r275920, r276127: Pass real optimal transfer size supported by backend.
For files and ZVOLs that is 1MB now, not 128K.
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r-- | sys/cam/ctl/ctl_backend.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h index 5e0af5c..93a530c 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 */ |