+5
−17
+43
−18
Loading
Building iovecs had been done in spdk_iscsi_build_iovs() and fast-forwarding iovecs for the partially written first PDU had been done in-line separately. This patch unifies these two operations into spdk_iscsi_build_iovs(). Fast-forwarding iovecs is necessary only for the first PDU, but the operation is applied to all PDUs after this patch. Extra overhead will be negligible because usually at most two iovecs are consumed, one is for the base header segment and another is for the data segment. Change-Id: I8feafac6d280439eb7cf73136107adbac820ae09 Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/446174 Reviewed-by:
Ziye Yang <ziye.yang@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>