Spdk/test/unit/lib/iscsi
ShadowMov d2b0b15406 lib/iscsi: fix op_logout rsph->response judgement
According to iSCSI 7143 spec 11.15.1 (3720 spec 10.15.1),
Rsph->response should be 0 if connection or session closed successfully.

The current code mistakenly compared cid provided by initiator with
inner conn->id parameter, which does not follow the spec.

Change-Id: I12dbb3471be5d49380c6b65bcdb67c57df11665f
Signed-off-by: ShadowMov <jinnian.hjn@alibaba-inc.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5731
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-01-05 09:38:23 +00:00
..
conn.c test/unit/lib/iscsi: Add unit test stubs 2020-11-19 09:47:26 +00:00
init_grp.c ut/iscsi: remove unused legacy config files 2020-10-23 16:12:18 +00:00
iscsi.c lib/iscsi: fix op_logout rsph->response judgement 2021-01-05 09:38:23 +00:00
param.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in tgt_node.h 2020-04-20 07:38:29 +00:00
portal_grp.c remove unneeded spdk_internal/thread.h includes 2020-12-10 14:38:04 +00:00
tgt_node.c test/unit/lib/iscsi: Add unit test stubs 2020-11-19 09:47:26 +00:00
common.c log: remove internal log.h header 2020-10-15 08:23:39 +00:00
Makefile iscsi&iscsi/ut: Unify cpumask decode between iSCSI.conf and JSON-RPC 2018-01-19 15:47:57 -05:00