A new feature for the SRP initiator and target drivers in kernel v5.0-rc1
is that both the initiator and target drivers support immediate data.
Since the default maximum immediate data size is 8 KB, increase the target
maximum request size such that the SRP initiator can send write requests
with up to 8 KB of immediate data.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
mount_configfs || return $?
modprobe target_core_mod || return $?
modprobe target_core_iblock || return $?
- opts=("srp_max_req_size=4200" "dyndbg=+pmf")
+ opts=("srp_max_req_size=8260" "dyndbg=+pmf")
if modinfo ib_srpt | grep -q '^parm:[[:blank:]]*rdma_cm_port:'; then
opts+=("rdma_cm_port=${srp_rdma_cm_port}")
fi