Spdk/lib/iscsi
Shuhei Matsumoto e008db08e7 rpc: Add state_mask to each RPC method to make sets of RPCs
Add state_mask to each RPC method and state to RPC server, respectively.
State mask of RPC method is set at registration. State of RPC server
is changed according to the state of the SPDK.

When any RPC method is recieved, if the bit of the RPC server is on in
the state mask of the RPC method, it is allowed. Otherwise, it is
rejected.

When any RPC is rejected by state_mask control, the new error code
is returned to describe the error clearly.

Change-Id: I84e52b8725a286e9329d61c56f498aa2c8664ec1
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/407397
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-05-03 19:48:15 +00:00
..
acceptor.c io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
acceptor.h iscsi: login poller per portal and portal cache 2017-10-06 17:00:45 -04:00
conn.c iscsi: close connection array shm file descriptor 2018-04-23 16:15:37 +00:00
conn.h lib/iscsi: Remove spdk_iscsi_conn_fn in conn 2018-03-07 10:14:17 -05:00
init_grp.c iscsi: Remove all uses of strncpy 2018-04-11 10:23:09 -04:00
init_grp.h iscsi: Change function names of iSCSI subsystem configuration 2018-03-09 13:52:04 -05:00
iscsi_rpc.c rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
iscsi_subsystem.c iscsi: fix nonsensical poll_group asserts 2018-04-19 15:37:42 -04:00
iscsi.c iscsi: do static initialization of globals that allow it 2018-04-12 11:26:44 -04:00
iscsi.h iscsi: Add the param MinConnectionPerSession to iSCSI options 2018-03-16 18:22:17 -04:00
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
md5.c astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
md5.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
param.c iscsi: Change the type of some negotiation params from uint32_t to bool 2018-03-14 13:41:22 -04:00
param.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
portal_grp.c iscsi: Remove all uses of strncpy 2018-04-11 10:23:09 -04:00
portal_grp.h iscsi: Change function names of iSCSI subsystem configuration 2018-03-09 13:52:04 -05:00
task.c scsi, iscsi: move task->parent to iSCSI task 2018-01-05 00:01:37 -05:00
task.h scsi, iscsi: move task->parent to iSCSI task 2018-01-05 00:01:37 -05:00
tgt_node.c iscsi: Check the combination of CHAP params for discovery before applied 2018-03-09 13:52:04 -05:00
tgt_node.h iscsi: Check the combination of CHAP params for discovery before applied 2018-03-09 13:52:04 -05:00