+4
−4
+1
−1
Loading
Increase the size of write (data out) buffers and immediate data buffers in the iSCSI library to store DIF. Increase is the amount necessary to store 16 byte metadata block to the block formatted iwth 512 + 16. 512 + 16 is the current maximum ratio of metadata per block. Use the macro SPDK_BDEV_BUF_SIZE_WITH_MD defined in include/spdk/bdev.h for this purpose. Besides, change the name of a helper function from spdk_get_immediate_data_buffer_size() to spdk_get_max_immediate_data_size() to differentiate the maximum data size and the buffer size, and then to use the macro. Change-Id: I626f8045ff706e1a6d79fa298261769bc96b7d8b Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447011 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>