2c8309e00e
iscsi_tgt_node_redirect() updates redirect portal of the initial portal iin a primary portal group for the target node. Check if the specified portal group is a public portal group and is mapped to the target node first. Then if the passed IP address-port pair is NULL, clear the current redirect setting. Public portal group and private portal group are clearly separated and redirect portal must be chosen from a private portal group. Hence this clear method is intuitive and simple. If the passed IP address-port pair is not NULL, check if they are valid, and are not in the specified portal group. Then update a redirect portal of the portal group map. Finally, send asynchronous logout request to all corresponding initiators. Besides, change allocating pg_map from malloc to calloc to initialize redirect portal. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I79d826663f4c3d5a117add286f133adeb1ce07f5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3222 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
conn.c | ||
conn.h | ||
init_grp.c | ||
init_grp.h | ||
iscsi_rpc.c | ||
iscsi_subsystem.c | ||
iscsi.c | ||
iscsi.h | ||
Makefile | ||
md5.c | ||
md5.h | ||
param.c | ||
param.h | ||
portal_grp.c | ||
portal_grp.h | ||
spdk_iscsi.map | ||
task.c | ||
task.h | ||
tgt_node.c | ||
tgt_node.h |