Spdk/test/unit/lib
Shuhei Matsumoto c2f38258f9 iscsi: Remove redundant repetition from ACL
The results of access control procedure for login in the
spdk_iscsi_tgt_node_access() is defined in the following table:

   +------------------------------+
   |iscsi name |netmask  |result  |
   +------------------------------+
   +------------------------------+
   |denied     |-        |denied  |
   +------------------------------+
   |allowed    |allowed  |allowed |
   +------------------------------+
   |allowed    |denied   |next IG |
   +------------------------------+
   |not found  |-        |next IG |
   +------------------------------+

However current implementation have redundant repetition in the
spdk_iscsi_tgt_node_access() and the above definition is not
visible. Hence refactor spdk_iscsi_tgt_node_access().

Besides refactor spdk_iscsi_tgt_node_allow_iscsi_name() because
it has redundant repetition too.

Add UT code for these changes.

Change-Id: If06d87c1246c85439ee0482149bd887a7b53b169
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/379935
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-12-04 11:28:52 -05:00
..
bdev bdev/pmem: unregister pmem bdev when app exit. 2017-12-01 16:44:57 -05:00
blob blob: add data_ro and md_ro flags to spdk_blob 2017-11-29 17:25:34 -05:00
blobfs blobfs, tree: fix a bug in spdk_tree_insert_buffer 2017-08-15 16:36:41 -04:00
event ut/event: add fatal assert for allocation 2017-10-17 11:34:38 -04:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
iscsi iscsi: Remove redundant repetition from ACL 2017-12-04 11:28:52 -05:00
json test/json_util_ut: assert that string is valid 2017-07-12 18:13:23 -04:00
jsonrpc jsonrpc: allow asynchronous request completion 2017-07-12 12:10:31 -04:00
log build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
lvol event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
nvme nvme: add a per-process attached_ctrlrs list 2017-11-28 16:21:07 -05:00
nvmf nvmf: Add a channel map to the poll group 2017-12-01 16:41:57 -05:00
scsi event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
util channel: Add spdk_for_each_thread 2017-11-28 15:29:35 -05:00
vhost event: Move spdk_poller_register to io_channel 2017-11-28 12:30:37 -05:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00