6d156d5b7d
In some test cases, unknown iSCSI PDU other than the login request has been sent to the iSCSI target when the iSCSI target is not in runnable state, and it has caused failure in iSCSI target. To know what PDU was received by the iSCSI target, this patch changes the iSCSI taget to collect dump of the PDU. SPDK has already the SPDK_LOGDUMP macro but the SPDK_ERRLOGDUMP macro will be appropriate in this use case and added. Then the SPDK_ERRLOGDUMP is used in iSCSI library. We can decode PDU and output any format easy to read by human, but creating good format is not easy task and error prone. So this patch uses simple dump. Dump outputs like: PDU 00000000 40 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 @............... 00000010 0b 06 00 10 ff ff ff ff 00 00 00 5a 00 00 00 03 ...........Z.... 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I3ed2fca7fec24ccff17b89ba749a58c397b72c13 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456952 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> |
||
---|---|---|
.. | ||
assert.h | ||
copy_engine.h | ||
event.h | ||
log.h | ||
lvolstore.h | ||
memory.h | ||
mock.h | ||
nvme_tcp.h | ||
sock.h | ||
thread.h | ||
utf.h | ||
vhost_user.h | ||
virtio.h |