+5
−4
+4
−1
Loading
We shoud not always return SPDK_ISCSI_CONNECTION_FATAL in spdk_iscsi_read_pdu function. Reason: In iscsi_conn_handle_incoming_pdus, the loop directly return only rc==SPDK_ISCSI_CONNECTION_FATAL. But it masks all the necessary information. So we would like to keep some information of the return value for spdk_iscsi_read_pdu, and we can use error log to track those information. Then we can return SPDK_ISCSI_CONNECTION_FATAL as the error return value for iscsi_conn_handle_incoming_pdus function. Signed-off-by:Ziye Yang <ziye.yang@intel.com> Change-Id: I4c40fcb27052b55cb92e06273701a881def18e12 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457078 Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>